Functions
decomposePar.C File Reference

Automatically decomposes a mesh and fields of a case for parallel execution of OpenFOAM. More...

Include dependency graph for decomposePar.C:

Go to the source code of this file.

Functions

const labelIOListprocAddressing (const PtrList< fvMesh > &procMeshList, const label procI, const word &name, PtrList< labelIOList > &procAddressingList)
 
int main (int argc, char *argv[])
 

Detailed Description

Automatically decomposes a mesh and fields of a case for parallel execution of OpenFOAM.

Original source file decomposePar.C

Usage
Parameters
-cellDist
Write the cell distribution as a labelList, for use with 'manual' decomposition method or as a volScalarField for post-processing.
-regionregionName
Decompose named region. Does not check for existence of processor*.
-allRegions
Decompose all regions in regionProperties. Does not check for existence of processor*.
-copyUniform
Copy any uniform directories too.
-constant
-timexxx:yyy
Override controlDict settings and decompose selected times. Does not re-decompose the mesh i.e. does not handle moving mesh or changing mesh cases.
-fields
Use existing geometry decomposition and convert fields only.
-noSets
Skip decomposing cellSets, faceSets, pointSets.
-force
Remove any existing processor subdirectories before decomposing the geometry.
-ifRequired
Only decompose the geometry if the number of domains has changed from a previous decomposition. No processor subdirectories will be removed unless the -force option is also specified. This option can be used to avoid redundant geometry decomposition (eg, in scripts), but should be used with caution when the underlying (serial) geometry or the decomposition method etc. have been changed between decompositions.
-numberOfSubdomainsn
Override dictionary entry decomposeParDict.numberOfSubdomains.

Definition in file decomposePar.C.

Function Documentation

◆ procAddressing()

const labelIOList& procAddressing ( const PtrList< fvMesh > &  procMeshList,
const label  procI,
const word name,
PtrList< labelIOList > &  procAddressingList 
)

Definition at line 104 of file decomposePar.C.

References polyMesh::facesInstance(), polyMesh::meshSubDir, Foam::name(), and PtrList::set().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)