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/)
-   -   HELP NEEDED HOW TO MAP VALUES FROM PATCH OF ONE MESH TO PATCH OF ANOTHER MESH (https://www.cfd-online.com/Forums/openfoam-solving/58218-help-needed-how-map-values-patch-one-mesh-patch-another-mesh.html)

mkraposhin December 12, 2008 07:33

Dear OpenFOAM users, does any
 
Dear OpenFOAM users, does any one knows how to map field value (or gradient values) from faces of patch1 mesh1 to patch2 mesh2 in solver code (i need it for explicit coupling)?

any answers are appreciated

mrshb4 September 3, 2011 19:49

Hi!!!

Did you find the answer?!!!!

Best Regards
Mohammadreza Shetab

henrik September 4, 2011 03:54

Dear Matvej,

use

$FOAM_SRC/OpenFOAM/lnInclude/patchToPatchInterpolation.H

eg.

ipp (patch1, patch2);
Info << ip1p2.faceInterpolate(field.boundaryField()[pID1]) << endl;

Regards,

Henrik

mrshb4 September 4, 2011 09:42

Thanks Heinrik,

I'll test it.

Regards,
Mohammadreza Shetab


All times are GMT -4. The time now is 10:59.