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 122 of file SundanceProblemTesting.hpp.


Constructor & Destructor Documentation

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

Contruct the unit square

Definition at line 153 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 161 of file SundanceProblemTesting.cpp.

References init().


Member Function Documentation

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

Definition at line 156 of file SundanceProblemTesting.hpp.

References ax_.

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

Definition at line 165 of file SundanceProblemTesting.hpp.

References ay_.

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

Definition at line 159 of file SundanceProblemTesting.hpp.

References bx_.

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

Definition at line 168 of file SundanceProblemTesting.hpp.

References by_.

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

Definition at line 144 of file SundanceProblemTesting.hpp.

References east_.

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

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

Definition at line 150 of file SundanceProblemTesting.hpp.

References interior_.

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

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

Definition at line 153 of file SundanceProblemTesting.hpp.

References mesh_.

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

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

Definition at line 138 of file SundanceProblemTesting.hpp.

References north_.

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

Definition at line 135 of file SundanceProblemTesting.hpp.

References mesh_.

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

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

Definition at line 162 of file SundanceProblemTesting.hpp.

References nx_.

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

Definition at line 171 of file SundanceProblemTesting.hpp.

References ny_.

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

Definition at line 141 of file SundanceProblemTesting.hpp.

References south_.

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

Definition at line 147 of file SundanceProblemTesting.hpp.

References west_.


Member Data Documentation

Definition at line 176 of file SundanceProblemTesting.hpp.

Referenced by ax(), and init().

Definition at line 179 of file SundanceProblemTesting.hpp.

Referenced by ay(), and init().

Definition at line 177 of file SundanceProblemTesting.hpp.

Referenced by bx(), and init().

Definition at line 180 of file SundanceProblemTesting.hpp.

Referenced by by(), and init().

Definition at line 185 of file SundanceProblemTesting.hpp.

Referenced by east(), and init().

Definition at line 182 of file SundanceProblemTesting.hpp.

Referenced by interior().

Definition at line 187 of file SundanceProblemTesting.hpp.

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

Definition at line 183 of file SundanceProblemTesting.hpp.

Referenced by init(), and north().

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

Definition at line 178 of file SundanceProblemTesting.hpp.

Referenced by init(), and nx().

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

Definition at line 181 of file SundanceProblemTesting.hpp.

Referenced by init(), and ny().

Definition at line 184 of file SundanceProblemTesting.hpp.

Referenced by init(), and south().

Definition at line 186 of file SundanceProblemTesting.hpp.

Referenced by init(), and west().

Site Contact