General run-time selected cell set selection class for fvMesh. More...
Public Member Functions | |
fvCellSet (const fvMesh &mesh) | |
Construct from mesh. Will select all. More... | |
fvCellSet (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh and dictionary. More... | |
~fvCellSet () | |
Destructor. More... | |
scalar | V () const |
Return const access to the total cell volume. More... | |
void | movePoints () |
Update for mesh motion. More... | |
void | topoChange (const polyTopoChangeMap &) |
Update topology using the given map. More... | |
void | mapMesh (const polyMeshMap &) |
Update from another mesh using the given map. More... | |
void | distribute (const polyDistributionMap &) |
Redistribute or update using the given distribution map. More... | |
bool | read (const dictionary &dict) |
Read coefficients dictionary. More... | |
Public Member Functions inherited from polyCellSet | |
polyCellSet (const polyMesh &mesh) | |
Construct from mesh. Will select all. More... | |
polyCellSet (const polyMesh &mesh, const dictionary &dict) | |
Construct from mesh and dictionary. More... | |
~polyCellSet () | |
Destructor. More... | |
const selectionTypes & | selectionType () const |
Return const access to the cell selection type. More... | |
const word & | cellSetName () const |
Return const access to the name of cellSet. More... | |
labelUList | cells () const |
Return const access to the cell set. More... | |
label | nCells () const |
Return the number of cells in the set. More... | |
bool | all () const |
Return true if the set comprises all the cells. More... | |
label | celli (const label i) const |
Return the cell index corresponding to the cell set index. More... | |
void | movePoints () |
Update for mesh motion. More... | |
void | topoChange (const polyTopoChangeMap &) |
Update topology using the given map. More... | |
void | mapMesh (const polyMeshMap &) |
Update from another mesh using the given map. More... | |
void | distribute (const polyDistributionMap &) |
Redistribute or update using the given distribution map. More... | |
bool | read (const dictionary &dict) |
Read coefficients dictionary. More... | |
Protected Member Functions | |
void | writeFileHeader (const functionObjects::writeFile &wf, Ostream &file) |
Output file header information. More... | |
Additional Inherited Members | |
Public Types inherited from polyCellSet | |
enum class | selectionTypes { points , cellSet , cellZone , all } |
Enumeration for selection mode types. More... | |
Static Public Attributes inherited from polyCellSet | |
static const NamedEnum< selectionTypes, 4 > | selectionTypeNames |
Word list of selection type names. More... | |
General run-time selected cell set selection class for fvMesh.
Currently supports cell selection from:
// Select all cells select all; // Select the cells within the given cellSet select cellSet; // Optional cellSet rotor; // Select the cells within the given cellZone select cellZone; // Optional cellZone rotor; // Select the cells containing a list of points select points; // Optional points ( (2.25 0.5 0) (2.75 0.5 0) );
Definition at line 85 of file fvCellSet.H.
Construct from mesh. Will select all.
Definition at line 69 of file fvCellSet.C.
fvCellSet | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from mesh and dictionary.
Definition at line 77 of file fvCellSet.C.
~fvCellSet | ( | ) |
Destructor.
Definition at line 89 of file fvCellSet.C.
|
protected |
Output file header information.
Definition at line 54 of file fvCellSet.C.
References Foam::endl(), Foam::file, Foam::setw(), writeFile::writeCommented(), and writeFile::writeHeaderValue().
Referenced by volFieldValue::writeFileHeader().
|
inline |
Return const access to the total cell volume.
Definition at line 28 of file fvCellSetI.H.
void movePoints | ( | ) |
Update for mesh motion.
Definition at line 95 of file fvCellSet.C.
References polyCellSet::movePoints().
void topoChange | ( | const polyTopoChangeMap & | map | ) |
Update topology using the given map.
Definition at line 102 of file fvCellSet.C.
References polyCellSet::topoChange().
void mapMesh | ( | const polyMeshMap & | map | ) |
Update from another mesh using the given map.
Definition at line 109 of file fvCellSet.C.
References polyCellSet::mapMesh().
void distribute | ( | const polyDistributionMap & | map | ) |
Redistribute or update using the given distribution map.
Definition at line 116 of file fvCellSet.C.
References polyCellSet::distribute().
bool read | ( | const dictionary & | dict | ) |
Read coefficients dictionary.
Definition at line 123 of file fvCellSet.C.
References dict, and polyCellSet::read().