Mesh for $[0,1]^2$ with two quadrilaterals. More...

#include <square.hh>

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

Classes

class  S
 

Public Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
uint ncell () const
 Returns the number of cells in the mesh. More...
 
Scan2scan ()
 Returns a scanner over the cells of the mesh. More...
 
 Square2 ()
 
 Square2 (Array< uint > attrib, Array< uint > *elmAttrib=0)
 Constructor with attributes of the (seven) edges added by Robert : More...
 
virtual ~Square2 ()
 

Private Member Functions

void construct_ (const Array< uint > &attrib, const Array< uint > &elmAttrib)
 

Private Attributes

Quad2dcell_ [ncell_]
 
Edgeedg_ [7]
 
Quadquad_ [ncell_]
 
Vertexvtx_ [6]
 

Static Private Attributes

static const uint ncell_ = 2
 

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() [1/2]

concepts::Square2::Square2 ( )

◆ Square2() [2/2]

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

◆ ~Square2()

virtual concepts::Square2::~Square2 ( )
virtual

Member Function Documentation

◆ construct_()

void concepts::Square2::construct_ ( const Array< uint > &  attrib,
const Array< uint > &  elmAttrib 
)
private

◆ 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.

Member Data Documentation

◆ cell_

Quad2d* concepts::Square2::cell_[ncell_]
private

Definition at line 146 of file square.hh.

◆ edg_

Edge* concepts::Square2::edg_[7]
private

Definition at line 143 of file square.hh.

◆ ncell_

const uint concepts::Square2::ncell_ = 2
staticprivate

Definition at line 111 of file square.hh.

◆ quad_

Quad* concepts::Square2::quad_[ncell_]
private

Definition at line 144 of file square.hh.

◆ vtx_

Vertex* concepts::Square2::vtx_[6]
private

Definition at line 142 of file square.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich