Sundance::HNMesher2D Class Reference

Inheritance diagram for Sundance::HNMesher2D:

Sundance::MeshSourceBase Playa::Handleable< MeshSourceBase > Playa::Printable Sundance::Noncopyable Playa::ObjectWithVerbosity

List of all members.

Public Member Functions

 HNMesher2D (double position_x, double position_y, double offset_x, double offset_y, int resolution_x, int resolution_y, const MeshType &meshType, const MPIComm &comm=MPIComm::world())
 HNMesher2D (double position_x, double position_y, double offset_x, double offset_y, int resolution_x, int resolution_y, const MeshType &meshType, const RefinementClass &refineClass, const MPIComm &comm=MPIComm::world())
 HNMesher2D (double position_x, double position_y, double offset_x, double offset_y, int resolution_x, int resolution_y, const MeshType &meshType, const MeshDomainDef &meshDomain, const MPIComm &comm=MPIComm::world())
 HNMesher2D (double position_x, double position_y, double offset_x, double offset_y, int resolution_x, int resolution_y, const MeshType &meshType, const RefinementClass &refineClass, const MeshDomainDef &meshDomain, const MPIComm &comm=MPIComm::world())
 HNMesher2D (const ParameterList &params)
virtual ~HNMesher2D ()
virtual std::string description () const
virtual RCP< MeshSourceBasegetRcp ()

Protected Member Functions

virtual Mesh fillMesh () const

Private Attributes

double _position_x
double _position_y
double _offset_x
double _offset_y
int _resolution_x
int _resolution_y
const RefinementClass refineClass_
const MeshDomainDef meshDomain_

Static Private Attributes

static const RefinementClass dummyRefineClass_ = (new DummyNoRefineClass())
static const MeshDomainDef dummyMeshDomain_ = (new DummyAllMeshDomain())


Detailed Description

Definition at line 47 of file SundanceHNMesher2D.hpp.


Constructor & Destructor Documentation

Sundance::HNMesher2D::HNMesher2D ( double  position_x,
double  position_y,
double  offset_x,
double  offset_y,
int  resolution_x,
int  resolution_y,
const MeshType meshType,
const MPIComm comm = MPIComm::world() 
) [inline]

Definition at line 51 of file SundanceHNMesher2D.hpp.

Sundance::HNMesher2D::HNMesher2D ( double  position_x,
double  position_y,
double  offset_x,
double  offset_y,
int  resolution_x,
int  resolution_y,
const MeshType meshType,
const RefinementClass &  refineClass,
const MPIComm comm = MPIComm::world() 
) [inline]

Definition at line 66 of file SundanceHNMesher2D.hpp.

Sundance::HNMesher2D::HNMesher2D ( double  position_x,
double  position_y,
double  offset_x,
double  offset_y,
int  resolution_x,
int  resolution_y,
const MeshType meshType,
const MeshDomainDef meshDomain,
const MPIComm comm = MPIComm::world() 
) [inline]

Definition at line 82 of file SundanceHNMesher2D.hpp.

Sundance::HNMesher2D::HNMesher2D ( double  position_x,
double  position_y,
double  offset_x,
double  offset_y,
int  resolution_x,
int  resolution_y,
const MeshType meshType,
const RefinementClass &  refineClass,
const MeshDomainDef meshDomain,
const MPIComm comm = MPIComm::world() 
) [inline]

Definition at line 98 of file SundanceHNMesher2D.hpp.

HNMesher2D::HNMesher2D ( const ParameterList &  params  ) 

Create a rectangle mesher from a ParameterList

Definition at line 44 of file SundanceHNMesher2D.cpp.

virtual Sundance::HNMesher2D::~HNMesher2D (  )  [inline, virtual]

Definition at line 118 of file SundanceHNMesher2D.hpp.


Member Function Documentation

virtual std::string Sundance::HNMesher2D::description (  )  const [inline, virtual]

Print a short descriptive std::string

Reimplemented from Sundance::MeshSourceBase.

Definition at line 121 of file SundanceHNMesher2D.hpp.

References _offset_x, _offset_y, _position_x, _position_y, _resolution_x, _resolution_y, and Sundance::toString().

Mesh HNMesher2D::fillMesh (  )  const [protected, virtual]

virtual RCP<MeshSourceBase> Sundance::HNMesher2D::getRcp (  )  [inline, virtual]

Return a ref count pointer to self

Implements Playa::Handleable< MeshSourceBase >.

Definition at line 131 of file SundanceHNMesher2D.hpp.


Member Data Documentation

offset (length) of the grid in the X direction

Definition at line 146 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

offset (length) of the grid in the Y direction

Definition at line 148 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

X coordinate of the origin point (lower left)

Definition at line 142 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

Y coordinate of the origin point (lower left)

Definition at line 144 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

On the coarse level the resolution on the X axis

Definition at line 150 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

On the coarse level the resolution on the Y axis

Definition at line 152 of file SundanceHNMesher2D.hpp.

Referenced by description(), and fillMesh().

const MeshDomainDef HNMesher2D::dummyMeshDomain_ = (new DummyAllMeshDomain()) [static, private]

static domain class if the user does not provide one

Definition at line 165 of file SundanceHNMesher2D.hpp.

const RefinementClass HNMesher2D::dummyRefineClass_ = (new DummyNoRefineClass()) [static, private]

static dummy class if the user does not provide refinement class

Definition at line 162 of file SundanceHNMesher2D.hpp.

mesh domain (which must not coincide with the whole mesh)

Definition at line 158 of file SundanceHNMesher2D.hpp.

Referenced by fillMesh().

const RefinementClass Sundance::HNMesher2D::refineClass_ [private]

refinement class

Definition at line 155 of file SundanceHNMesher2D.hpp.

Referenced by fillMesh().

Site Contact