Skip to content
Snippets Groups Projects
Commit ad2baed5 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH update use of bitSet in dynamicRefineFvMesh #1075

parent b4e26828
Branches
Tags
No related merge requests found
This diff is collapsed.
...@@ -29,7 +29,8 @@ Description ...@@ -29,7 +29,8 @@ Description
Determines which cells to refine/unrefine and does all in update(). Determines which cells to refine/unrefine and does all in update().
\verbatim
{
// How often to refine // How often to refine
refineInterval 1; refineInterval 1;
// Field to be refinement on // Field to be refinement on
...@@ -59,6 +60,8 @@ Description ...@@ -59,6 +60,8 @@ Description
// Write the refinement level as a volScalarField // Write the refinement level as a volScalarField
dumpLevel true; dumpLevel true;
}
\endverbatim
SourceFiles SourceFiles
...@@ -91,24 +94,21 @@ protected: ...@@ -91,24 +94,21 @@ protected:
//- Mesh cutting engine //- Mesh cutting engine
hexRef8 meshCutter_; hexRef8 meshCutter_;
//- Dump cellLevel for post-processing
bool dumpLevel_;
//- Fluxes to map //- Fluxes to map
HashTable<word> correctFluxes_; HashTable<word> correctFluxes_;
//- Protected cells (usually since not hexes)
bitSet protectedCell_;
//- Number of refinement/unrefinement steps done so far. //- Number of refinement/unrefinement steps done so far.
label nRefinementIterations_; label nRefinementIterations_;
//- Protected cells (usually since not hexes) //- Dump cellLevel for post-processing
bitSet protectedCell_; bool dumpLevel_;
// Protected Member Functions // Protected Member Functions
//- Count set/unset elements in packedlist.
static label count(const bitSet&, const unsigned int);
//- Calculate cells that cannot be refined since would trigger //- Calculate cells that cannot be refined since would trigger
// refinement of protectedCell_ (since 2:1 refinement cascade) // refinement of protectedCell_ (since 2:1 refinement cascade)
void calculateProtectedCells(bitSet& unrefineableCell) const; void calculateProtectedCells(bitSet& unrefineableCell) const;
...@@ -180,11 +180,7 @@ protected: ...@@ -180,11 +180,7 @@ protected:
void extendMarkedCells(bitSet& markedCell) const; void extendMarkedCells(bitSet& markedCell) const;
//- Check all cells have 8 anchor points //- Check all cells have 8 anchor points
void checkEightAnchorPoints void checkEightAnchorPoints(bitSet& protectedCell) const;
(
bitSet& protectedCell,
label& nProtected
) const;
//- Map single non-flux surface<Type>Field //- Map single non-flux surface<Type>Field
// for new internal faces (e.g. AMR refine). This currently // for new internal faces (e.g. AMR refine). This currently
...@@ -233,7 +229,7 @@ public: ...@@ -233,7 +229,7 @@ public:
//- Destructor //- Destructor
virtual ~dynamicRefineFvMesh(); virtual ~dynamicRefineFvMesh() = default;
// Member Functions // Member Functions
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment