Automatically decomposes a mesh and fields of a case for parallel execution of OpenFOAM. More...
Go to the source code of this file.
Functions | |
const labelIOList & | procAddressing (const PtrList< fvMesh > &procMeshList, const label procI, const word &name, PtrList< labelIOList > &procAddressingList) |
int | main (int argc, char *argv[]) |
Automatically decomposes a mesh and fields of a case for parallel execution of OpenFOAM.
Original source file decomposePar.C
-cellDist | Write the cell distribution as a labelList, for use with 'manual' decomposition method or as a volScalarField for post-processing. |
-region | regionName 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 | |
-time | xxx: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. |
-numberOfSubdomains | n Override dictionary entry decomposeParDict.numberOfSubdomains. |
Definition in file decomposePar.C.
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().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 138 of file decomposePar.C.
References List::append(), PtrList::append(), args, argList::caseName(), Foam::chDir(), cp, Foam::cwd(), lagrangianFieldDecomposer::decomposeFieldFields(), dimFieldDecomposer::decomposeFields(), lagrangianFieldDecomposer::decomposeFields(), pointFieldDecomposer::decomposeFields(), fvFieldDecomposer::decomposeFields(), Foam::dimless, Foam::endl(), Foam::exit(), faceProcAddressing, polyMesh::facesInstance(), Foam::FatalError, FatalErrorInFunction, polyMesh::findCell(), Foam::findIndex(), forAll, forAllConstIter(), forAllIter, Foam::Info, Foam::isDir(), Foam::ln(), IOobjectList::lookup(), dictionary::lookup(), mesh, Foam::name(), primitiveMesh::nCells(), Foam::compressible::New(), Foam::nl, IOobject::objectPath(), argList::optionFound(), argList::optionReadIfPresent(), procAddressing(), Foam::readDir(), readFields(), Foam::readLabel(), regionName, Foam::rmDir(), argList::rootPath(), PtrList::set(), dictionary::set(), PtrList::setSize(), Time::setTime(), List::size(), PtrList::size(), Time::timeName(), Time::timePath(), and regIOobject::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.