11 #ifndef _MESHREFINE_H_ 12 #define _MESHREFINE_H_ 21 #include "NamespaceHeader.H" 92 const Box& a_baseDomain,
96 const Real a_fillRatio,
98 const int a_blockFactor,
100 const int a_bufferSize,
102 const int a_maxSize);
110 const Real a_fillRatio,
112 const int a_blockFactor,
114 const int a_bufferSize,
116 const int a_maxSize);
123 const Box& a_baseDomain,
127 const Real a_fillRatio,
129 const int a_blockFactor,
131 const int a_bufferSize,
133 const int a_maxSize);
141 const Real a_fillRatio,
143 const int a_blockFactor,
145 const int a_bufferSize,
147 const int a_maxSize);
159 const int a_baseLevel,
161 const int a_topLevel,
176 const int a_baseLevel,
178 const int a_topLevel,
212 void maxSize(
const int a_max_size);
239 const int a_totalBufferSize)
const = 0;
256 int a_totalBuffer)
const;
269 const int a_baseLevel,
271 const int a_topLevel,
284 const int a_baseLevel,
286 const int a_topLevel,
324 #include "NamespaceFooter.H" Vector< ProblemDomain > m_vectDomains
Definition: MeshRefine.H:299
Vector< IntVectSet > m_pnds
Definition: MeshRefine.H:301
int bufferSize() const
returns proper nesting buffer size
MeshRefine()
default constructor – leaves object in an unusable state
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:130
int maxSize() const
returns maximum box size in any dimension – 0 means no limit
Real fillRatio() const
returns fillRatio
virtual ~MeshRefine()
destructor
virtual void makeBoxes(Vector< Box > &a_mesh, const IntVectSet &a_tags, const IntVectSet &a_pnd, const ProblemDomain &a_domain, const int a_maxSize, const int a_totalBufferSize) const =0
constructs a set of boxes which covers a set of tagged cells
int m_blockFactor
Definition: MeshRefine.H:310
Real m_fillRatio
Definition: MeshRefine.H:308
int m_lastBase
Definition: MeshRefine.H:302
void granularity(int a_granularity)
sets proper nesting region granularity.
void setPNDMode(int a_mode)
int m_lastBuffer
Definition: MeshRefine.H:304
virtual void makePNDs(Vector< IntVectSet > &a_pnds, Vector< int > &a_totalBufferSize, const int a_baseLevel, const int a_topLevel, const Vector< ProblemDomain > &a_domains, const IntVectSet &a_baseMesh, const Vector< int > &a_bufferSize) const
Computes proper nesting domains.
double Real
Definition: REAL.H:33
void define(const Box &a_baseDomain, const Vector< int > &a_refRatios, const Real a_fillRatio, const int a_blockFactor, const int a_bufferSize, const int a_maxSize)
define function – size of RefRatios will define maximum number of levels
virtual int regrid(Vector< Vector< Box > > &a_newmeshes, const IntVectSet &a_tags, const int a_baseLevel, const int a_topLevel, const Vector< Vector< Box > > &a_oldMeshes)
create hierarchy of grids from a single level of tags
Vector< int > m_nRefVect
Definition: MeshRefine.H:306
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
int m_maxSize
Definition: MeshRefine.H:316
const Vector< int > & refRatios() const
returns vector of refinement ratios
int m_lastTop
Definition: MeshRefine.H:303
bool isDefined() const
has this object been defined properly?
virtual void computeLocalBlockFactors()
computes local blockFactors used internally to enforce the BlockFactor
bool m_isDefined
Definition: MeshRefine.H:297
Class which manages grid generation.
Definition: MeshRefine.H:26
bool properlyNested(const Box &a_box, const ProblemDomain &a_domain, const IntVectSet &a_pnd, int a_totalBuffer) const
int m_PNDMode
Definition: MeshRefine.H:320
int blockFactor() const
returns blocking factor
int m_granularity
Definition: MeshRefine.H:318
Vector< int > m_level_blockfactors
Definition: MeshRefine.H:312
int m_bufferSize
Definition: MeshRefine.H:314