fvMeshTopoChanger which maps the fields to a new mesh or sequence of meshes More...
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... | |
fvMesh & | mesh () |
Return the fvMesh. More... | |
const fvMesh & | mesh () 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< fvMeshTopoChanger > | New (fvMesh &, const dictionary &dict) |
Select, construct and return the fvMeshTopoChanger. More... | |
static autoPtr< fvMeshTopoChanger > | New (fvMesh &) |
Select, construct and return the fvMeshTopoChanger. More... | |
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.
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; }
Definition at line 117 of file fvMeshTopoChangersMeshToMesh.H.
meshToMesh | ( | fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from fvMesh and dictionary.
Definition at line 114 of file fvMeshTopoChangersMeshToMesh.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and forAll.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 153 of file fvMeshTopoChangersMeshToMesh.C.
TypeName | ( | "meshToMesh" | ) |
Runtime type information.
Foam::scalar timeToNextMesh | ( | ) | const |
Definition at line 159 of file fvMeshTopoChangersMeshToMesh.C.
References forAll, forAllReverse, objectRegistry::time(), Time::userTimeToTime(), and Time::userTimeValue().
|
virtual |
Update the mesh for both mesh motion and topology change.
Implements fvMeshTopoChanger.
Definition at line 198 of file fvMeshTopoChangersMeshToMesh.C.
References TimePaths::constant(), Foam::endl(), functionObjectList::findObjectID(), Foam::FOR_ALL_FIELD_TYPES(), Time::functionObjects(), Foam::Info, mapVolFieldType, mapVolInternalFieldType, IOobject::MUST_READ, NaNPointFieldType, NaNSurfaceFieldType, objectRegistry::time(), timeIndex, TimeState::timeIndex(), and Time::timeName().
|
virtual |
Update corresponding to the given map.
Implements fvMeshTopoChanger.
Definition at line 311 of file fvMeshTopoChangersMeshToMesh.C.
|
virtual |
Update from another mesh using the given map.
Implements fvMeshTopoChanger.
Definition at line 318 of file fvMeshTopoChangersMeshToMesh.C.
|
virtual |
Update corresponding to the given distribution map.
Implements fvMeshTopoChanger.
Definition at line 322 of file fvMeshTopoChangersMeshToMesh.C.
|
delete |
Disallow default bitwise assignment.