CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Parview: save screenshot in a specific size readable for Matlab (https://www.cfd-online.com/Forums/paraview/230455-parview-save-screenshot-specific-size-readable-matlab.html)

mkhm September 24, 2020 02:43

Parview: save screenshot in a specific size readable for Matlab
 
Hi,

I want to compare my results of Matlab with the results of OpenFoam shown in Paraview. The question is the following: how can I save the results of Paraview in an appropriate size (only the geometry and not its background) and format readable for Matlab ? In that possible ? I want to make a subfigure comparing both. So, is there any command to tight axis for the results of paraview (only the geometry and not its background) ?

The very simple answer that comes to my mind is to make a screenshot of paraview results and resize the image to the size of its counterpart in Matlab. But how to resize and what format to consider for the screenshot to make it one of the subplot of a matlab figure is the big question.

All this is to compare the contour plot of numerical solutions (openfoam) with the analytical solution (Matlab). If your have any other alternatives than what is outlined above, they're welcome.

Thanks for your help,
Mary


All times are GMT -4. The time now is 01:06.