Cell layer addition mesh modifier. More...
Public Member Functions | |
TypeName ("layerAdditionRemoval") | |
Runtime type information. More... | |
layerAdditionRemoval (const word &name, const label index, const polyTopoChanger &ptc, const word &zoneName, const scalar minThickness, const scalar maxThickness, const Switch thicknessFromVolume=true) | |
Construct from components. More... | |
layerAdditionRemoval (const word &name, const dictionary &dict, const label index, const polyTopoChanger &ptc) | |
Construct from dictionary. More... | |
layerAdditionRemoval (const layerAdditionRemoval &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~layerAdditionRemoval () |
Destructor. More... | |
virtual bool | changeTopology () const |
Check for topology change. More... | |
virtual void | setRefinement (polyTopoChange &) const |
Insert the layer addition/removal instructions. More... | |
virtual void | modifyMotionPoints (pointField &motionPoints) const |
Modify motion points to comply with the topological change. More... | |
virtual void | topoChange (const polyTopoChangeMap &) |
Force recalculation of locally stored data on topological change. More... | |
scalar | minLayerThickness () const |
Return min layer thickness which triggers removal. More... | |
void | setMinLayerThickness (const scalar t) const |
Set min layer thickness which triggers removal. More... | |
scalar | maxLayerThickness () const |
Return max layer thickness which triggers removal. More... | |
void | setMaxLayerThickness (const scalar t) const |
Set max layer thickness which triggers removal. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | writeDict (Ostream &) const |
Write dictionary. More... | |
void | operator= (const layerAdditionRemoval &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from polyMeshModifier | |
TypeName ("meshModifier") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, polyMeshModifier, dictionary,(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme),(name, dict, index, mme)) | |
polyMeshModifier (const word &name, const label index, const polyTopoChanger &mme, const bool act) | |
Construct from components. More... | |
polyMeshModifier (const polyMeshModifier &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~polyMeshModifier () |
Destructor. More... | |
const word & | name () const |
Return name of this modifier. More... | |
label | index () const |
Return the index of this modifier. More... | |
const polyTopoChanger & | topoChanger () const |
Return reference to morph engine. More... | |
const Switch & | active () const |
void | enable () const |
Activate mesh modifier. More... | |
void | disable () const |
Activate mesh modifier. More... | |
void | operator= (const polyMeshModifier &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from polyMeshModifier | |
static autoPtr< polyMeshModifier > | New (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) |
Select constructed from dictionary. More... | |
Cell layer addition mesh modifier.
Definition at line 52 of file layerAdditionRemoval.H.
layerAdditionRemoval | ( | const word & | name, |
const label | index, | ||
const polyTopoChanger & | ptc, | ||
const word & | zoneName, | ||
const scalar | minThickness, | ||
const scalar | maxThickness, | ||
const Switch | thicknessFromVolume = true |
||
) |
Construct from components.
Definition at line 136 of file layerAdditionRemoval.C.
layerAdditionRemoval | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyTopoChanger & | ptc | ||
) |
Construct from dictionary.
Definition at line 162 of file layerAdditionRemoval.C.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 189 of file layerAdditionRemoval.C.
TypeName | ( | "layerAdditionRemoval" | ) |
Runtime type information.
|
virtual |
Check for topology change.
Implements polyMeshModifier.
Definition at line 197 of file layerAdditionRemoval.C.
References Foam::abort(), primitiveMesh::cells(), primitiveMesh::cellVolumes(), Foam::e, cell::edges(), Foam::endl(), primitiveMesh::faceAreas(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, HashTable< T, Key, Hash >::found(), edge::mag(), Foam::mag(), faceZone::masterCells(), Foam::max(), mesh, Foam::min(), Foam::name(), Foam::nl, polyMesh::points(), Foam::Pout, Foam::reduce(), Foam::fvm::S(), List< T >::size(), objectRegistry::time(), and TimeState::timeIndex().
|
virtual |
Insert the layer addition/removal instructions.
into the topological change
Implements polyMeshModifier.
Definition at line 395 of file layerAdditionRemoval.C.
References Foam::endl(), mesh, Foam::name(), Foam::Pout, and timeIndex.
|
virtual |
Modify motion points to comply with the topological change.
Implements polyMeshModifier.
Definition at line 214 of file setLayerPairing.C.
References Foam::endl(), polyMeshModifier::name(), and Foam::Pout.
|
virtual |
Force recalculation of locally stored data on topological change.
Implements polyMeshModifier.
Definition at line 434 of file layerAdditionRemoval.C.
References Foam::endl(), mesh, Foam::name(), and Foam::Pout.
|
inline |
Return min layer thickness which triggers removal.
Definition at line 193 of file layerAdditionRemoval.H.
References layerAdditionRemoval::setMinLayerThickness().
void setMinLayerThickness | ( | const scalar | t | ) | const |
Set min layer thickness which triggers removal.
Definition at line 459 of file layerAdditionRemoval.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by layerAdditionRemoval::minLayerThickness().
|
inline |
Return max layer thickness which triggers removal.
Definition at line 202 of file layerAdditionRemoval.H.
References layerAdditionRemoval::operator=(), layerAdditionRemoval::setMaxLayerThickness(), layerAdditionRemoval::write(), and layerAdditionRemoval::writeDict().
void setMaxLayerThickness | ( | const scalar | t | ) | const |
Set max layer thickness which triggers removal.
Definition at line 472 of file layerAdditionRemoval.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by layerAdditionRemoval::maxLayerThickness().
|
virtual |
Write.
Implements polyMeshModifier.
Definition at line 485 of file layerAdditionRemoval.C.
References Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
Referenced by layerAdditionRemoval::maxLayerThickness().
|
virtual |
Write dictionary.
Implements polyMeshModifier.
Definition at line 497 of file layerAdditionRemoval.C.
References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
Referenced by layerAdditionRemoval::maxLayerThickness().
|
delete |
Disallow default bitwise assignment.
Referenced by layerAdditionRemoval::maxLayerThickness().