You are here:
Concepts
>
Concepts Web
>
Class documentation
Class documentation of Concepts
Loading...
Searching...
No Matches
models
testsuite
Eddy2D_H_Ring.hh
Go to the documentation of this file.
1
10
#ifndef MeshImp2DTest_hh
11
#define MeshImp2DTest_hh
12
13
#include <iostream>
14
#include <cstdlib>
15
#include "
space/space.hh
"
16
#include "
basics/testcase.hh
"
17
#include "
basics/exceptions.hh
"
18
#include "
models/maxwell.hh
"
19
20
namespace
test
{
21
22
// ******************************************************** Eddy2DRingTest **
23
24
class
Eddy2DRingTest
:
public
TestCase
{
25
public
:
26
Eddy2DRingTest
(
const
uint pmax = 3,
const
Real sigma = 1,
27
const
Real epsilon = 1e-8,
const
bool
graphics
=
false
);
28
virtual
~Eddy2DRingTest
() {}
29
virtual
void
run
();
30
32
33
35
void
testCircle
();
39
void
testMaxwell_PMC_H_Circle
(
concepts::EddyGeometry2D
& geom);
43
void
testMaxwell_PEC_H_Circle
(
concepts::EddyGeometry2D
& geom);
47
void
testMaxwell_PMC_E_Circle
(
concepts::EddyGeometry2D
& geom);
51
void
testMaxwell_PEC_E_Circle
(
concepts::EddyGeometry2D
& geom);
55
void
testMaxwell_PMC_H_Circle_DD
(
concepts::EddyGeometry2D
& geom);
56
59
void
testRing
();
63
void
testMaxwell_PMC_H_Ring
(
concepts::EddyGeometry2D
& geom);
64
void
testMaxwell_PMC_H_Ring_DD(
concepts::EddyGeometry2D
& geom);
65
69
template
<
class
F>
70
void
testEnergies
(F& model,
const
std::string& modelStr,
71
const
concepts::Array<Real>
& P,
72
const
concepts::Array<Real>
& W,
73
const
concepts::Array<uint>
& Dim,
74
const
uint nelm);
78
void
testMaxwellRingSolvers
();
80
private
:
82
bool
originalConstants_()
const
;
83
84
concepts::InOutParameters
output_;
85
86
const
uint pmax_;
87
const
bool
graphics_;
88
89
Real omega_;
// angular frequency in 1/s
90
Real sigma_;
// conductivity constant in 1/(Ohm*m)
91
Real eps_;
// dielectricity constant in s/(Ohm*m)
92
Real mu_;
// permeability constant in Ohm*s/m
93
Real j0_;
// current density in A/m^2
95
concepts::MaxwellBoundary
bc_;
96
97
void
testMaxwellSolvers(
concepts::EddyGeometry2D
& geom,
98
std::string probStr);
99
void
testMaxwellSolversDD(
concepts::EddyGeometry2D
& geom,
100
std::string probStr);
101
102
void
testMaxwellSolver
103
(
concepts::ModelControl<hp2D::Maxwell2D_H_Base>
& control,
104
enum
hp2D::Maxwell2D_H_Base::solverType
type,
bool
diagPrecond,
105
Real& residual, Real& solvetime);
106
};
107
108
}
// namespace test
109
110
# endif
// MeshImp2DTest_hh
exceptions.hh
concepts::Array
Definition
array.hh:46
concepts::EddyGeometry2D
Definition
Eddy2D_geometries.hh:29
concepts::InOutParameters
Definition
inputOutput.hh:75
concepts::MaxwellBoundary
Definition
maxwell.hh:19
concepts::ModelControl
Definition
models.hh:174
hp2D::Maxwell2D_H_Base::solverType
solverType
Type of the solver.
Definition
Maxwell2D_H.hh:42
test::Eddy2DRingTest
Definition
Eddy2D_H_Ring.hh:24
test::Eddy2DRingTest::testMaxwell_PEC_E_Circle
void testMaxwell_PEC_E_Circle(concepts::EddyGeometry2D &geom)
test::Eddy2DRingTest::testRing
void testRing()
test::Eddy2DRingTest::testMaxwellRingSolvers
void testMaxwellRingSolvers()
test::Eddy2DRingTest::testMaxwell_PMC_H_Ring
void testMaxwell_PMC_H_Ring(concepts::EddyGeometry2D &geom)
test::Eddy2DRingTest::testCircle
void testCircle()
test::Eddy2DRingTest::run
virtual void run()
Runs the tests. Must be overwritten by the specialization.
test::Eddy2DRingTest::testMaxwell_PMC_H_Circle_DD
void testMaxwell_PMC_H_Circle_DD(concepts::EddyGeometry2D &geom)
test::Eddy2DRingTest::testMaxwell_PEC_H_Circle
void testMaxwell_PEC_H_Circle(concepts::EddyGeometry2D &geom)
test::Eddy2DRingTest::testMaxwell_PMC_H_Circle
void testMaxwell_PMC_H_Circle(concepts::EddyGeometry2D &geom)
test::Eddy2DRingTest::testEnergies
void testEnergies(F &model, const std::string &modelStr, const concepts::Array< Real > &P, const concepts::Array< Real > &W, const concepts::Array< uint > &Dim, const uint nelm)
test::Eddy2DRingTest::testMaxwell_PMC_E_Circle
void testMaxwell_PMC_E_Circle(concepts::EddyGeometry2D &geom)
test::TestCase
Definition
testcase.hh:92
maxwell.hh
graphics
Definition
graphics.hh:26
test
Definition
testcase.hh:66
space.hh
testcase.hh
Generated on Wed Sep 13 2023 21:06:22 for Concepts by
1.9.8