Go to the documentation of this file.
53 <<
"Specified IOobject::MUST_READ_IF_MODIFIED but class"
54 <<
" does not support automatic re-reading."
67 forAll(modifiers, modifierI)
74 patchEntries[modifierI].keyword(),
75 patchEntries[modifierI].
dict(),
83 is.
check(
"polyTopoChanger::readModifiers()");
112 mesh.time().findInstance
136 forAll(modifiers, modifierI)
138 t[modifierI] = modifiers[modifierI].type();
151 forAll(modifiers, modifierI)
153 t[modifierI] = modifiers[modifierI].name();
165 bool triggerChange =
false;
167 forAll(topoChanges, morphI)
169 if (topoChanges[morphI].active())
171 bool curTriggerChange = topoChanges[morphI].changeTopology();
175 Info<<
"Modifier " << morphI <<
" named "
176 << topoChanges[morphI].name();
178 if (curTriggerChange)
188 triggerChange = triggerChange || curTriggerChange;
194 Info<<
"Modifier " << morphI <<
" named "
195 << topoChanges[morphI].name() <<
" inactive" <<
endl;
201 return triggerChange;
214 forAll(topoChanges, morphI)
216 if (topoChanges[morphI].active())
218 topoChanges[morphI].setRefinement(ref);
230 forAll(topoChanges, morphI)
232 if (topoChanges[morphI].active())
234 topoChanges[morphI].modifyMotionPoints(
p);
245 forAll(topoChanges, morphI)
247 topoChanges[morphI].updateMesh(m);
254 instance() = mesh_.time().timeName();
261 const bool syncParallel,
262 const bool orderCells,
263 const bool orderPoints
266 if (changeTopology())
279 update(topoChangeMap());
280 mesh_.updateMesh(topoChangeMap());
281 return topoChangeMap;
300 if (tm[tmI]->topoChanger() != *
this)
303 <<
"Mesh modifier created with different mesh reference."
320 forAll(topoChanges, morphI)
322 if (topoChanges[morphI].
name() == modName)
332 <<
"List of available modifier names: " << names() <<
endl;
369 mme[mmeI].writeDict(os);
points setSize(newPointi)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
polyTopoChanger(const polyTopoChanger &)
Disallow default bitwise copy construct.
#define forAll(list, i)
Loop across all elements in list.
label findModifierID(const word &modName) const
Find modifier given a name.
List of mesh modifiers defining the mesh dynamics.
Direct mesh changes based on v1.3 polyTopoChange syntax.
bool changeTopology() const
Is topology change required.
autoPtr< polyTopoChange > topoChangeRequest() const
Return topology change request.
void update(const mapPolyMesh &m)
Force recalculation of locally stored data on topological change.
wordList names() const
Return a list of patch names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void addTopologyModifiers(const List< polyMeshModifier * > &tm)
Add given set of topology modifiers to the topoChanger.
const dimensionedScalar me
Electron mass.
Mesh consisting of general polyhedral cells.
void modifyMotionPoints(pointField &) const
Modify point motion.
wordList types() const
Return a list of patch types.
bool headerOk()
Read and check header info.
bool operator!=(const polyTopoChanger &) const
bool set(const label) const
Is element set.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
readOption readOpt() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool writeData(Ostream &) const
writeData member function required by regIOobject
autoPtr< mapPolyMesh > changeMesh(const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
Ostream & operator<<(Ostream &, const edgeMesh &)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
errorManip< error > abort(error &err)
static autoPtr< polyMeshModifier > New(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
Select constructed from dictionary.
Virtual base class for mesh modifiers.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool operator==(const polyTopoChanger &) const
Istream & readStream()
Return Istream.
void close()
Close Istream.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const
Return the number of elements in the PtrList.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool good() const
Return true if next operation might succeed.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.