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;
Generic GeometricField class.
An STL-conforming hash table.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A topoSetSource to select points based on usage in cells.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Class to handle errors and exceptions in a simple, consistent stream-based manner.
Abstract base class for fvMesh topology changers.
fvMesh & mesh()
Return the fvMesh.
Dynamic mesh refinement/unrefinement based on volScalarField values.
void operator=(const refiner &)=delete
Disallow default bitwise assignment.
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
TypeName("refiner")
Runtime type information.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
const PackedBoolList & protectedCell() const
Cells which should not be refined/unrefined.
virtual ~refiner()
Destructor.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual bool write(const bool write=true) const
Write using given format, version and compression.
virtual bool update()
Update the mesh for both mesh motion and topology change.
const hexRef8 & meshCutter() const
Direct access to the refinement engine.
refiner(fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
Mesh data needed to do the Finite Volume discretisation.
Refinement of (split) hexes using polyTopoChange.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.