Wrapper class refining an existing 2d mesh uniformly. More...

#include <uniformlyRefinedMesh2.hh>

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

Classes

class  S
 Scanner class for UniformlyRefindeMesh2. More...
 

Public Member Functions

virtual uint ncell () const
 Returns the number of cells in the mesh. More...
 
virtual Scan2scan ()
 Returns a scanner over the cells of the mesh. More...
 
 UniformlyRefinedMesh2 (Mesh2 &coarseMesh, uint level)
 Constructor. More...
 
virtual ~UniformlyRefinedMesh2 ()
 Destructor. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Member Functions

void addCell (Cell2 *cell, uint level)
 

Private Attributes

std::vector< Cell2 * > cell_
 

Detailed Description

Wrapper class refining an existing 2d mesh uniformly.

This class then represents a mesh where each cell of the original mesh is subdivided into 4level cells.

Author
Christoph Winkelmann, 2003

Definition at line 22 of file uniformlyRefinedMesh2.hh.

Constructor & Destructor Documentation

◆ UniformlyRefinedMesh2()

concepts::UniformlyRefinedMesh2::UniformlyRefinedMesh2 ( Mesh2 coarseMesh,
uint  level 
)

Constructor.

Takes an existing mesh to be refined by a given level

Parameters
coarseMeshMesh to be refined
levelDesired level of refinement

◆ ~UniformlyRefinedMesh2()

virtual concepts::UniformlyRefinedMesh2::~UniformlyRefinedMesh2 ( )
inlinevirtual

Destructor.

Definition at line 30 of file uniformlyRefinedMesh2.hh.

Member Function Documentation

◆ addCell()

void concepts::UniformlyRefinedMesh2::addCell ( Cell2 cell,
uint  level 
)
private

◆ info()

◆ ncell()

virtual uint concepts::UniformlyRefinedMesh2::ncell ( ) const
inlinevirtual

Returns the number of cells in the mesh.

Implements concepts::Mesh.

Definition at line 32 of file uniformlyRefinedMesh2.hh.

◆ scan()

virtual Scan2* concepts::UniformlyRefinedMesh2::scan ( )
inlinevirtual

Returns a scanner over the cells of the mesh.

Implements concepts::Mesh2.

Definition at line 34 of file uniformlyRefinedMesh2.hh.

Member Data Documentation

◆ cell_

std::vector<Cell2*> concepts::UniformlyRefinedMesh2::cell_
private

Definition at line 50 of file uniformlyRefinedMesh2.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