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)
 Add patch. Inserts patch before all processor patches. Returns the. More...
 
static void addedPatches (fvMesh &mesh)
 Complete adding patches. More...
 
static void setPatchFields (fvMesh &mesh, const label patchi, const dictionary &patchFieldDict)
 Change patchField on registered fields according to dictionary. More...
 
static void reorderPatches (fvMesh &, const labelList &oldToNew, const label nPatches, const bool validBoundary)
 Reorder and remove trailing patches. If validBoundary call is. 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 
)
static

Add patch. Inserts patch before all processor patches. Returns the.

index of the added patch.

Definition at line 32 of file fvMeshTools.C.

References fvMesh::addPatch(), polyMesh::boundaryMesh(), polyBoundaryMesh::findIndex(), forAll, mesh, patchIdentifier::name(), patchi, and UPtrList< T >::size().

Here is the call graph for this function:

◆ addedPatches()

void addedPatches ( fvMesh mesh)
static

Complete adding patches.

Definition at line 73 of file fvMeshTools.C.

References polyMesh::addedPatches(), and mesh.

Here is the call 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 79 of file fvMeshTools.C.

References Foam::FOR_ALL_FIELD_TYPES(), objectRegistry::foundObject(), mesh, DemandDrivenMeshObject< polyMesh, RepatchableMeshObject, pointMesh >::New(), and SetPatchFieldsType.

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 103 of file fvMeshTools.C.

References forAll, mesh, and fvMesh::reorderPatches().

Here is the call graph for this function:

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