Public Member Functions | Private Member Functions | Private Attributes
Sundance::RectangleDomain Class Reference

List of all members.

Public Member Functions

 RectangleDomain (const Array< int > &n)
 RectangleDomain (double ax, double bx, const Array< int > &nx, double ay, double by, const Array< int > &ny)
int numMeshes () const
const CellFilternorth () const
const CellFiltersouth () const
const CellFiltereast () const
const CellFilterwest () const
const CellFilterinterior () const
const Meshmesh (int i) const
double ax () const
double bx () const
int nx (int i) const
double ay () const
double by () const
int ny (int i) const

Private Member Functions

void init ()

Private Attributes

double ax_
double bx_
Array< int > nx_
double ay_
double by_
Array< int > ny_
CellFilter interior_
CellFilter north_
CellFilter south_
CellFilter east_
CellFilter west_
Array< Meshmesh_

Detailed Description

This class bundles together a sequence of uniform meshes of the 2D rectangle [ax,bx] times [ay,by] with cell filters defining the interior and boundaries. It is intended for quick and reliable setup of 2D test problems.

Definition at line 133 of file SundanceProblemTesting.hpp.


Constructor & Destructor Documentation

Sundance::RectangleDomain::RectangleDomain ( const Array< int > &  n)

Contruct the unit square

Definition at line 167 of file SundanceProblemTesting.cpp.

References init().

Sundance::RectangleDomain::RectangleDomain ( double  ax,
double  bx,
const Array< int > &  nx,
double  ay,
double  by,
const Array< int > &  ny 
)

Construct

Definition at line 175 of file SundanceProblemTesting.cpp.

References init().


Member Function Documentation

double Sundance::RectangleDomain::ax ( ) const [inline]

Definition at line 167 of file SundanceProblemTesting.hpp.

References ax_.

double Sundance::RectangleDomain::ay ( ) const [inline]

Definition at line 176 of file SundanceProblemTesting.hpp.

References ay_.

double Sundance::RectangleDomain::bx ( ) const [inline]

Definition at line 170 of file SundanceProblemTesting.hpp.

References bx_.

double Sundance::RectangleDomain::by ( ) const [inline]

Definition at line 179 of file SundanceProblemTesting.hpp.

References by_.

const CellFilter& Sundance::RectangleDomain::east ( ) const [inline]

Definition at line 155 of file SundanceProblemTesting.hpp.

References east_.

void Sundance::RectangleDomain::init ( ) [private]

Definition at line 161 of file SundanceProblemTesting.hpp.

References interior_.

Referenced by Sundance::LPRectTestBase::interior().

const Mesh& Sundance::RectangleDomain::mesh ( int  i) const [inline]

Definition at line 164 of file SundanceProblemTesting.hpp.

References mesh_.

Referenced by Sundance::LPRectTestBase::getMesh().

const CellFilter& Sundance::RectangleDomain::north ( ) const [inline]

Definition at line 149 of file SundanceProblemTesting.hpp.

References north_.

int Sundance::RectangleDomain::numMeshes ( ) const [inline]

Definition at line 146 of file SundanceProblemTesting.hpp.

References mesh_.

Referenced by Sundance::LPRectTestBase::numMeshes().

int Sundance::RectangleDomain::nx ( int  i) const [inline]

Definition at line 173 of file SundanceProblemTesting.hpp.

References nx_.

int Sundance::RectangleDomain::ny ( int  i) const [inline]

Definition at line 182 of file SundanceProblemTesting.hpp.

References ny_.

const CellFilter& Sundance::RectangleDomain::south ( ) const [inline]

Definition at line 152 of file SundanceProblemTesting.hpp.

References south_.

const CellFilter& Sundance::RectangleDomain::west ( ) const [inline]

Definition at line 158 of file SundanceProblemTesting.hpp.

References west_.


Member Data Documentation

Definition at line 187 of file SundanceProblemTesting.hpp.

Referenced by ax(), and init().

Definition at line 190 of file SundanceProblemTesting.hpp.

Referenced by ay(), and init().

Definition at line 188 of file SundanceProblemTesting.hpp.

Referenced by bx(), and init().

Definition at line 191 of file SundanceProblemTesting.hpp.

Referenced by by(), and init().

Definition at line 196 of file SundanceProblemTesting.hpp.

Referenced by east(), and init().

Definition at line 193 of file SundanceProblemTesting.hpp.

Referenced by interior().

Definition at line 198 of file SundanceProblemTesting.hpp.

Referenced by init(), mesh(), and numMeshes().

Definition at line 194 of file SundanceProblemTesting.hpp.

Referenced by init(), and north().

Array<int> Sundance::RectangleDomain::nx_ [private]

Definition at line 189 of file SundanceProblemTesting.hpp.

Referenced by init(), and nx().

Array<int> Sundance::RectangleDomain::ny_ [private]

Definition at line 192 of file SundanceProblemTesting.hpp.

Referenced by init(), and ny().

Definition at line 195 of file SundanceProblemTesting.hpp.

Referenced by init(), and south().

Definition at line 197 of file SundanceProblemTesting.hpp.

Referenced by init(), and west().

Site Contact