SurfaceQuadrature.h 2.38 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
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  crystal growth group                                                  ==
// ==                                                                        ==
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  http://www.caesar.de/cg/AMDiS                                         ==
// ==                                                                        ==
// ============================================================================

/** \file SurfaceQuadrature.h */

#ifndef AMDIS_SURFACEQAUDRATURE_H
#define AMDIS_SURFACEQAUDRATURE_H

#include <list>
#include "FixVec.h"
#include "Quadrature.h"

namespace AMDiS {

  /** 
   * \ingroup Integration
   *
   * \brief
   * Quadrature for element surfaces. Uses the functionality of the standard
   * Quadrature class for dim-1 but calculates new barycentric coordinates
   * for the element sides.
   */
  class SurfaceQuadrature : public Quadrature
  {
  public:
42
    /// Constructs a SurfaceQuadrature based on a standard Quadrature of dim-1.
43
44
    SurfaceQuadrature(Quadrature *quad, VectorOfFixVecs<DimVec<double> >& coords);

45
    /// Destructor.
46
    ~SurfaceQuadrature()
Thomas Witkowski's avatar
Thomas Witkowski committed
47
    {}
48

49
    /// Adapts SurfaceQuadrature to \ref coords.
50
51
52
    void scaleSurfaceQuadrature(VectorOfFixVecs<DimVec<double> > &coords);

  protected:
53
    /// Pointer to the original quadrature
54
55
56
57
58
59
60
61
    Quadrature *quad_;

    VectorOfFixVecs<DimVec<double> > coords_;
  };

}

#endif // AMDIS_SURFACEQAUDRATURE_H