Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
concepts::Square Class Reference

Mesh for $[0,1]^2$ with one quadrilateral. More...

#include <square.hh>

Inheritance diagram for concepts::Square:
Inheritance graph
[legend]
Collaboration diagram for concepts::Square:
Collaboration graph
[legend]

List of all members.

Classes

class  S

Public Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
uint ncell () const
 Returns the number of cells in the mesh.
Scan2scan ()
 Returns a scanner over the cells of the mesh.
 Square (const Real sizex, const Real sizey, const Array< uint > &attrib, const Array< uint > *vattrib=0)
 Constructor for rectangular cell.
 Square (const Real x0, const Real y0, const Real x1, const Real y1, const Real x2, const Real y2, const Real x3, const Real y3, const Array< uint > &attrib, const Array< uint > *vattrib=0)
 Constructor for arbitrary quadrilateral.
 Square (const Real x0, const Real y0, const Real x1, const Real y1, const Real x2, const Real y2, const Real x3, const Real y3, const uint attrib=0)
 Constructor for arbitrary quadrilateral.
 Square (const Real sizex=1.0, const Real sizey=1.0, const uint attrib=0)
 Constructor for rectangular cell.
virtual ~Square ()

Private Member Functions

void construct_ (const Array< Real2d > &coord, const Array< uint > &attrib, const Array< uint > *vattrib=0)

Private Attributes

Quad2dcell_ [ncell_]
Edgeedg_ [4]
Quadquad_ [ncell_]
Vertexvtx_ [4]

Static Private Attributes

static const uint ncell_ = 1

Detailed Description

Mesh for $[0,1]^2$ with one quadrilateral.

Author:
Philipp Frauenfelder, 2001

Definition at line 20 of file square.hh.


Constructor & Destructor Documentation

concepts::Square::Square ( const Real  sizex = 1.0,
const Real  sizey = 1.0,
const uint  attrib = 0 
)

Constructor for rectangular cell.

All boundaries are same attribute.

concepts::Square::Square ( const Real  x0,
const Real  y0,
const Real  x1,
const Real  y1,
const Real  x2,
const Real  y2,
const Real  x3,
const Real  y3,
const uint  attrib = 0 
)

Constructor for arbitrary quadrilateral.

All boundaries are same attribute.

concepts::Square::Square ( const Real  sizex,
const Real  sizey,
const Array< uint > &  attrib,
const Array< uint > *  vattrib = 0 
)

Constructor for rectangular cell.

Attributes of boundary edges are given in attrib and of the boundary vertices in vattrib.

concepts::Square::Square ( const Real  x0,
const Real  y0,
const Real  x1,
const Real  y1,
const Real  x2,
const Real  y2,
const Real  x3,
const Real  y3,
const Array< uint > &  attrib,
const Array< uint > *  vattrib = 0 
)

Constructor for arbitrary quadrilateral.

Attributes of boundaries are given in attrib

virtual concepts::Square::~Square ( ) [virtual]

Member Function Documentation

void concepts::Square::construct_ ( const Array< Real2d > &  coord,
const Array< uint > &  attrib,
const Array< uint > *  vattrib = 0 
) [private]
virtual std::ostream& concepts::Square::info ( std::ostream &  os) const [virtual]

Returns information in an output stream.

Reimplemented from concepts::Mesh.

uint concepts::Square::ncell ( ) const [inline, virtual]

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 54 of file square.hh.

Scan2* concepts::Square::scan ( ) [inline, virtual]

Returns a scanner over the cells of the mesh.

Postcondition:
The scanner must be deleted after usage. This has to be done by the user.

Implements concepts::Mesh2.

Definition at line 55 of file square.hh.


Member Data Documentation

Definition at line 79 of file square.hh.

Definition at line 76 of file square.hh.

const uint concepts::Square::ncell_ = 1 [static, private]

Definition at line 21 of file square.hh.

Definition at line 77 of file square.hh.

Definition at line 75 of file square.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)