linDG1D::Linear1d Class Referenceabstract
Space for linear DG FEM in 1D. More...
#include <space.hh>
Classes | |
struct | TwoElements |
Data structure used for temporary data to generate DGElementPair . More... | |
Public Types | |
typedef concepts::Scan< linearFEM::Line > | Scan |
typedef Scan< Element< Real > > | Scanner |
typedef void(* | SMap) (const concepts::TColumn< Real > &, concepts::TColumn< Real > &) |
typedef Element< Real > | type |
Public Member Functions | |
virtual uint | dim () const |
virtual uint | dim () const=0 |
Returns the dimension of the space. More... | |
const concepts::ElementPairList< Real > & | elmPairs () const |
virtual uint | getOutputDimension () const |
Returns the default output dimension, when we consider plotting a real-valued operator on this space. More... | |
Linear1d (concepts::Mesh1 &msh, uint level) | |
Constructor. More... | |
virtual uint | nelm () const |
virtual uint | nelm () const=0 |
Returns the number of elements in the space. More... | |
virtual Scan * | scan () const |
virtual Scanner * | scan () const=0 |
Returns a scanner to iterate over the elements of the space. More... | |
virtual | ~Linear1d () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Private Member Functions | |
void | constructor_ (concepts::Cell1 &cell, uint level) |
Assigns the degrees of freedom and creates elements. More... | |
Private Attributes | |
uint | dim_ |
Number of degrees of freedom. More... | |
concepts::Joiner< linearFEM::Line *, 1 > * | elm_ |
List of elements. More... | |
concepts::ElementPairList< Real > | elmPair_ |
List of element pairs. More... | |
concepts::Mesh1 & | msh_ |
Mesh which this space is based on. More... | |
uint | nelm_ |
Number of elements. More... | |
Detailed Description
Member Typedef Documentation
◆ Scan
◆ Scanner
|
inherited |
◆ SMap
typedef void(* linDG1D::Linear1d::SMap) (const concepts::TColumn< Real > &, concepts::TColumn< Real > &) |
◆ type
|
inherited |
Constructor & Destructor Documentation
◆ Linear1d()
linDG1D::Linear1d::Linear1d | ( | concepts::Mesh1 & | msh, |
uint | level | ||
) |
Constructor.
Recursively calls constructor_
and generates the list of element pairs elmPair_
.
- Parameters
-
msh Mesh level Number levels for initial refinement
◆ ~Linear1d()
|
virtual |
Member Function Documentation
◆ constructor_()
|
private |
Assigns the degrees of freedom and creates elements.
The numbers of the degrees of freedom is stored in dofMap
.
constructor_
is called recursively until level
is 0. On this level, the degrees of freedom are assigned and the elements are created and stored in elm_
.
- Parameters
-
cell Current cell level Number of levels left to desired level
◆ dim() [1/2]
◆ dim() [2/2]
|
pure virtualinherited |
Returns the dimension of the space.
Implemented in concepts::SpaceOnCells< Real >, concepts::DummySpace< Real >, hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
◆ elmPairs()
|
inline |
◆ getOutputDimension()
|
inlinevirtualinherited |
◆ info()
|
protectedvirtual |
Reimplemented from concepts::Space< Real >.
◆ nelm() [1/2]
|
inlinevirtual |
◆ nelm() [2/2]
|
pure virtualinherited |
Returns the number of elements in the space.
Implemented in concepts::SpaceOnCells< Real >, concepts::DummySpace< Real >, hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
◆ scan() [1/2]
|
inlinevirtual |
◆ scan() [2/2]
|
pure virtualinherited |
Returns a scanner to iterate over the elements of the space.
Implemented in concepts::SpaceOnCells< Real >, concepts::DummySpace< Real >, hp2D::hpAdaptiveSpace< Real >, hp3D::Space, hp2Dedge::Space, hp2D::Space, hp2D::hpAdaptiveSpace< Real >, and hp1D::Space.
Member Data Documentation
◆ dim_
|
private |
◆ elm_
|
private |
◆ elmPair_
|
private |
List of element pairs.
This list contains
-
pairs of neighbouring elements (with a common vertex whose index is stored in
DGElementPair
) and -
pairs of identical elements (with the minimal sizes of the neighbouring elements over every vertex stored in
DGElementPair
).
◆ msh_
|
private |
◆ nelm_
The documentation for this class was generated from the following file:
- linDG1D/space.hh