A zoneGenerator which converts the pointZones, faceZones and cellZones from a list of zoneGenerators into a single cellZone. More...


Public Member Functions | |
| TypeName ("cell") | |
| Runtime type information. More... | |
| cell (const word &name, const polyMesh &mesh, const dictionary &dict) | |
| Construct from dictionary. More... | |
| virtual | ~cell () |
| Destructor. More... | |
| virtual zoneSet | generate () const |
| Generate and return the zoneSet. More... | |
Public Member Functions inherited from zoneGenerator | |
| TypeName ("zoneGenerator") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, zoneGenerator, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict)) | |
| zoneGenerator (const word &name, const polyMesh &mesh, const dictionary &dict) | |
| Construct from name, polyMesh and dictionary. More... | |
| zoneGenerator (const zoneGenerator &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual | ~zoneGenerator () |
| Destructor. More... | |
| const word & | name () const |
| Return the zoneGenerator name. More... | |
| const word & | zoneName () const |
| Return the zone name. More... | |
| const polyMesh & | mesh () const |
| Return reference to the polyMesh. More... | |
| bool | moveUpdate () const |
| Return true if the zoneGenerator updates any of the zones. More... | |
| virtual zoneSet | movePoints () const |
| Regenerate the zoneSet following mesh point motion. More... | |
| void | operator= (const zoneGenerator &)=delete |
| Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from zoneGenerator | |
| static autoPtr< zoneGenerator > | New (const word &name, const polyMesh &mesh, const dictionary &dict) |
| Select constructed from name, mesh and dictionary. More... | |
| static autoPtr< zoneGenerator > | New (const word &name, const zoneTypes &zoneType, const polyMesh &mesh, const dictionary &dict) |
| Select constructed from name, zoneType, mesh and dictionary. More... | |
| static autoPtr< zoneGenerator > | New (const polyMesh &mesh, const dictionary &dict) |
| Select constructed from mesh and first valid dictionary. More... | |
| static labelList | indices (const boolList &selected) |
| Return the list of selected indices. More... | |
Protected Attributes inherited from zoneGenerator | |
| const word | name_ |
| Name of zone generator. More... | |
| const dictionary | dict_ |
| Dictionary cached for error context. More... | |
| const word | zoneName_ |
| Name of the zone (defaults to the name of the generator) More... | |
| const polyMesh & | mesh_ |
| Reference to the polyMesh. More... | |
| bool | moveUpdate_ |
| Switch to update the zones if the mesh points are moved. More... | |
A zoneGenerator which converts the pointZones, faceZones and cellZones from a list of zoneGenerators into a single cellZone.
For pointZones the cells containing any of the points are included. For faceZones the cells on either side of the faces are included. For cellZones the cells in the cellZones are included.
| Property | Description | Required | Default value |
|---|---|---|---|
type | Type: cell | yes | |
name | Name of the zone | no | zoneGenerator name |
cellType | Cell type selection option | no | master |
moveUpdate | Switch to update after mesh motion | no | false |
Examples: Given a faceZone named plane is generated by
plane
{
type plane;
point (0.5 0 0);
normal (1 0 0);
} a cellZone named planeCells containing the cells from both sides of the plane faceZone is generated by
planeCells
{
type cell;
plane; // lookup zone named 'plane'
}or if the faceZone is not needed after the generation of the cellZone
planeCells
{
type cell;
plane
{
type plane;
point (0.5 0 0);
normal (1 0 0);
}
} To create a cellZone from two zones named plane1 and plane2
planeCells
{
type cell;
plane1; // lookup 'plane1'
plane2; // lookup 'plane2'
}Definition at line 134 of file cell_zoneGenerator.H.
| cell | ( | const word & | name, |
| const polyMesh & | mesh, | ||
| const dictionary & | dict | ||
| ) |
Construct from dictionary.
Definition at line 49 of file cell_zoneGenerator.C.
|
virtual |
Destructor.
Definition at line 63 of file cell_zoneGenerator.C.
| TypeName | ( | "cell" | ) |
Runtime type information.
|
virtual |
Generate and return the zoneSet.
Implements zoneGenerator.
Definition at line 69 of file cell_zoneGenerator.C.
References zoneSet::cValid(), zoneSet::cZone(), forAll, zoneSet::fValid(), zoneSet::fZone(), Zone< ZoneType, ZonesType >::name(), Foam::constant::mathematical::pi(), zoneSet::pValid(), and zoneSet::pZone().
