Functions
subsetMesh.C File Reference

Selects a section of mesh based on a cellSet. More...

Include dependency graph for subsetMesh.C:

Go to the source code of this file.

Functions

labelList nearestPatch (const polyMesh &mesh, const labelList &patchIDs)
 
template<class Type >
void subsetVolFields (const fvMeshSubset &subsetter, const wordList &fieldNames, PtrList< GeometricField< Type, fvPatchField, volMesh > > &subFields)
 
template<class Type >
void subsetSurfaceFields (const fvMeshSubset &subsetter, const wordList &fieldNames, PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &subFields)
 
template<class Type >
void subsetPointFields (const fvMeshSubset &subsetter, const pointMesh &pMesh, const wordList &fieldNames, PtrList< GeometricField< Type, pointPatchField, pointMesh > > &subFields)
 
template<class Type >
void subsetDimensionedFields (const fvMeshSubset &subsetter, const wordList &fieldNames, PtrList< DimensionedField< Type, volMesh > > &subFields)
 
int main (int argc, char *argv[])
 

Detailed Description

Selects a section of mesh based on a cellSet.

Original source file subsetMesh.C

The utility sub-sets the mesh to choose only a part of interest. Check the setSet/cellSet/topoSet utilities to see how to select cells based on various shapes.

The mesh will subset all points, faces and cells needed to make a sub-mesh but will not preserve attached boundary types.

Definition in file subsetMesh.C.

Function Documentation

◆ nearestPatch()

labelList nearestPatch ( const polyMesh mesh,
const labelList patchIDs 
)

◆ subsetVolFields()

void subsetVolFields ( const fvMeshSubset subsetter,
const wordList fieldNames,
PtrList< GeometricField< Type, fvPatchField, volMesh > > &  subFields 
)

Definition at line 124 of file subsetMesh.C.

References fvMeshSubset::baseMesh(), Foam::endl(), Foam::fieldNames(), fld(), forAll, Foam::Info, fvMeshSubset::interpolate(), IOobject::MUST_READ, IOobject::NO_WRITE, fvMesh::time(), and Time::timeName().

Referenced by main().

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

◆ subsetSurfaceFields()

void subsetSurfaceFields ( const fvMeshSubset subsetter,
const wordList fieldNames,
PtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &  subFields 
)

Definition at line 158 of file subsetMesh.C.

References fvMeshSubset::baseMesh(), Foam::endl(), Foam::fieldNames(), fld(), forAll, Foam::Info, fvMeshSubset::interpolate(), IOobject::MUST_READ, IOobject::NO_WRITE, fvMesh::time(), and Time::timeName().

Referenced by main().

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

◆ subsetPointFields()

void subsetPointFields ( const fvMeshSubset subsetter,
const pointMesh pMesh,
const wordList fieldNames,
PtrList< GeometricField< Type, pointPatchField, pointMesh > > &  subFields 
)

Definition at line 192 of file subsetMesh.C.

References fvMeshSubset::baseMesh(), Foam::endl(), Foam::fieldNames(), fld(), forAll, Foam::Info, fvMeshSubset::interpolate(), IOobject::MUST_READ, IOobject::NO_WRITE, fvMesh::time(), and Time::timeName().

Referenced by main().

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

◆ subsetDimensionedFields()

void subsetDimensionedFields ( const fvMeshSubset subsetter,
const wordList fieldNames,
PtrList< DimensionedField< Type, volMesh > > &  subFields 
)

Definition at line 227 of file subsetMesh.C.

References fvMeshSubset::baseMesh(), Foam::endl(), Foam::fieldNames(), fld(), forAll, Foam::Info, fvMeshSubset::interpolate(), IOobject::MUST_READ, IOobject::NO_WRITE, fvMesh::time(), and Time::timeName().

Referenced by main().

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

◆ main()

int main ( int  argc,
char *  argv[] 
)