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

Size of sub-meshes during a parallel run

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2013, 12:29
Default Size of sub-meshes during a parallel run
  #1
New Member
 
Marcel Vonlanthen
Join Date: Nov 2012
Location: Zurich, Switzerland
Posts: 28
Rep Power: 13
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":
Code:
#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):
Code:
[1] nb of cell center in processor1 = 1011456
[0] nb of cell center in processor0 = 1011456
Any ideas?

Cheers,
Marcel
Sylv 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
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
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, cfdproject OpenFOAM Meshing & Mesh Conversion 0 April 14, 2009 16: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 18:11


All times are GMT -4. The time now is 10:38.