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

patchToPatchInterpolation in parallel?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2011, 08:49
Default patchToPatchInterpolation in parallel?
  #1
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 570
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,


I use the patchToPatchInterpolation class for interpolating values between patches, but it gives erroneous values with parallel runs (if the patches of interest are split between processors).

So I am looking for advice on the best way to solve this problem,

my idea at the moment is when ever I need to use patchToPatchInterpolation, I will send all the patch info from the slaves to the master processor. Then the master processor will reconstruct the patches of interest and create a patchToPatchInterpolation object with the full patches. The master can then use the patchToPatchInterpolation object to interpolate values of interest. Finally the master can send back the interpolated values to the slaves.

Does this seem like a good way of doing it?

And if it seems OK, then how to I get the master to reconstruct a patch from all the slave patch parts?


Philip
bigphil is offline   Reply With Quote

Old   March 7, 2011, 13:29
Default
  #2
Member
 
Ivor Clifford
Join Date: Mar 2009
Location: Switzerland
Posts: 91
Rep Power: 8
cliffoi is on a distinguished road
Take a look at solidWallMixedTemperatureCoupledFvPatchScalarField ::updateCoeffs() in the chtMultiRegionFoam solver. I think this does what you're looking for.
cliffoi is offline   Reply With Quote

Old   March 7, 2011, 13:42
Default
  #3
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 570
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Thanks for the help,

I'll have a look at it and let you know if it does what I am looking for.

Thanks,
Philip
bigphil is offline   Reply With Quote

Old   June 3, 2011, 09:51
Default
  #4
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 570
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

I was able to get it working in parallel,
I explain what I did here PatchToPatchInterpolationfaceInterpolate

Philip
bigphil is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
parallel performance on BX900 uzawa OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 3 September 5, 2011 15:52
HP MPI warning...Distributed parallel processing Peter CFX 10 May 14, 2011 06:17
Cumulative continuity error large in parallel simulations xiao OpenFOAM 3 March 7, 2011 05:13
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 13:00


All times are GMT -4. The time now is 01:33.