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

Exchanging fields across processor boundaries

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2011, 12:05
Default Exchanging fields across processor boundaries
  #1
RoE
New Member
 
Roland Engberg
Join Date: Jan 2011
Posts: 14
Rep Power: 15
RoE is on a distinguished road
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
RoE is offline   Reply With Quote

Old   May 18, 2011, 12:11
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
The processorFvPatch / processorPolyPatch classes already do this for you.

Take a look at the sources.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   May 18, 2011, 12:21
Default
  #3
RoE
New Member
 
Roland Engberg
Join Date: Jan 2011
Posts: 14
Rep Power: 15
RoE is on a distinguished road
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
RoE is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The mysterious _0 fields stevenvanharen OpenFOAM Running, Solving & CFD 2 January 4, 2011 08:24
Missing fields in reconstructPar flowris OpenFOAM 1 July 9, 2010 03:48
domainIntegrate, dieselFoam and Lagrangian Fields mturcios777 OpenFOAM 0 May 14, 2010 16:16
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 10:15
Temperature fields Fernando Lopez Parra FLUENT 1 September 28, 2003 09:15


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