CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Integration of Scalar field along one axis (http://www.cfd-online.com/Forums/openfoam-programming-development/66110-integration-scalar-field-along-one-axis.html)

Rukahr July 6, 2009 12:02

Integration of Scalar field along one axis
 
Hi all,

i need to compute a simple integration of a volumeScalar field along
one coordinate direction from z(0) to z(1) during runtime. The grid is
structured in this direction.

Can anyone point me out where i can find ideas for a simple way to
do this or has anyone done this already?

Thanks in advance

henrik July 8, 2009 07:21

Dear Rukahr,

Use the sample utility to interpolate f onto a sampling line. Then integrate this graph.

Henrik


All times are GMT -4. The time now is 09:19.