CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   postProcessing only in certain area (https://www.cfd-online.com/Forums/openfoam-post-processing/177133-postprocessing-only-certain-area.html)

ReynoldsKing September 6, 2016 05:14

postProcessing only in certain area
 
Hello all,

i'm relatively new to OpenFoam and work with OF1.7 (because of validation reasons). I generated a mesh, decomposed it and ran the solver on 200 CPUs. Everything worked fine.

Because of the huge amount of data i want to postProcess only a certain area of the pressure Field. My idea would be to generate a field with 1's in the area i want to postProcess and 0's everywhere else. Afterwards somehow multiply this new field and the pressure Field, so only the pressure Field in the area of interest is left over.

Is there a way to achieve this while decomposed (i would rather not reconstruct 1000 timesteps)? Or is there a different solution to my goal? I have already trouble using setFields while the case is decomposed.. Can anyone help?

Best regards,
Max

PositronCascade September 10, 2016 21:06

Hello, you can reconstruct your case for only latest time step if you want, not for whole time steps.

Code:

reconstructPar -latestTime
For visualizing a specific region, I mostly use Clip and Slice options of ParaView. By this way, you can cut out the regions that you are not interested in and you can make calculations using ParaView on the region of interest.

If you do not want to reconstruct even for the latest time step, you need to open your case with decomposed option of ParaView.


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