ElInfo2d.h 3.23 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  crystal growth group                                                  ==
// ==                                                                        ==
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  http://www.caesar.de/cg/AMDiS                                         ==
// ==                                                                        ==
// ============================================================================

/** \file ElInfo2d.h */

#ifndef AMDIS_ELINFO2D_H
#define AMDIS_ELINFO2D_H

25
26
#include <boost/numeric/mtl/mtl.hpp>

27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "ElInfo.h"
#include "MemoryManager.h"

namespace AMDiS {

  /** \ingroup Traverse
   * \brief
   * ElInfo class for 2-dimensional elements (\ref Triangle).
   */
  class ElInfo2d : public ElInfo
  {
  public:
    MEMORY_MANAGED(ElInfo2d);

41
    /// Constructor. Calls ElInfo's protected Constructor.
42
43
    ElInfo2d(Mesh* aMesh);

44
    ///
45
    ~ElInfo2d();
46

47
    /// 2-dimensional realisation of ElInfo's fillElInfo method.
48
49
    void fillElInfo(int ichild, const ElInfo *elinfo_old);

50
51
    /// 2-dimensional realisation of ElInfo's fillMacroInfo method.
    void fillMacroInfo(const MacroElement*);
52

53
    /// 2-dimensional realisation of ElInfo's worldToCoord method.
54
55
    const int worldToCoord(const WorldVector<double>& w, DimVec<double>* l) const;

56
    /// 2-dimensional realisation of ElInfo's calcGrdLambda method.
Thomas Witkowski's avatar
Thomas Witkowski committed
57
    double calcGrdLambda(DimVec<WorldVector<double> >& grd_lam);
58

59
    /// 2-dimensional realisation of ElInfo's getNormal method.
Thomas Witkowski's avatar
Thomas Witkowski committed
60
    double getNormal(int side, WorldVector<double> &normal);
61

62
    /// 2-dimensional realisation of ElInfo's getElementNormal method.
63
    double getElementNormal(WorldVector<double> &normal) const;
64

65
66
    void getRefSimplexCoords(const BasisFunction *basisFcts,
			     DimMat<double> *coords) const;
67

68
69
70
    void getRefSimplexCoords(const BasisFunction *basisFcts,
			     mtl::dense2D<double>& coords) const {}

71
72
73
    void getSubElementCoords(const BasisFunction *basisFcts,
			     int iChild,
			     DimMat<double> *coords) const;
74

75
76
77
78
79
    void getSubElementCoords(const BasisFunction *basisFcts,
			     int iChild,
			     mtl::dense2D<double>& coords) const {}


80
  protected:
81
    /// Temp vectors for function \ref calcGrdLambda.
82
    WorldVector<double> *e1, *e2, *normal;
83
84
85
86
87
  };

}

#endif // AMDIS_ELINFO2D_H