Class documentation of Concepts

Loading...
Searching...
No Matches
Maxwell2D_E_hField.hh
Go to the documentation of this file.
1
9#ifndef Maxwell2D_E_hField_hh
10#define Maxwell2D_E_hField_hh
11
12#include "geometry/formula.hh"
13#include "hp2Dedge/function.hh"
15#include "basics.hh"
16#include "toolbox.hh"
17
18namespace hp2D {
19
20 using concepts::Real;
21 using concepts::Cmplx;
22
24 public hp2D::ElementFunction<1, Cmplx, hp2Dedge::Quad<> > {
25 public:
26 Maxwell2D_hField(const Real& omega, const Real& mu);
27 virtual ~Maxwell2D_hField() {}
28
29 virtual Maxwell2D_hField* clone() const {
30 return new Maxwell2D_hField(1.0 / std::imag(factor_), 1.0); }
31 protected:
32 virtual std::ostream& info(std::ostream& os) const;
33 private:
34 virtual void compute_(const hp2Dedge::Quad<>& elm,
35 const concepts::Array<Cmplx>& coeff,
36 Cmplx& val, const uint i[2]) const;
37 virtual void compute_(const hp2Dedge::Quad<>& elm, const uint j[3],
38 Cmplx& val, const uint i[2]) const;
39 virtual void compute_(const hp2Dedge::Quad<>& elm,
40 const concepts::Array<Cmplx>& coeff,
41 Cmplx& val,
42 const Real2d& p, const Real t = 0.0) const;
46 Cmplx factor_;
47 };
48
49} // namespace hp2D
50
51#endif // Maxwell2D_E_hField_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
double Real
Definition typedefs.hh:39
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition typedefs.hh:42