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/)
-   -   Putting submesh field values into field on parent mesh (https://www.cfd-online.com/Forums/openfoam-solving/60157-putting-submesh-field-values-into-field-parent-mesh.html)

helmut June 19, 2006 09:37

Hi, I've created a subMesh
 
Hi,

I've created a subMesh from a cellSet of a parent mesh and solved for some fields on the subMesh. Now I'd like to transfer the values of those subMesh fields back to fields on the parent mesh. Any ideas on how to do this in OpenFoam?

Thanks and best regards,
Helmut

mattijs June 20, 2006 02:29

mapFields or modify subsetM
 
mapFields

or modify subsetMesh to store the cellMap(), faceMap() etc from fvMeshSubset and use these to map back.

These maps are from the subsetted mesh back to the original

hjasak June 20, 2006 07:31

fvMeshSubset gives you the map
 
fvMeshSubset gives you the mapping data and the interpolation functions - yo should not need anything else.

Hrv


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