BEBilinearForm.h 1.36 KB
Newer Older
Jan Zapletal's avatar
Jan Zapletal committed
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
/*!
 * @file    BEBilinearForm.h
 * @author  Michal Merta 
 * @date    July 12, 2013
 * @brief   Header file for pure virtual class BEBilinearForm
 * 
 */

#ifndef BEBILINEARFORM_H
#define	BEBILINEARFORM_H

#include <algorithm>
#include <omp.h>
#include <new>

#include "FullMatrix.h"
#include "Settings.h"
#include "Macros.h"
#include "Quadratures.h"
#include "ProgressMonitor.h"


namespace bem4i {

//! type of quadrature

enum quadratureType {
  SauterSchwab,
  Steinbach
};

/*! 
 * Abstract class representing a bilinear form over some BEM space
 * 
 */
template<class LO, class SC>
class BEBilinearForm {
  typedef typename GetType<LO, SC>::SCVT SCVT;

public:

  //! default constructor
  BEBilinearForm( );

  //! copy constructor
  BEBilinearForm(
      const BEBilinearForm& orig
      );

  //! destructor
  virtual ~BEBilinearForm( );

  //! method assembles a full matrix of a given bilinear form
  virtual void assemble(
      FullMatrix<LO, SC>& matrix
      ) const = 0;

protected:

  //! boundary element space for full BEM
  BESpace<LO, SC>* space;

  //! quadrature rule
  int* quadratureOrder;

  //! quadrature type
  quadratureType quadrature;

  //! disjoint elements Gaussian quadrature order
  int* quadratureOrderDisjointElems;

};

}
// include .cpp file to overcome linking problems due to templates
#include "BEBilinearForm.cpp"


#endif	/* BEBILINEARFORM_H */