ElInfo2d.h 2.96 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ============================================================================
// ==                                                                        ==
// == 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

#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);

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

42
    ///
43
    ~ElInfo2d();
44

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

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

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

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

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

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

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

66
67
68
    void getSubElementCoords(const BasisFunction *basisFcts,
			     int iChild,
			     DimMat<double> *coords) const;
69

70
  protected:
71
    /// Temp vectors for function \ref calcGrdLambda.
72
    WorldVector<double> *e1, *e2, *normal;
73
74
75
76
77
  };

}

#endif // AMDIS_ELINFO2D_H