Class documentation of Concepts

Loading...
Searching...
No Matches
element1D.hh
Go to the documentation of this file.
1
6#ifndef element1DLin_hh
7#define element1DLin_hh
8
9#include "element.hh"
10#include "geometry/cell1D.hh"
11
12namespace concepts {
13 // forward declaration
14 template<typename F>
15 class ElementGraphics;
16}
17
18namespace linearFEM {
19 // forward declaration
20 class LineGraphics;
21
22 // ****************************************************************** Line **
23
34 class Line : public Element {
35 public:
41 Line(const concepts::Edge1d& cell, uint idx[]) :
42 Element(2, idx), cell_(cell) {}
51 Element(T0, T1), cell_(cell) {}
52 virtual const concepts::Edge& support() const { return cell_.connector(); }
53 virtual const concepts::Edge1d& cell() const { return cell_; }
59 Real shapefct(const uint i, const Real xi) const;
65 Real shapefctD(const uint i) const;
66 virtual const concepts::ElementGraphics<Real>* graphics() const;
67 protected:
68 virtual std::ostream& info(std::ostream& os) const;
69 private:
71 const concepts::Edge1d& cell_;
72 static std::unique_ptr<LineGraphics> graphics_;
73 };
74
75} // namespace linearFEM
76
77#endif // element1DLin_hh
Edge & connector() const
Returns the connector (topology)
Definition cell1D.hh:59
Line(const concepts::Edge1d &cell, uint idx[])
Definition element1D.hh:41
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Real shapefct(const uint i, const Real xi) const
virtual const concepts::Edge & support() const
Returns the support of this element.
Definition element1D.hh:52
Real shapefctD(const uint i) const
Line(const concepts::Edge1d &cell, concepts::TColumn< Real > *T0, concepts::TColumn< Real > *T1=0)
Definition element1D.hh:49
virtual const concepts::Edge1d & cell() const
Returns the cell of this element.
Definition element1D.hh:53