ElInfo2d.h 3.15 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
39
40
41
42
43
44
45
// ============================================================================
// ==                                                                        ==
// == 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 {

  // ============================================================================
  // ===== class ElInfo2d =======================================================
  // ============================================================================

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

    /** \brief
     * Constructor. Calls ElInfo's protected Constructor.
     */
46
47
48
    ElInfo2d(Mesh* aMesh);

    ~ElInfo2d();
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

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

    /** \brief
     * 2-dimensional realisation of ElInfo's fillMacroInfo method.
     */
    void fillMacroInfo(const MacroElement *);

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

    /** \brief
     * 2-dimensional realisation of ElInfo's calcGrdLambda method.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
68
    double calcGrdLambda(DimVec<WorldVector<double> >& grd_lam);
69
70
71
72

    /** \brief
     * 2-dimensional realisation of ElInfo's getNormal method.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
73
    double getNormal(int side, WorldVector<double> &normal);
74
75
76
77
78

    /** \brief
     * 2-dimensional realisation of ElInfo's getElementNormal method.
     */
    double getElementNormal( WorldVector<double> &normal) const;
79
80
81
82
83
84

  protected:
    /** \brief
     * Temp vectors for function \ref calcGrdLambda.
     */
    WorldVector<double> *e1, *e2, *normal;
85
86
87
88
89
  };

}

#endif // AMDIS_ELINFO2D_H