You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
models
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
"
14
#include "
hp2Dedge/bilinearForm.hh
"
15
#include "basics.hh"
16
#include "toolbox.hh"
17
18
namespace
hp2D
{
19
20
using
concepts::Real
;
21
using
concepts::Cmplx
;
22
23
class
Maxwell2D_hField
:
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
;
44
hp2Dedge::Rot<Cmplx>
scurl_;
46
Cmplx factor_;
47
};
48
49
}
// namespace hp2D
50
51
#endif
// Maxwell2D_E_hField_hh
concepts::Array
Definition
array.hh:46
hp2D::ElementFunction
Definition
functionBase.hh:38
hp2D::Maxwell2D_hField
Definition
Maxwell2D_E_hField.hh:24
hp2D::Maxwell2D_hField::info
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
hp2Dedge::Quad
Definition
quad.hh:129
hp2Dedge::Rot
Definition
function.hh:59
formula.hh
bilinearForm.hh
function.hh
concepts::Real
double Real
Definition
typedefs.hh:39
concepts::Cmplx
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition
typedefs.hh:42
hp2D
Definition
explicitResidual.hh:120
Generated on Wed Sep 13 2023 21:06:22 for Concepts by
1.9.8