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 |
| bool | mapped () const |
| Return true if the mesh has been mapped this time-step,. More... | |
| 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 meshToMesh_fvMeshTopoChanger.H.
| meshToMesh | ( | fvMesh & | mesh, |
| const dictionary & | dict | ||
| ) |
Construct from fvMesh and dictionary.
Definition at line 109 of file meshToMesh_fvMeshTopoChanger.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and forAll.

|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 148 of file meshToMesh_fvMeshTopoChanger.C.
| TypeName | ( | "meshToMesh" | ) |
Runtime type information.
| Foam::scalar timeToNextMesh | ( | ) | const |
Definition at line 154 of file meshToMesh_fvMeshTopoChanger.C.
References forAll, forAllReverse, mesh, fvMesh::time(), Time::userTimeToTime(), and Time::userTimeValue().

| bool mapped | ( | ) | const |
Return true if the mesh has been mapped this time-step,.
otherwise false
Definition at line 193 of file meshToMesh_fvMeshTopoChanger.C.
|
virtual |
Update the mesh for both mesh motion and topology change.
Implements fvMeshTopoChanger.
Definition at line 199 of file meshToMesh_fvMeshTopoChanger.C.
References TimePaths::constant(), surfaceInterpolation::deltaCoeffs(), Foam::endl(), functionObjectList::findObjectID(), Foam::FOR_ALL_FIELD_TYPES(), Time::functionObjects(), Foam::Info, fvMesh::mapMesh(), mapVolFieldType, mapVolInternalFieldType, mesh, IOobject::MUST_READ, NaNPointFieldType, NaNSurfaceFieldType, fvMesh::preChange(), fvMesh::swap(), fvMesh::time(), timeIndex, TimeState::timeIndex(), and Time::timeName().

|
virtual |
Update corresponding to the given map.
Implements fvMeshTopoChanger.
Definition at line 313 of file meshToMesh_fvMeshTopoChanger.C.
|
virtual |
Update from another mesh using the given map.
Implements fvMeshTopoChanger.
Definition at line 320 of file meshToMesh_fvMeshTopoChanger.C.
|
virtual |
Update corresponding to the given distribution map.
Implements fvMeshTopoChanger.
Definition at line 324 of file meshToMesh_fvMeshTopoChanger.C.
|
delete |
Disallow default bitwise assignment.