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

How can I use patchtopatchinterpolation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
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

Old   May 12, 2016, 05:55
Default
  #4
New Member
 
Eli1993's Avatar
 
Arahata
Join Date: Mar 2016
Posts: 4
Rep Power: 10
Eli1993 is on a distinguished road
Hello everyone
I am working with bubbleintertrackFoam solver to simulte a bubble in a still liquid column. I am getting an error as

--> FOAM FATAL ERROR:
Error in B-to-A face patchToPatchInterpolation.

From function freeSurface::makeInterpolators()
in file makeFreeSurfaceData.C at line 105.

Can anyone help me to understand meaning of above said line or suggest me what to do.
Eli1993 is offline   Reply With Quote

Reply

Tags
fsi, openfoam


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 Off
Pingbacks are On
Refbacks are On



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