Cell layer addition mesh modifier. More...
#include <dynamicMesh/layerAdditionRemoval.H>
Cell layer addition mesh modifier.
Definition at line 53 of file layerAdditionRemoval.H.
Public Member Functions | |
TypeName ("layerAdditionRemoval") | |
Runtime type information.
| |
layerAdditionRemoval (const word &name, const label index, const polyTopoChanger &mme, const word &zoneName, const scalar minThickness, const scalar maxThickness) | |
Construct from components.
| |
layerAdditionRemoval (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) | |
Construct from dictionary.
| |
virtual | ~layerAdditionRemoval () |
virtual bool | changeTopology () const |
Check for topology change.
| |
virtual void | setRefinement (polyTopoChange &) const |
Insert the layer addition/removal instructions.
| |
virtual void | modifyMotionPoints (pointField &motionPoints) const |
Modify motion points to comply with the topological change.
| |
virtual void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change.
| |
scalar | minLayerThickness () const |
Return min layer thickness which triggers removal.
| |
void | setMinLayerThickness (const scalar t) const |
Set min layer thickness which triggers removal.
| |
scalar | maxLayerThickness () const |
Return max layer thickness which triggers removal.
| |
void | setMaxLayerThickness (const scalar t) const |
Set max layer thickness which triggers removal.
| |
virtual void | write (Ostream &) const |
Write.
| |
virtual void | writeDict (Ostream &) const |
Write dictionary.
|
layerAdditionRemoval | ( | const word & | name, |
const label | index, | ||
const polyTopoChanger & | mme, | ||
const word & | zoneName, | ||
const scalar | minThickness, | ||
const scalar | maxThickness | ||
) |
Construct from components.
Definition at line 120 of file layerAdditionRemoval.C.
layerAdditionRemoval | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyTopoChanger & | mme | ||
) |
Construct from dictionary.
Definition at line 145 of file layerAdditionRemoval.C.
~layerAdditionRemoval | ( | ) | [virtual]
|
Definition at line 168 of file layerAdditionRemoval.C.
TypeName | ( | "layerAdditionRemoval" | ) |
Runtime type information.
bool changeTopology | ( | ) | const [virtual]
|
Check for topology change.
Implements polyMeshModifier.
Definition at line 176 of file layerAdditionRemoval.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, Foam::mag(), faceZone::masterCells(), Foam::max(), Foam::min(), Foam::name(), Foam::nl, Foam::Pout, and List< T >::size().
void setRefinement | ( | polyTopoChange & | ref ) | const [virtual]
|
Insert the layer addition/removal instructions.
into the topological change
Implements polyMeshModifier.
Definition at line 368 of file layerAdditionRemoval.C.
References Foam::endl(), mesh, Foam::name(), Foam::Pout, and timeIndex.
void modifyMotionPoints | ( | pointField & | motionPoints ) | const [virtual]
|
Modify motion points to comply with the topological change.
Implements polyMeshModifier.
Definition at line 208 of file setLayerPairing.C.
References Foam::endl(), Foam::name(), and Foam::Pout.
void updateMesh | ( | const mapPolyMesh & | ) | [virtual]
|
Force recalculation of locally stored data on topological change.
Implements polyMeshModifier.
Definition at line 407 of file layerAdditionRemoval.C.
References Foam::endl(), mesh, Foam::name(), and Foam::Pout.
scalar minLayerThickness | ( | ) | const [inline]
|
Return min layer thickness which triggers removal.
Definition at line 192 of file layerAdditionRemoval.H.
void setMinLayerThickness | ( | const scalar | t ) | const |
Set min layer thickness which triggers removal.
Definition at line 432 of file layerAdditionRemoval.C.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
scalar maxLayerThickness | ( | ) | const [inline]
|
Return max layer thickness which triggers removal.
Definition at line 201 of file layerAdditionRemoval.H.
void setMaxLayerThickness | ( | const scalar | t ) | const |
Set max layer thickness which triggers removal.
Definition at line 452 of file layerAdditionRemoval.C.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
void write | ( | Ostream & | os ) | const [virtual]
|
Write.
Implements polyMeshModifier.
Definition at line 471 of file layerAdditionRemoval.C.
References Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
void writeDict | ( | Ostream & | os ) | const [virtual]
|
Write dictionary.
Implements polyMeshModifier.
Definition at line 482 of file layerAdditionRemoval.C.
References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, and Foam::type().