Static Public Member Functions | List of all members
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)
 
static void setPatchFields (fvMesh &mesh, const label patchi, const dictionary &patchFieldDict)
 
static void zeroPatchFields (fvMesh &mesh, const label patchi)
 
static void reorderPatches (fvMesh &, const labelList &oldToNew, const label nPatches, const bool validBoundary)
 
static labelList removeEmptyPatches (fvMesh &, const bool validBoundary)
 
static autoPtr< fvMeshnewMesh (const IOobject &io, const bool masterOnlyReading)
 
static void createDummyFvMeshFiles (const objectRegistry &parent, const word &regionName, const bool verbose=false)
 

Detailed Description

A collection of tools for operating on an fvMesh.

Source files

Definition at line 47 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

◆ setPatchFields()

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

Definition at line 212 of file fvMeshTools.C.

References mesh.

◆ zeroPatchFields()

void zeroPatchFields ( fvMesh mesh,
const label  patchi 
)
static

Definition at line 236 of file fvMeshTools.C.

References mesh, and Foam::Zero.

◆ reorderPatches()

void reorderPatches ( fvMesh mesh,
const labelList oldToNew,
const label  nPatches,
const bool  validBoundary 
)
static

Definition at line 322 of file fvMeshTools.C.

References fvMesh::boundary(), polyMesh::boundaryMesh(), mesh, and polyBoundaryMesh::reorder().

Here is the call graph for this function:

◆ removeEmptyPatches()

Foam::labelList removeEmptyPatches ( fvMesh mesh,
const bool  validBoundary 
)
static

Definition at line 354 of file fvMeshTools.C.

References polyMesh::boundaryMesh(), forAll, mesh, Foam::reduce(), and List::setSize().

Here is the call graph for this function:

◆ newMesh()

Foam::autoPtr< Foam::fvMesh > newMesh ( const IOobject io,
const bool  masterOnlyReading 
)
static

◆ createDummyFvMeshFiles()

void createDummyFvMeshFiles ( const objectRegistry parent,
const word regionName,
const bool  verbose = false 
)
static

Definition at line 753 of file fvMeshTools.C.

References dictionary::add(), Foam::endl(), Foam::Info, mesh, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, regionName, TimePaths::system(), fvMesh::time(), and IOobject::typeHeaderOk().

Referenced by voxelMeshSearch::makeMesh().

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: