CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   fectorvield-values at meshpoints (

studrud August 11, 2009 04:53

fectorvield-values at meshpoints
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));


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?


studrud August 12, 2009 08:36

no one any ideas?

All times are GMT -4. The time now is 04:28.