CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   patchToPatchInterpolation in parallel? (

bigphil March 2, 2011 08:49

patchToPatchInterpolation in parallel?

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?


cliffoi March 7, 2011 13:29

Take a look at solidWallMixedTemperatureCoupledFvPatchScalarField ::updateCoeffs() in the chtMultiRegionFoam solver. I think this does what you're looking for.

bigphil March 7, 2011 13:42

Thanks for the help,

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


bigphil June 3, 2011 09:51


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


All times are GMT -4. The time now is 09:08.