linearFEM::Line Class Referenceabstract
Line element with linear shape function in 1D. More...
#include <element1D.hh>
Public Types | |
typedef Real | type |
Public Member Functions | |
virtual const concepts::Edge1d & | cell () const |
Returns the cell of this element. More... | |
virtual const Cell & | cell () const=0 |
Returns the cell on which the element is built. More... | |
Real3d | elemMap (const Real coord_local) const |
Real3d | elemMap (const Real2d &coord_local) const |
Real3d | elemMap (const Real3d &coord_local) const |
virtual const concepts::ElementGraphics< Real > * | graphics () const |
Line (const concepts::Edge1d &cell, concepts::TColumn< Real > *T0, concepts::TColumn< Real > *T1=0) | |
Constructor. More... | |
Line (const concepts::Edge1d &cell, uint idx[]) | |
Constructor. More... | |
Real | shapefct (const uint i, const Real xi) const |
Computes the value of the ith shape function in the point xi . More... | |
Real | shapefctD (const uint i) const |
Returns the derivative of the ith shape function. More... | |
virtual const concepts::Edge & | support () const |
Returns the support of this element. More... | |
virtual const concepts::TMatrixBase< Real > & | T () const |
Returns the T matrix of this element. More... | |
virtual const TMatrixBase< Real > & | T () const=0 |
Returns the T matrix of the element. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Protected Attributes | |
std::unique_ptr< concepts::TMatrixBase< Real > > | T_ |
T matrix of this element. More... | |
Private Attributes | |
const concepts::Edge1d & | cell_ |
Cell of the element. More... | |
Static Private Attributes | |
static std::unique_ptr< LineGraphics > | graphics_ |
Detailed Description
Line element with linear shape function in 1D.
The cell which is contained in this element is responsible for the topology (connectivity) and the geometry. The shape functions can be evaluated with the shapefct
and shapefctD
members. The information in the T matrix is generated in the space and stored here.
- Examples
- linearFEM1d-simple.cc, and linearFEM1d.cc.
Definition at line 34 of file element1D.hh.
Member Typedef Documentation
◆ type
|
inherited |
Definition at line 81 of file element.hh.
Constructor & Destructor Documentation
◆ Line() [1/2]
|
inline |
Constructor.
Creates a T matrix out of idx
.
- See also
- concepts::TIndex
- Parameters
-
cell Cell of the element idx Describes the map local / global dof
Definition at line 41 of file element1D.hh.
◆ Line() [2/2]
|
inline |
Constructor.
Creates a T matrix out of T0
and T1
- See also
- concepts::TMatrix
- Parameters
-
cell Cell of the element T0 Contains T columns T1 Contains T columns
Definition at line 49 of file element1D.hh.
Member Function Documentation
◆ cell() [1/2]
|
inlinevirtual |
Returns the cell of this element.
Implements linearFEM::Element.
- Examples
- linearFEM1d-simple.cc, and linearFEM1d.cc.
Definition at line 53 of file element1D.hh.
◆ cell() [2/2]
|
pure virtualinherited |
Returns the cell on which the element is built.
Implemented in hp3D::Element< Real >, hp2D::Element< Real >, and hp1D::BaseElement< Real >.
◆ elemMap() [1/3]
|
inlineinherited |
Definition at line 86 of file element.hh.
◆ elemMap() [2/3]
|
inlineinherited |
Definition at line 90 of file element.hh.
◆ elemMap() [3/3]
|
inlineinherited |
Definition at line 94 of file element.hh.
◆ graphics()
|
virtual |
◆ info()
|
protectedvirtual |
◆ shapefct()
Real linearFEM::Line::shapefct | ( | const uint | i, |
const Real | xi | ||
) | const |
Computes the value of the ith shape function in the point xi
.
- Precondition
xi
>= -1 andxi
<= 1
- Parameters
-
i Index of the shape fct. (0, 1, 2) xi Coordinate
- Examples
- linearFEM1d-simple.cc, and linearFEM1d.cc.
◆ shapefctD()
Real linearFEM::Line::shapefctD | ( | const uint | i | ) | const |
Returns the derivative of the ith shape function.
The shape functions are linear and the derivative is constant. Therefore, no coordinates are necessary.
- Parameters
-
i Index of the shape fct. (0, 1)
◆ support()
|
inlinevirtual |
Returns the support of this element.
Implements linearFEM::Element.
Definition at line 52 of file element1D.hh.
◆ T() [1/2]
|
inlinevirtualinherited |
Returns the T matrix of this element.
Definition at line 47 of file element.hh.
◆ T() [2/2]
|
pure virtualinherited |
Returns the T matrix of the element.
Implemented in hp3D::Element< Real >, and hp2D::Element< Real >.
Member Data Documentation
◆ cell_
|
private |
Cell of the element.
Definition at line 71 of file element1D.hh.
◆ graphics_
|
staticprivate |
Definition at line 72 of file element1D.hh.
◆ T_
|
protectedinherited |
T matrix of this element.
Definition at line 50 of file element.hh.
The documentation for this class was generated from the following file:
- linearFEM/element1D.hh