Class documentation of Concepts

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

#include <square.hh>

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

Public Member Functions

 Square2 (Array< uint > attrib, Array< uint > *elmAttrib=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 two quadrilaterals. All boundaries have attribute 0.

One quad is $[0,1]\times[0,0.5]$ and the other one is $[0,1]\times[0.5,1]$.

Numbering of      Numbering of      Numbering of
the vertices.     the edges.        the cells

  5 --- 4          -- 6 --           -------
  |     |          |     |           |     |
  |     |          5     3           |  1  |
  |     |          |     |           |     |
  3 --- 2          -- 2 --           -------
  |     |          |     |           |     |
  |     |          3     1           |  0  |
  |     |          |     |           |     |
  0 --- 1          -- 0 --           -------
Author
Philipp Frauenfelder, 2001

Definition at line 110 of file square.hh.

Constructor & Destructor Documentation

◆ Square2()

concepts::Square2::Square2 ( Array< uint attrib,
Array< uint > *  elmAttrib = 0 
)

Constructor with attributes of the (seven) edges added by Robert :

Parameters
elmAttrib(of size two) with attributes of both cells

Member Function Documentation

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

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

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 121 of file square.hh.

◆ scan()

Scan2 * concepts::Square2::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 122 of file square.hh.


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