Mesh for the interval of the real axis. More...

#include <meshes1D.hh>

Inheritance diagram for concepts::Line:
concepts::Mesh1 concepts::Mesh concepts::OutputOperator

Public Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
 Line (const uint n=1)
 Default constructor for interval (0,1). More...
 
 Line (Real left, Real mid, Real right)
 Constructor for three vertices. More...
 
 Line (Real left, Real right)
 Constructor for two vertices. More...
 
 Line (Real v0, Real v1, Real v2, Real v3)
 Constructor for four vertices. More...
 
unsigned int ncell () const
 Returns the number of cells in the mesh. More...
 
Scan1scan ()
 Returns a scanner over the cells of the mesh. More...
 
virtual ~Line ()
 

Private Member Functions

void construct_ (const Array< Real > coord)
 

Private Attributes

Sequence< Cell1 * > cell_
 
Sequence< Edge * > edg_
 
const uint n_
 
Sequence< Vertex * > vtx_
 

Detailed Description

Mesh for the interval of the real axis.

The two boundary vertices have attribute 1 and 2.

Author
Kersten Schmidt, 2009

Definition at line 23 of file meshes1D.hh.

Constructor & Destructor Documentation

◆ Line() [1/4]

concepts::Line::Line ( const uint  n = 1)

Default constructor for interval (0,1).

The coordinates are uniformly distributed.

Parameters
nnumber of cells

◆ Line() [2/4]

concepts::Line::Line ( Real  left,
Real  right 
)

Constructor for two vertices.

◆ Line() [3/4]

concepts::Line::Line ( Real  left,
Real  mid,
Real  right 
)

Constructor for three vertices.

◆ Line() [4/4]

concepts::Line::Line ( Real  v0,
Real  v1,
Real  v2,
Real  v3 
)

Constructor for four vertices.

◆ ~Line()

virtual concepts::Line::~Line ( )
virtual

Member Function Documentation

◆ construct_()

void concepts::Line::construct_ ( const Array< Real coord)
private

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Mesh.

◆ ncell()

unsigned int concepts::Line::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 42 of file meshes1D.hh.

◆ scan()

Scan1* concepts::Line::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::Mesh1.

Definition at line 43 of file meshes1D.hh.

Member Data Documentation

◆ cell_

Sequence<Cell1* > concepts::Line::cell_
private

Definition at line 51 of file meshes1D.hh.

◆ edg_

Sequence<Edge* > concepts::Line::edg_
private

Definition at line 50 of file meshes1D.hh.

◆ n_

const uint concepts::Line::n_
private

Definition at line 47 of file meshes1D.hh.

◆ vtx_

Sequence<Vertex*> concepts::Line::vtx_
private

Definition at line 49 of file meshes1D.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