concepts::Line Class Reference
Mesh for the interval of the real axis. More...
#include <meshes1D.hh>
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... | |
Scan1 * | scan () |
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.
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
-
n number of cells
◆ Line() [2/4]
◆ Line() [3/4]
◆ Line() [4/4]
◆ ~Line()
|
virtual |
Member Function Documentation
◆ construct_()
◆ info()
|
virtual |
Returns information in an output stream.
Reimplemented from concepts::Mesh.
◆ ncell()
|
inlinevirtual |
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 42 of file meshes1D.hh.
◆ 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_
Definition at line 51 of file meshes1D.hh.
◆ edg_
Definition at line 50 of file meshes1D.hh.
◆ n_
|
private |
Definition at line 47 of file meshes1D.hh.
◆ vtx_
Definition at line 49 of file meshes1D.hh.
The documentation for this class was generated from the following file:
- geometry/meshes1D.hh