|September 26, 2010, 21:41||
How can I use patchtopatchinterpolation?
Hyun Seok, Roh
Join Date: Sep 2010
Posts: 2Rep Power: 0
I'm a new commer of OpenFoam.
I want to do 1-way FSI. For mapping the presure field on the surface of the solid, I may need to run patchtopatchinterpolation utility. How can I run it?
THX in advance.
|September 27, 2010, 05:37||
Join Date: Mar 2009
Posts: 579Rep Power: 19
I am not sure if there is a patchToPatchInterpolation stand-alone utility (please correct me if I am wrong)
but the code is all there for you to use.
You have to include patchToPatchInterpolation.H in your solver, and you declare the patchToPatchInterpolation like this:
patchToPatchInterpolation fromPatch_To_toPatch_Interpolate ( mesh.boundaryMesh()[fromPatchIndex], // from patch mesh.boundaryMesh()[toPatchIndex], // to patch intersection::FULL_RAY, intersection::CONTACT_SPHERE );
And then to use the your patchToPatchInterpolation, you would do something like this:
vectorField interpolatedQuantity = fromPatch_To_toPatch_Interpolate.faceInterpolate<vector> ( quantity.boundaryField()[fromPatchIndex] );
Hope it helps,