Class documentation of Concepts

Loading...
Searching...
No Matches
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
20namespace 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();
56
59 void testRing();
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);
80 private:
82 bool originalConstants_() const;
83
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
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
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
solverType
Type of the solver.
void testMaxwell_PEC_E_Circle(concepts::EddyGeometry2D &geom)
void testMaxwell_PMC_H_Ring(concepts::EddyGeometry2D &geom)
virtual void run()
Runs the tests. Must be overwritten by the specialization.
void testMaxwell_PMC_H_Circle_DD(concepts::EddyGeometry2D &geom)
void testMaxwell_PEC_H_Circle(concepts::EddyGeometry2D &geom)
void testMaxwell_PMC_H_Circle(concepts::EddyGeometry2D &geom)
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)
void testMaxwell_PMC_E_Circle(concepts::EddyGeometry2D &geom)