154 #ifndef dynamicRefineFvMesh_H 155 #define dynamicRefineFvMesh_H 187 label nRefinementIterations_;
200 void calculateProtectedCells(
PackedBoolList& unrefineableCells)
const;
217 const word& cellZoneName
225 const scalar minLevel,
226 const scalar maxLevel
233 const scalar minLevel,
234 const scalar maxLevel
238 virtual void selectRefineCandidates
241 const scalar lowerRefineLevel,
242 const scalar upperRefineLevel,
243 const scalar maxRefinement,
248 virtual void selectRefineCandidates
251 const scalar lowerRefineLevel,
252 const scalar upperRefineLevel,
253 const scalar maxRefinement,
259 virtual scalar selectRefineCandidates
268 const label maxCells,
269 const label maxRefinement,
274 void selectUnrefineCandidates
278 const scalar unrefineLevel
282 void selectUnrefineCandidates
287 const scalar unrefineLevel
291 void selectUnrefineCandidates
308 void checkEightAnchorPoints
345 return protectedCells_;
351 return protectedCells_;
366 const bool write =
true intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const hexRef8 & meshCutter() const
Direct access to the refinement engine.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write using given format, version and compression.
const cellList & cells() const
TypeName("dynamicRefineFvMesh")
Runtime type information.
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
Dynamic mesh refinement/unrefinement based on volScalarField values.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
virtual bool update()
Update the mesh for both mesh motion and topology change.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void operator=(const dynamicRefineFvMesh &)=delete
Disallow default bitwise assignment.
Refinement of (split) hexes using polyTopoChange.
A class for handling words, derived from string.
const PackedBoolList & protectedCell() const
Cells which should not be refined/unrefined.
streamFormat
Enumeration for the format of data in the stream.
An STL-conforming hash table.
compressionType
Enumeration for the format of data in the stream.
A topoSetSource to select points based on usage in cells.
dynamicRefineFvMesh(const IOobject &io)
Construct from IOobject.
Abstract base class for geometry and/or topology changing fvMesh.
virtual ~dynamicRefineFvMesh()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...