BoundaryElementEdgeDist.h 777 Bytes
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
#ifndef BOUNDARYELEMENTEDGEDIST_H
#define BOUNDARYELEMENTEDGEDIST_H

#include "ElInfo.h"
#include "FixVec.h"

#include "ElementLevelSet.h"

#include "BoundaryElementDist.h"

using namespace AMDiS;

class BoundaryElementEdgeDist : public BoundaryElementDist
{
 public:
  MEMORY_MANAGED(BoundaryElementEdgeDist);

  /**
   * Constructor.
   */
  BoundaryElementEdgeDist(ElementLevelSet *elLS_,
			  int dim_)
    : BoundaryElementDist(elLS_, dim_)
  {};

  /**
   * Calculates distance from the interface for all vertices of a boundary 
   * element.
   * Distance is here the distance along edges.
   *
   * Return value: Status of element elInfo.
   */
  int calcDistOnBoundaryElement(ElInfo *elInfo,
				FixVec<double, VERTEX> &dVec);
};

#endif  // BOUNDARYELEMENTEDGEDIST_H