CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Size of sub-meshes during a parallel run

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

LinkBack Thread Tools Display Modes
Old   December 2, 2013, 12:29
Default Size of sub-meshes during a parallel run
New Member
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 6
Sylv is on a distinguished road
Dear Foamer,

During the parallel run of any OpenFOAM solver (pimpleFoam in my case), each processor has its own sub-mesh (stored in case/porcessorX/constant), which is a part of the global mesh. Moreover, each processor has no idea about the sub-meshes stored in the other processor.

How can I get the list of the cellCenter or the faceCenter of each sub-meshes? For example, I tried with mesh().C(), but the output size is the same for all sub-meshes, which is not possible (the scotch decomposition never gives sub-meshes with *exactly* the same size...). Here is a piece of code I added after the line #include "createMesh.H":
#include "createMesh.H"

Pout << "nb of cell center in processor"<< Pstream::myProcNo() << " = " << mesh.C().size() << endl;
And the output is the following (parallel run on 2 cpus):
[1] nb of cell center in processor1 = 1011456
[0] nb of cell center in processor0 = 1011456
Any ideas?

Sylv is offline   Reply With Quote


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
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Unable to run OF in parallel on a multiple-node cluster quartzian OpenFOAM 3 November 24, 2009 14:37
Need help with the error cfdproject OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 0 April 14, 2009 15:45
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
Problem on Parallel Run Setup Hamidur Rahman CFX 0 September 23, 2007 17:11

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