157 #ifndef fvMeshTopoChangersRefiner_H 158 #define fvMeshTopoChangersRefiner_H 169 namespace fvMeshTopoChangers
185 label refineInterval_;
189 label nBufferLayers_;
201 label nRefinementIterations_;
208 mutable bool changedSinceWrite_;
221 void calculateProtectedCells(
PackedBoolList& unrefineableCells)
const;
264 const word& cellZoneName
272 const scalar minLevel,
273 const scalar maxLevel
280 const scalar minLevel,
281 const scalar maxLevel
285 virtual void selectRefineCandidates
288 const scalar lowerRefineLevel,
289 const scalar upperRefineLevel,
290 const scalar maxRefinement,
295 virtual void selectRefineCandidates
298 const scalar lowerRefineLevel,
299 const scalar upperRefineLevel,
300 const scalar maxRefinement,
306 virtual scalar selectRefineCandidates
315 const label maxCells,
316 const label maxRefinement,
330 void checkEightAnchorPoints
367 return protectedCells_;
373 return protectedCells_;
392 virtual bool write(
const bool write =
true)
const;
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
const PackedBoolList & protectedCell() const
Cells which should not be refined/unrefined.
fvMesh & mesh()
Return the fvMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e...
refiner(fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
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 write(const bool write=true) const
Write using given format, version and compression.
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.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
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))
Refinement of (split) hexes using polyTopoChange.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
autoPtr< surfaceVectorField > Uf
An STL-conforming hash table.
void operator=(const refiner &)=delete
Disallow default bitwise assignment.
A topoSetSource to select points based on usage in cells.
Dynamic mesh refinement/unrefinement based on volScalarField values.
Mesh data needed to do the Finite Volume discretisation.
const hexRef8 & meshCutter() const
Direct access to the refinement engine.
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
TypeName("refiner")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Class containing mesh-to-mesh mapping information.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual ~refiner()
Destructor.
Abstract base class for fvMesh movers.