Loading...
Searching...
No Matches
polyMeshModifier Class Referenceabstract

Virtual base class for mesh modifiers. More...

#include <polyMeshModifier.H>

Inheritance diagram for polyMeshModifier:

Public Member Functions

 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))
 polyMeshModifier (const word &name, const label index, const polyTopoChanger &mme, const bool act)
 Construct from components.
virtual ~polyMeshModifier ()=default
 Destructor.
const wordname () const
 Return name of this modifier.
label index () const
 Return the index of this modifier.
const polyTopoChangertopoChanger () const
 Return reference to morph engine.
virtual bool changeTopology () const =0
 Check for topology change.
virtual void setRefinement (polyTopoChange &) const =0
 Insert the topological change instructions.
virtual void modifyMotionPoints (pointField &motionPoints) const =0
 Modify motion points to comply with the topological change.
virtual void updateMesh (const mapPolyMesh &)=0
 Force recalculation of locally stored data on topological change.
Switch active () const
 If modifier activate?
void enable () const
 Activate mesh modifier.
void disable () const
 Activate mesh modifier.
virtual void write (Ostream &) const =0
 Write.
virtual void writeDict (Ostream &) const =0
 Write dictionary.

Static Public Member Functions

static autoPtr< polyMeshModifier > New (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
 Select constructed from dictionary.

Friends

Ostreamoperator<< (Ostream &, const polyMeshModifier &)

Detailed Description

Virtual base class for mesh modifiers.

Source files

Definition at line 64 of file polyMeshModifier.H.

Constructor & Destructor Documentation

◆ polyMeshModifier()

polyMeshModifier ( const word & name,
const label index,
const polyTopoChanger & mme,
const bool act )

Construct from components.

Definition at line 40 of file polyMeshModifier.C.

References index(), and name().

Here is the call graph for this function:

◆ ~polyMeshModifier()

virtual ~polyMeshModifier ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "meshModifier" )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr ,
polyMeshModifier ,
dictionary ,
(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) ,
(name, dict, index, mme)  )

References dict, index(), and name().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::polyMeshModifier > New ( const word & name,
const dictionary & dict,
const label index,
const polyTopoChanger & mme )
static

Select constructed from dictionary.

Definition at line 27 of file polyMeshModifierNew.C.

References DebugInFunction, dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, index(), and name().

Here is the call graph for this function:

◆ name()

◆ index()

◆ topoChanger()

◆ changeTopology()

virtual bool changeTopology ( ) const
pure virtual

Check for topology change.

Implemented in attachDetach, layerAdditionRemoval, perfectInterface, setUpdater, and slidingInterface.

◆ setRefinement()

virtual void setRefinement ( polyTopoChange & ) const
pure virtual

Insert the topological change instructions.

Implemented in attachDetach, layerAdditionRemoval, perfectInterface, setUpdater, and slidingInterface.

◆ modifyMotionPoints()

virtual void modifyMotionPoints ( pointField & motionPoints) const
pure virtual

Modify motion points to comply with the topological change.

Implemented in attachDetach, layerAdditionRemoval, perfectInterface, setUpdater, and slidingInterface.

◆ updateMesh()

virtual void updateMesh ( const mapPolyMesh & )
pure virtual

Force recalculation of locally stored data on topological change.

Implemented in attachDetach, layerAdditionRemoval, perfectInterface, setUpdater, and slidingInterface.

◆ active()

Switch active ( ) const
inline

◆ enable()

void enable ( ) const
inline

Activate mesh modifier.

Definition at line 220 of file polyMeshModifier.H.

◆ disable()

void disable ( ) const
inline

Activate mesh modifier.

Definition at line 228 of file polyMeshModifier.H.

◆ write()

virtual void write ( Ostream & ) const
pure virtual

Write.

Implemented in attachDetach, layerAdditionRemoval, perfectInterface, setUpdater, and slidingInterface.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ writeDict()

virtual void writeDict ( Ostream & ) const
pure virtual

◆ operator<<

Ostream & operator<< ( Ostream & ,
const polyMeshModifier &  )
friend

The documentation for this class was generated from the following files: