A collection of tools for operating on an fvMesh. More...
Static Public Member Functions | |
static label | addPatch (fvMesh &mesh, const polyPatch &patch, const dictionary &patchFieldDict, const word &defaultPatchFieldType, const bool validBoundary) |
Add patch. Inserts patch before all processor patches. More... | |
static void | setPatchFields (fvMesh &mesh, const label patchi, const dictionary &patchFieldDict) |
Change patchField on registered fields according to dictionary. More... | |
static void | zeroPatchFields (fvMesh &mesh, const label patchi) |
Change patchField to zero on registered fields. More... | |
static void | reorderPatches (fvMesh &, const labelList &oldToNew, const label nPatches, const bool validBoundary) |
Reorder and remove trailing patches. If validBoundary call is parallel. More... | |
A collection of tools for operating on an fvMesh.
Definition at line 48 of file fvMeshTools.H.
|
static |
Add patch. Inserts patch before all processor patches.
Supply per field the new patchField per field as a subdictionary or a default type. If validBoundary call is parallel synced and all add the same patch with same settings.
Definition at line 33 of file fvMeshTools.C.
References fvMesh::addPatch(), polyMesh::boundaryMesh(), polyBoundaryMesh::findPatchID(), forAll, patchIdentifier::name(), patchi, and UPtrList< T >::size().
Referenced by fvMeshDistribute::printCoupleInfo().
|
static |
Change patchField on registered fields according to dictionary.
Definition at line 83 of file fvMeshTools.C.
References mesh, Foam::New(), and patchi.
Change patchField to zero on registered fields.
Definition at line 113 of file fvMeshTools.C.
References mesh, MeshObject< polyMesh, PatchMeshObject, pointMesh >::New(), patchi, fvMeshTools::reorderPatches(), and Foam::Zero.
|
static |
Reorder and remove trailing patches. If validBoundary call is parallel.
synced and all add the same patch with same settings
Definition at line 140 of file fvMeshTools.C.
References forAll, and fvMesh::reorderPatches().
Referenced by fvMeshDistribute::printCoupleInfo(), and fvMeshTools::zeroPatchFields().