fvMeshTopoChanger Class Referenceabstract

Abstract base class for fvMesh topology changers. More...

Inheritance diagram for fvMeshTopoChanger:

Classes

class  velocityMotionCorrection
 Helper class to update the velocity boundary conditions. More...
 

Public Member Functions

 TypeName ("fvMeshTopoChanger")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, fvMeshTopoChanger, fvMesh,(fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 fvMeshTopoChanger (fvMesh &)
 Construct from fvMesh. More...
 
 fvMeshTopoChanger (const fvMeshTopoChanger &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~fvMeshTopoChanger ()
 Destructor. More...
 
fvMeshmesh ()
 Return the fvMesh. More...
 
const fvMeshmesh () const
 Return the fvMesh. More...
 
virtual bool dynamic () const
 Is mesh dynamic, i.e. might it change? More...
 
virtual bool update ()=0
 Update the mesh for both mesh motion and topology change. More...
 
virtual void topoChange (const polyTopoChangeMap &)=0
 Update corresponding to the given map. More...
 
virtual void mapMesh (const polyMeshMap &)=0
 Update from another mesh using the given map. More...
 
virtual void distribute (const polyDistributionMap &)=0
 Update corresponding to the given distribution map. More...
 
virtual bool write (const bool write=true) const
 Write the mover state. More...
 
void operator= (const fvMeshTopoChanger &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static autoPtr< fvMeshTopoChangerNew (fvMesh &, const dictionary &dict)
 Select, construct and return the fvMeshTopoChanger. More...
 
static autoPtr< fvMeshTopoChangerNew (fvMesh &)
 Select, construct and return the fvMeshTopoChanger. More...
 

Detailed Description

Abstract base class for fvMesh topology changers.

These classes apply topology changes to the mesh, e.g. refinement/unrefinement, layer addition/removal, mesh-to-mesh mapping etc.

Source files

Definition at line 53 of file fvMeshTopoChanger.H.

Constructor & Destructor Documentation

◆ fvMeshTopoChanger() [1/2]

fvMeshTopoChanger ( fvMesh mesh)
explicit

Construct from fvMesh.

Definition at line 40 of file fvMeshTopoChanger.C.

◆ fvMeshTopoChanger() [2/2]

fvMeshTopoChanger ( const fvMeshTopoChanger )
delete

Disallow default bitwise copy construction.

◆ ~fvMeshTopoChanger()

~fvMeshTopoChanger ( )
virtual

Destructor.

Definition at line 59 of file fvMeshTopoChanger.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fvMeshTopoChanger"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
fvMeshTopoChanger  ,
fvMesh  ,
(fvMesh &mesh, const dictionary &dict ,
(mesh, dict  
)

◆ New() [1/2]

Foam::autoPtr< Foam::fvMeshTopoChanger > New ( fvMesh mesh,
const dictionary dict 
)
static

Select, construct and return the fvMeshTopoChanger.

Definition at line 30 of file fvMeshTopoChangerNew.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::libs, fvMeshTopoChanger::mesh(), Foam::nl, and dlLibraryTable::open().

Referenced by fvMesh::fvMesh(), and list::list().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New() [2/2]

Foam::autoPtr< Foam::fvMeshTopoChanger > New ( fvMesh mesh)
static

Select, construct and return the fvMeshTopoChanger.

Definition at line 78 of file fvMeshTopoChangerNew.C.

References TimePaths::constant(), dict, dictionary::found(), typeIOobject< Type >::headerOk(), Foam::New(), IOobject::NO_WRITE, IOobject::READ_IF_PRESENT, dictionary::subDict(), and fvMesh::time().

Here is the call graph for this function:

◆ mesh() [1/2]

fvMesh& mesh ( )
inline

Return the fvMesh.

Definition at line 134 of file fvMeshTopoChanger.H.

Referenced by list::list(), movingCone::movingCone(), fvMeshTopoChanger::New(), and refiner::refiner().

Here is the caller graph for this function:

◆ mesh() [2/2]

const fvMesh& mesh ( ) const
inline

Return the fvMesh.

Definition at line 140 of file fvMeshTopoChanger.H.

◆ dynamic()

virtual bool dynamic ( ) const
inlinevirtual

Is mesh dynamic, i.e. might it change?

Defaults to true, set to false in the fvMeshTopoChangers::none

Reimplemented in none.

Definition at line 147 of file fvMeshTopoChanger.H.

◆ update()

virtual bool update ( )
pure virtual

Update the mesh for both mesh motion and topology change.

Implemented in refiner, raw, movingCone, meshToMesh, none, and list.

◆ topoChange()

virtual void topoChange ( const polyTopoChangeMap )
pure virtual

Update corresponding to the given map.

Implemented in refiner, raw, movingCone, meshToMesh, none, and list.

◆ mapMesh()

virtual void mapMesh ( const polyMeshMap )
pure virtual

Update from another mesh using the given map.

Implemented in refiner, raw, movingCone, meshToMesh, none, and list.

◆ distribute()

virtual void distribute ( const polyDistributionMap )
pure virtual

Update corresponding to the given distribution map.

Implemented in refiner, raw, movingCone, meshToMesh, none, and list.

◆ write()

virtual bool write ( const bool  write = true) const
inlinevirtual

Write the mover state.

Reimplemented in refiner.

Definition at line 165 of file fvMeshTopoChanger.H.

◆ operator=()

void operator= ( const fvMeshTopoChanger )
delete

Disallow default bitwise assignment.


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