Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::Square Class Reference

#include <square.hh>

Inheritance diagram for concepts::Square:
concepts::Mesh2 concepts::Mesh concepts::OutputOperator

Public Member Functions

 Square (const Real sizex=1.0, const Real sizey=1.0, const uint attrib=0)
 
 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)
 
 Square (const Real sizex, const Real sizey, const Array< uint > &attrib, const Array< uint > *vattrib=0)
 
 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)
 
uint ncell () const
 Returns the number of cells in the mesh.
 
Scan2scan ()
 
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

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

Author
Philipp Frauenfelder, 2001
Examples
howToGetStarted.cc.

Definition at line 22 of file square.hh.

Constructor & Destructor Documentation

◆ Square() [1/4]

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.

◆ Square() [2/4]

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.

◆ Square() [3/4]

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.

◆ Square() [4/4]

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

Member Function Documentation

◆ info()

virtual std::ostream & concepts::Square::info ( std::ostream &  os) const
virtual

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

uint concepts::Square::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 56 of file square.hh.

◆ scan()

Scan2 * concepts::Square::scan ( )
inlinevirtual

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 57 of file square.hh.


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