CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Mapping fields from fvMesh to tetPolyMesh (https://www.cfd-online.com/Forums/openfoam-solving/58596-mapping-fields-fvmesh-tetpolymesh.html)

hannes August 28, 2008 02:34

Hello everyone, for applyin
 
Hello everyone,

for applying a numerical integration algorithm in postprocessing, I need my fields on a tetrahedral mesh.
I thought of doing this by mapping the fields on a tetPolyMeshFaceDecomp-Mesh. Creating such a mesh is not the problem, but I don't know how to map my volVectorFields to tetPointVectorFields.
Is there a quick way of doing this? I found the tetPolyMeshMapper class, but I'm not sure if this could be applied.

Thanks, Hannes

lucchini August 28, 2008 03:27

Hannes, check these: - v
 
Hannes,

check these:

- volPointInterpolation class, and how it is used by the spray class to interpolate the cell center values at the lagrangian position

- fvMotionSolver, where the mesh motion calculated in a cell centre is then interpolated at the mesh points positions.

hope this can be useful,

regards

Tommaso

hannes August 28, 2008 05:42

Thanks for the hint, Tommaso.
 
Thanks for the hint, Tommaso.

After analyzing the order of the points in the point list (built in "tetPolyMeshFaceDecomp::points()") it seems to me, that I just have to hook up the point-, surface- and cell fields after another to get the tetPointField.

Regards, Hannes


All times are GMT -4. The time now is 01:22.