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/)
-   -   Best method to extract Reynolds stress at outlet. (https://www.cfd-online.com/Forums/openfoam-post-processing/192510-best-method-extract-reynolds-stress-outlet.html)

rr3245 September 5, 2017 08:37

Best method to extract Reynolds stress at outlet.
 
Hello all,

I am looking to sample the Reynolds stress at the outlet for a simulation. These values will act as input for a synthetic eddy method simulation.

So far I have been able to calculate the WHOLE R field using:
"pimpleFoam -postProcess -func R"

This calculates the whole field, but without position coordinates. I have two questions:

(1) Could I modify the above code to also output coordinates?
(2) Is there a way to calculate R only at the outlet?

Regards!

blebon September 5, 2017 11:13

You could use a surface function object to output R at the outlet:

See $FOAM_ETC/caseDicts/postProcessing/visualization/surfaces

rr3245 September 14, 2017 07:20

Quote:

Originally Posted by blebon (Post 663262)
You could use a surface function object to output R at the outlet:

See $FOAM_ETC/caseDicts/postProcessing/visualization/surfaces

I have used a more brutish approach. I may also try your method, thanks for the reply. I have done the following:
  • Generate the whole field using "pimpleFoam -postProcess -func R".
  • Obtain cell centre coordinates, where R is stored, by executing "writeCellCentres".
  • Input all values of R, and their corresponding coordinates, into Matlab for post-processing.

Regards!


All times are GMT -4. The time now is 17:56.