meshToMesh Class Reference

fvMeshTopoChanger which maps the fields to a new mesh or sequence of meshes More...

Inheritance diagram for meshToMesh:
Collaboration diagram for meshToMesh:

Public Member Functions

 TypeName ("meshToMesh")
 Runtime type information. More...
 
 meshToMesh (fvMesh &, const dictionary &dict)
 Construct from fvMesh and dictionary. More...
 
 meshToMesh (const meshToMesh &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~meshToMesh ()
 Destructor. More...
 
scalar timeToNextMesh () const
 
virtual bool update ()
 Update the mesh for both mesh motion and topology change. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update corresponding to the given map. More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. More...
 
virtual void distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
void operator= (const meshToMesh &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from fvMeshTopoChanger
 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 write (const bool write=true) const
 Write the mover state. More...
 
void operator= (const fvMeshTopoChanger &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fvMeshTopoChanger
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

fvMeshTopoChanger which maps the fields to a new mesh or sequence of meshes

which can optionally be mapped to repeatedly for example in multi-cycle engine cases or cycled through for symmetric forward and reverse motion.

Usage
Property Description Required Default value
libs Libraries to load no
times List of times for the meshes yes
repeat Repetition period no
cycle Cycle period no
begin Begin time for the meshes no Time::beginTime()
timeDelta Time tolerance used for time -> index yes

Examples of the mesh-to-mesh mapping for the multi-cycle tutorials/incompressibleFluid/movingCone case:

    topoChanger
    {
        type    meshToMesh;

        libs    ("libmeshToMeshTopoChanger.so");

        times   (0.0015 0.003);

        cycle   #calc "1.0/300.0";
        begin   0;

        timeDelta 1e-6;
    }
Source files

Definition at line 117 of file fvMeshTopoChangersMeshToMesh.H.

Constructor & Destructor Documentation

◆ meshToMesh() [1/2]

meshToMesh ( fvMesh mesh,
const dictionary dict 
)

Construct from fvMesh and dictionary.

Definition at line 119 of file fvMeshTopoChangersMeshToMesh.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and forAll.

Here is the call graph for this function:

◆ meshToMesh() [2/2]

meshToMesh ( const meshToMesh )
delete

Disallow default bitwise copy construction.

◆ ~meshToMesh()

~meshToMesh ( )
virtual

Destructor.

Definition at line 150 of file fvMeshTopoChangersMeshToMesh.C.

Member Function Documentation

◆ TypeName()

TypeName ( "meshToMesh"  )

Runtime type information.

◆ timeToNextMesh()

Foam::scalar timeToNextMesh ( ) const

Definition at line 156 of file fvMeshTopoChangersMeshToMesh.C.

References forAll, forAllReverse, objectRegistry::time(), Time::userTimeToTime(), and Time::userTimeValue().

Here is the call graph for this function:

◆ update()

◆ topoChange()

void topoChange ( const polyTopoChangeMap map)
virtual

Update corresponding to the given map.

Implements fvMeshTopoChanger.

Definition at line 302 of file fvMeshTopoChangersMeshToMesh.C.

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map.

Implements fvMeshTopoChanger.

Definition at line 309 of file fvMeshTopoChangersMeshToMesh.C.

◆ distribute()

void distribute ( const polyDistributionMap map)
virtual

Update corresponding to the given distribution map.

Implements fvMeshTopoChanger.

Definition at line 313 of file fvMeshTopoChangersMeshToMesh.C.

◆ operator=()

void operator= ( const meshToMesh )
delete

Disallow default bitwise assignment.


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