fvMeshTools Class Reference

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...
 

Detailed Description

A collection of tools for operating on an fvMesh.

Source files

Definition at line 48 of file fvMeshTools.H.

Member Function Documentation

◆ addPatch()

Foam::label addPatch ( fvMesh mesh,
const polyPatch patch,
const dictionary patchFieldDict,
const word defaultPatchFieldType,
const bool  validBoundary 
)
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().

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

◆ setPatchFields()

void setPatchFields ( fvMesh mesh,
const label  patchi,
const dictionary patchFieldDict 
)
static

Change patchField on registered fields according to dictionary.

Definition at line 83 of file fvMeshTools.C.

References mesh, Foam::compressible::New(), and patchi.

Here is the call graph for this function:

◆ zeroPatchFields()

void zeroPatchFields ( fvMesh mesh,
const label  patchi 
)
static

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.

Here is the call graph for this function:

◆ reorderPatches()

void reorderPatches ( fvMesh mesh,
const labelList oldToNew,
const label  nPatches,
const bool  validBoundary 
)
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().

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

The documentation for this class was generated from the following files: