RefinementManager2d.h 2.98 KB
Newer Older
1
2
3
4
5
6
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
7
// ==  TU Dresden                                                            ==
8
// ==                                                                        ==
9
10
11
// ==  Institut fr Wissenschaftliches Rechnen                               ==
// ==  Zellescher Weg 12-14                                                  ==
// ==  01069 Dresden                                                         ==
12
13
14
15
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
16
// ==  https://gforge.zih.tu-dresden.de/projects/amdis/                      ==
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==                                                                        ==
// ============================================================================

/** \file RefinementManager2d.h */

#ifndef AMDIS_REFINEMENT_MANAGER_2D_H
#define AMDIS_REFINEMENT_MANAGER_2D_H

namespace AMDiS {

  /** \ingroup Adaption
   * \brief
   * Implements a RefinementManager for 2-dimensional meshes.
   */
  class RefinementManager2d : public RefinementManager
  {
  public:
34
    /// Calls base class constructor.
35
36
    RefinementManager2d()
      : RefinementManager()
37
    {}
38

39
40
    /// Destructor 
    virtual ~RefinementManager2d() {}
41
42

  protected:
43
    /// Used by \ref setNewCoords
44
    void newCoordsFct(ElInfo *elInfo);
45

46
    /// Implements RefinementManager::setNewCoords
47
    void setNewCoords(int macroEl = -1);
48
49
50
51
52
53
54
55
56

    /** \brief
     *  gets the elements around the refinement edge with vertices  node[0] and
     *  node[1] ; refines those elements at this edge are not compatible 
     *  devisible;  			                                 
     *  dir determines the direction of the first neighbour
     *  get_refine_patch returns  1  if the domain's boundary is reached while
     *  looping around the refinement edge, otherwise  0
     */
57
58
    void getRefinePatch(ElInfo **elInfo, DegreeOfFreedom *edge[2], int dir,
			RCNeighbourList* refineList, int *n_neigh);
59

60
    /// Refines all elements in the patch.
61
62
    DegreeOfFreedom refinePatch(DegreeOfFreedom *edge[2], 
				RCNeighbourList* refineList,
63
64
				int n_neigh, bool bound);

65
    /// Implements RefinementManager::refineFunction.
66
    ElInfo* refineFunction(ElInfo* elInfo);
67

68
    /// Refines one Triangle.
69
70
71
72
73
74
    void bisectTriangle(Triangle *el, DegreeOfFreedom* newDofs[3]);
  };

}

#endif // AMDIS_REFINEMENT_MANAGER_2D_H