libsurf
Programmer's Documentation

Public Member Functions | Private Types | Private Attributes | List of all members
DnRefineRegion Class Reference

Detailed Description

Mesh refinement region.

Instances of this class are used to specify parametric mesh regions to be refined. Currently, rectangular regions with a constant refinement ratio and elliptical regions with a linear radial refinement are supported.

For compatibility reasons, the refinement factor specified in the constructor or XML representation is smaller than 1.0 for refinement and larger for coarsening. The function factor() returns the inverse of this value, which is used by DnRegionCriterion and children.

See Also
DnMesh

#include <dnrfregion.h>

Public Member Functions

 DnRefineRegion (const Vct2 &plo, const Vct2 &phi, Real rf)
 initialize rectangular region
 
 DnRefineRegion (const Vct2 &ctr, Real ru, Real rv, Real rf)
 initialize circular region
 
 DnRefineRegion (const XmlElement &xe)
 initialize from XML representation
 
Real factor (const Vct2 &p) const
 compute refinement factor
 
XmlElement toXml () const
 generate an xml representation
 
void fromXml (const XmlElement &xe)
 recover from xml representation
 

Private Types

enum  { DnRadialRegion, DnRectRegion }
 type switch
 

Private Attributes

Real rfd [5]
 region boundaries and refinement factors
 
enum DnRefineRegion:: { ... }  rtype
 type switch
 

The documentation for this class was generated from the following files:
Generated on Wed Jan 19 2022 03:03:16 for libsurf by   doxygen 1.8.5