element.hh

Go to the documentation of this file.
1 
6 #ifndef constrElement_hh
7 #define constrElement_hh
8 
9 #include "space/element.hh"
10 #include "space/elementPairs.hh"
11 #include "space/tmatrix.hh"
12 
13 namespace constraints {
14 
15  // *************************************************************** Element **
16 
20  template<typename F>
21  class Element : public concepts::Element<F>,
22  public concepts::ElementPair<F> {
23  public:
29  virtual ~Element();
30  virtual const concepts::TMatrix<F>& T() const { return T_; }
31 
33  const concepts::Element<F>& compElement() const { return elm_; }
34 
35  virtual const concepts::Element<F>& elm1() const { return *this; }
36  virtual const concepts::Element<F>& elm2() const { return elm_; }
37  protected:
38  virtual std::ostream& info(std::ostream& os) const;
39  private:
42 
45  };
46 
47 } // namespace constraints
48 
49 #endif // constrElement_hh
A column of a T matrix.
Definition: analytical.hh:18
An abstract class for an element of a space.
Definition: exceptions.hh:15
Gives access to a pair of elements.
Definition: elementPairs.hh:25
const concepts::Element< F > & compElement() const
Returns the computational element.
Definition: element.hh:33
A T matrix in sparse notation.
Definition: edgeTest.hh:17
virtual const concepts::TMatrix< F > & T() const
Definition: element.hh:30
GenericElement< KarniadakisMixin< F > > Element
template aliases for backwards compatibility
Definition: element.hh:270
Essential boundary conditions and multi-point constraints [1].
Definition: analytical.hh:21
concepts::TMatrix< F > T_
TMatrix.
Definition: element.hh:44
concepts::Element< F > & elm_
Element in the computational space.
Definition: element.hh:41
virtual const concepts::Element< F > & elm2() const
Definition: element.hh:36
Element(concepts::Element< F > &elm, concepts::TColumn< F > *T)
Constructor.
virtual std::ostream & info(std::ostream &os) const
virtual const concepts::Element< F > & elm1() const
Definition: element.hh:35
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich