Virtual base class for mesh modifiers. More...
Public Member Functions | |
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... | |
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... | |
virtual bool | changeTopology () const =0 |
Check for topology change. More... | |
virtual void | setRefinement (polyTopoChange &) const =0 |
Insert the topological change instructions. More... | |
virtual void | modifyMotionPoints (pointField &motionPoints) const =0 |
Modify motion points to comply with the topological change. More... | |
virtual void | updateMesh (const mapPolyMesh &)=0 |
Force recalculation of locally stored data on topological change. More... | |
const Switch & | active () const |
void | enable () const |
Activate mesh modifier. More... | |
void | disable () const |
Activate mesh modifier. More... | |
virtual void | write (Ostream &) const =0 |
Write. More... | |
virtual void | writeDict (Ostream &) const =0 |
Write dictionary. More... | |
Static Public Member Functions | |
static autoPtr< polyMeshModifier > | New (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) |
Select constructed from dictionary. More... | |
Private Member Functions | |
polyMeshModifier (const polyMeshModifier &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const polyMeshModifier &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
word | name_ |
Name of modifier. More... | |
label | index_ |
Index of modifier. More... | |
const polyTopoChanger & | topoChanger_ |
Reference to morph engine. More... | |
Switch | active_ |
Activation switch. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const polyMeshModifier &) |
Virtual base class for mesh modifiers.
Definition at line 61 of file polyMeshModifier.H.
|
private |
Disallow default bitwise copy construct.
polyMeshModifier | ( | const word & | name, |
const label | index, | ||
const polyTopoChanger & | mme, | ||
const bool | act | ||
) |
Construct from components.
Definition at line 47 of file polyMeshModifier.C.
|
virtual |
Destructor.
Definition at line 63 of file polyMeshModifier.C.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "meshModifier" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
polyMeshModifier | , | ||
dictionary | , | ||
(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) | , | ||
(name, dict, index, mme) | |||
) |
|
static |
Select constructed from dictionary.
Definition at line 32 of file polyMeshModifierNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, Foam::name(), and Foam::nl.
Referenced by polyTopoChanger::readModifiers().
|
inline |
Return name of this modifier.
Definition at line 143 of file polyMeshModifier.H.
References polyMeshModifier::name_.
Referenced by slidingInterface::calcAttachedAddressing(), layerAdditionRemoval::checkDefinition(), attachDetach::checkDefinition(), slidingInterface::checkDefinition(), slidingInterface::coupleInterface(), layerAdditionRemoval::extrusionDir(), slidingInterface::projectPoints(), and layerAdditionRemoval::validCollapse().
|
inline |
Return the index of this modifier.
Definition at line 149 of file polyMeshModifier.H.
References polyMeshModifier::index_.
const Foam::polyTopoChanger & topoChanger | ( | ) | const |
Return reference to morph engine.
Definition at line 69 of file polyMeshModifier.C.
Referenced by slidingInterface::calcAttachedAddressing(), layerAdditionRemoval::checkDefinition(), attachDetach::checkDefinition(), slidingInterface::checkDefinition(), slidingInterface::coupleInterface(), layerAdditionRemoval::extrusionDir(), slidingInterface::projectPoints(), layerAdditionRemoval::setLayerPairing(), and layerAdditionRemoval::validCollapse().
|
pure virtual |
Check for topology change.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
pure virtual |
Insert the topological change instructions.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
pure virtual |
Modify motion points to comply with the topological change.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
pure virtual |
Force recalculation of locally stored data on topological change.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
inline |
Definition at line 172 of file polyMeshModifier.H.
References polyMeshModifier::active_.
|
inline |
Activate mesh modifier.
Definition at line 178 of file polyMeshModifier.H.
References polyMeshModifier::active_.
|
inline |
Activate mesh modifier.
Definition at line 184 of file polyMeshModifier.H.
References polyMeshModifier::active_.
|
pure virtual |
Write.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
pure virtual |
Write dictionary.
Implemented in slidingInterface, attachDetach, layerAdditionRemoval, perfectInterface, and setUpdater.
|
friend |
|
private |
Name of modifier.
Definition at line 66 of file polyMeshModifier.H.
Referenced by polyMeshModifier::name().
|
private |
Index of modifier.
Definition at line 69 of file polyMeshModifier.H.
Referenced by polyMeshModifier::index().
|
private |
Reference to morph engine.
Definition at line 72 of file polyMeshModifier.H.
|
mutableprivate |
Activation switch.
Definition at line 75 of file polyMeshModifier.H.
Referenced by polyMeshModifier::active(), polyMeshModifier::disable(), and polyMeshModifier::enable().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.