releso.util.cnn_xns_observations.save_current_solution_as_png
- releso.util.cnn_xns_observations.save_current_solution_as_png(save_location: Path | str, include_pressure: bool = True, height: int = 10, width: int = 10, dpi: int = 400)
Save the current solver solution as an image at the given location.
Additional parameters for size can be used.
TODO additional SPORStep for this functionality?
- Parameters:
save_location (Union[pathlib.Path, str]) – Where the image is to be saved to. Please add solution specific path, else the file will be overwritten if multiple solution are saved.
include_pressure (bool, optional) – Not only use x-,y-velocity fields but also the pressure field. Defaults to True.
height (int, optional) – Self explanatory. Defaults to 10.
width (int, optional) – Self explanatory. Defaults to 10.
dpi (int, optional) – Self explanatory. Defaults to 400.