|
[Sponsors] |
March 4, 2014, 05:44 |
Read parallel meshes
|
#1 | |||
Member
Norbert Weber
Join Date: May 2012
Location: Dresden, Germany
Posts: 37
Rep Power: 14 |
I would like to read the meshes of all processors when computing in parallel. The idea is to have all meshes on each processor.
I create a "Time-Object" for each processor as Quote:
Quote:
Quote:
|
||||
March 5, 2014, 14:04 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi,
Yes, the processor boundaries exchange information, so what you are trying to do will most probably not work. May I ask, why you need all the meshes on every processor? Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
March 7, 2014, 04:45 |
|
#3 |
Member
Join Date: Jul 2011
Posts: 54
Rep Power: 15 |
Hi,
what about using gather and scatter? Not sure what you exactly want to do with the mesh, but you could use gatherList. Code:
//- Get local mesh on processor fvMesh mesh(refCast<const fvMesh>(obr_)); //- Gather the meshes into PtrList on master processor PtrList<fvMesh> pMesh(Pstream::nProcs()); pMesh[Pstream::myProcNo()] = mesh; Pstream::gatherList(pMesh); |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
Case running in serial, but Parallel run gives error | atmcfd | OpenFOAM Running, Solving & CFD | 18 | March 26, 2016 13:40 |
How to setup a simple OpenFOAM cluster? | TommiPLaiho | OpenFOAM Installation | 3 | October 27, 2013 16:15 |
[Other] Creating large meshes (>10,000,00) in parallel | fontania | OpenFOAM Meshing & Mesh Conversion | 4 | April 16, 2012 17:14 |
Fluent parallel | poovanna | FLUENT | 0 | March 24, 2007 00:22 |