CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   fectorvield-values at meshpoints (https://www.cfd-online.com/Forums/openfoam/67291-fectorvield-values-meshpoints.html)

studrud August 11, 2009 04:53

fectorvield-values at meshpoints
 
hello,
i have a problem with getting results at the meshpoints. i'm doing structure-fluid-coupling and i need the pressure at all meshpoints for stucture-fluid-interpolation. to get the pressure at the meshcells is an easy doing, but i have no idea how to get the pressure at the meshpoints.
can someone help me?

nikwin August 11, 2009 09:25

volPointInterpolation can be used to obtain a point<type>Field from a vol<type>Field as the example below

pointMesh pMesh(mesh);
volPointInterpolation interpMesh(mesh, pMesh);
pointVectorField pField(interpMesh.interpolate(volField));

Regards
/NW

studrud August 11, 2009 11:25

thank you for the fast answer nikwin,

where should i interpolate the volumefield to the pointfield? at the solver or at foamToVtk?
how can i write out the data in an extra file?

regards
RN

studrud August 12, 2009 08:36

no one any ideas?


All times are GMT -4. The time now is 23:29.