FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

redistributeMeshPar.C File Reference

Redistributes existing decomposed mesh and fields according to the current settings in the decomposeParDict file. More...


Detailed Description

Redistributes existing decomposed mesh and fields according to the current settings in the decomposeParDict file.

Must be run on maximum number of source and destination processors. Balances mesh and writes new mesh to new time directory.

Can also work like decomposePar:

# Create empty processors mkdir processor0 .. mkdir processorN

# Copy undecomposed polyMesh cp -r constant processor0

# Distribute mpirun -np ddd redistributeMeshPar -parallel

Note:
You might want to unset FOAM_SIGFPE and FOAM_SETNAN since patchfields that hold additional data might not be initialised (since mapped from 0 faces)
Usage
  • redistributeMeshPar [OPTIONS]
Parameters:
-mergeTol<number>
Relative merge distance.
-case<dir>
Case directory.
-parallel
Run in parallel.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.

Definition in file redistributeMeshPar.C.

#include "src/finiteVolume/fvMesh/fvMesh.H"
#include "src/decompositionMethods/decompositionMethods/decompositionMethod/decompositionMethod.H"
#include "src/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H"
#include "src/finiteVolume/cfdTools/general/include/fvCFD.H"
#include "src/dynamicMesh/fvMeshDistribute/fvMeshDistribute.H"
#include "src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributePolyMesh.H"
#include "src/OpenFOAM/db/IOobjectList/IOobjectList.H"
#include "src/OpenFOAM/include/addRegionOption.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
Include dependency graph for redistributeMeshPar.C:

Go to the source code of this file.