CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Exchanging fields across processor boundaries (https://www.cfd-online.com/Forums/openfoam/88486-exchanging-fields-across-processor-boundaries.html)

RoE May 18, 2011 11:05

Exchanging fields across processor boundaries
 
Hi!

To parallelise a home-brewed (OpenFOAM-) code I have to send some fields across processor boundaries. Specifically, I need the cell centers of the faceCells at the processor boundaries and the values of a volScalarField stored at those centers. I have begun to code this but probably it is already implemented in OpenFOAM, isn't it?Any advise how to send these fields is welcome!

Thanks for your help!
Roland

deepsterblue May 18, 2011 11:11

The processorFvPatch / processorPolyPatch classes already do this for you.

Take a look at the sources.

RoE May 18, 2011 11:21

Hi Sandeep,

thanks for your reply!

I know that the processorFvPatch / processorPolyPatch classes would normally do this for me. However, I have implemented a few methods which step out of the normal FVM-framework of OpenFOAM, it's a finite differences method which draws heavily from neighbour relations in specific directions. I have written my own code to describe these relations and would like to extend it to parallel computations. Thus, I have to exchange the fields mentioned above by "hard coding" the data exchange in my code...

Thanks again!
Roland


All times are GMT -4. The time now is 15:24.