ElInfo1d.h 3.27 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 ElInfo1d.h */

#ifndef AMDIS_ELINFO1D_H
#define AMDIS_ELINFO1D_H

#include "ElInfo.h"
#include "MemoryManager.h"

namespace AMDiS {

  // ============================================================================
  // ===== class ElInfo1d =======================================================
  // ============================================================================

  /** \ingroup Traverse
   * \brief
   * ElInfo class for 1-dimensional elements (\ref Line).
   */
  class ElInfo1d : public ElInfo
  {
  public:
    MEMORY_MANAGED(ElInfo1d);

    /** \brief
     * Constructor. Calls ElInfo's protected Constructor.
     */
46
47
48
    ElInfo1d(Mesh* aMesh) 
      : ElInfo(aMesh) 
    {}
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

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

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

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

    /** \brief
     * 1-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
     * 1-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
79

    /** \brief
     * 1-dimensional realisation of ElInfo's getElementNormal method.
     */
    double getElementNormal( WorldVector<double> &normal) const;

80
81
    int getSideOfNeighbour(int i) { 
      return (i + 1) % 2; 
82
    }
83
84
85
86
87
88

    void getRefSimplexCoords(VectorOfFixVecs<DimVec<double> > *coords) const;

    void getSubElementCoords(VectorOfFixVecs<DimVec<double> > *coords,
			     int iChild) const;

89
90
91
92
93
  };

}

#endif // AMDIS_ELINFO1D_H