concepts::UniformlyRefinedMesh2 Class Reference
Wrapper class refining an existing 2d mesh uniformly. More...
#include <uniformlyRefinedMesh2.hh>
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 Scan2 * | scan () |
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.
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
-
coarseMesh Mesh to be refined level Desired level of refinement
◆ ~UniformlyRefinedMesh2()
|
inlinevirtual |
Destructor.
Definition at line 30 of file uniformlyRefinedMesh2.hh.
Member Function Documentation
◆ addCell()
|
private |
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in Cube3, Cube2, Cube, Cube3, Cube2, Cube, concepts::Square2, concepts::Square, concepts::MutableMesh2, concepts::MutableMesh1, concepts::Import3DMeshGmsh, concepts::Import3dMesh, concepts::Import2DMeshGmsh, concepts::Import2dMeshGeneral, concepts::Import2dMeshEz4u, concepts::Import2dMesh, concepts::Import2dMeshBase, concepts::Line, concepts::ConvertMeshQuads, concepts::Import3DTetMesh, concepts::SquareOneInfiniteRect, concepts::SquareTwoInfiniteRects, concepts::StraightPeriodicBoundary, concepts::CircleBoundary, concepts::EdgeMesh, concepts::Cuboid, Cube3, Cube2, Cube, concepts::Circle, Cube3, Cube2, Cube, and estimator::LocalMesh2.
- Examples
- meshes.cc.
◆ ncell()
|
inlinevirtual |
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 32 of file uniformlyRefinedMesh2.hh.
◆ 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_
|
private |
Definition at line 50 of file uniformlyRefinedMesh2.hh.
The documentation for this class was generated from the following file:
- geometry/uniformlyRefinedMesh2.hh