CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

How can I use patchtopatchinterpolation?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 26, 2010, 21:41
Cool How can I use patchtopatchinterpolation?
  #1
New Member
 
Hyun Seok, Roh
Join Date: Sep 2010
Posts: 2
Rep Power: 0
aperture is on a distinguished road
Dear all,
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.
aperture is offline   Reply With Quote

Old   September 27, 2010, 05:37
Default
  #2
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 565
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

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:
Code:
patchToPatchInterpolation fromPatch_To_toPatch_Interpolate
(
 mesh.boundaryMesh()[fromPatchIndex],    // from patch
 mesh.boundaryMesh()[toPatchIndex],     // to patch
 intersection::FULL_RAY,
 intersection::CONTACT_SPHERE
 );
Different intersection methods can be used.

And then to use the your patchToPatchInterpolation, you would do something like this:
Code:
vectorField interpolatedQuantity = fromPatch_To_toPatch_Interpolate.faceInterpolate<vector>
(
quantity.boundaryField()[fromPatchIndex]
);
You can use pointInterpolate too and interpolate scalars and tensors too (I think).


Hope it helps,
Philip
bigphil is offline   Reply With Quote

Old   September 28, 2010, 01:04
Default Thx
  #3
New Member
 
Hyun Seok, Roh
Join Date: Sep 2010
Posts: 2
Rep Power: 0
aperture is on a distinguished road
I'll try that.
Thanks !
aperture is offline   Reply With Quote

Reply

Tags
fsi, openfoam

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:57.