test::Eddy2DRingTest Class Reference
#include <Eddy2D_H_Ring.hh>
Public Member Functions | |
void | _succeed () |
Explicitly succeds a test. More... | |
Eddy2DRingTest (const uint pmax=3, const Real sigma=1, const Real epsilon=1e-8, const bool graphics=false) | |
long | getNumFailed () const |
Returns number of failed tests. More... | |
long | getNumPassed () const |
Returns number of passed tests. More... | |
const ostream * | getStream () const |
Returns output stream. More... | |
long | report () const |
Prints a report on the number of passed and failed tests to the output stream. More... | |
virtual void | reset () |
Resets the counters for the failed and passed tests. More... | |
virtual void | run () |
Runs the tests. Must be overwritten by the specialization. More... | |
void | setStream (ostream *osptr) |
Sets the output stream. More... | |
virtual | ~Eddy2DRingTest () |
Protected Member Functions | |
void | do_fail (const string &lbl, const char *fname, long lineno) |
Internal function to report a failed test (besides increasing the failed counter) More... | |
bool | do_numtest (double num, double orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10) |
Internal function to do a numerical test. More... | |
bool | do_numtest (std::complex< double > num, std::complex< double > orig, const string &lbl, const string &lbl2, const char *fname, long lineno, const double tol=1e-10) |
bool | do_test (bool cond, const string &lbl, const char *fname, long lineno) |
Internal function to do a test. More... | |
Private Attributes | |
long | m_nFail |
long | m_nPass |
ostream * | m_osptr |
Test routines | |
concepts::InOutParameters | output_ |
Type of boundary condition. More... | |
const uint | pmax_ |
Type of boundary condition. More... | |
const bool | graphics_ |
Type of boundary condition. More... | |
Real | omega_ |
Type of boundary condition. More... | |
Real | sigma_ |
Type of boundary condition. More... | |
Real | eps_ |
Type of boundary condition. More... | |
Real | mu_ |
Type of boundary condition. More... | |
Real | j0_ |
Type of boundary condition. More... | |
concepts::MaxwellBoundary | bc_ |
Type of boundary condition. More... | |
void | testCircle () |
Tests with a circle of metal. More... | |
void | testMaxwell_PMC_H_Circle (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PMC boundary condition. More... | |
void | testMaxwell_PEC_H_Circle (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PEC boundary condition. More... | |
void | testMaxwell_PMC_E_Circle (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a circle of metal in e-formulation with PMC boundary condition. More... | |
void | testMaxwell_PEC_E_Circle (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a circle of metal in e-formulation with PEC boundary condition. More... | |
void | testMaxwell_PMC_H_Circle_DD (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PMC boundary condition with domain decomposition. More... | |
void | testRing () |
Tests with a ring of metal. More... | |
void | testMaxwell_PMC_H_Ring (concepts::EddyGeometry2D &geom) |
Test Routine the Maxwell's equations with a ring of metal in h-formulation with PMC boundary condition. More... | |
void | testMaxwell_PMC_H_Ring_DD (concepts::EddyGeometry2D &geom) |
Type of boundary condition. More... | |
template<class F > | |
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) |
Solve for different polynomial degrees and compare with given values. More... | |
void | testMaxwellRingSolvers () |
Tests the Maxwell's equations with a ring of metal and a coil around with different solvers. More... | |
bool | originalConstants_ () const |
Returns true, if the original constants are taken. More... | |
void | testMaxwellSolvers (concepts::EddyGeometry2D &geom, std::string probStr) |
Type of boundary condition. More... | |
void | testMaxwellSolversDD (concepts::EddyGeometry2D &geom, std::string probStr) |
Type of boundary condition. More... | |
void | testMaxwellSolver (concepts::ModelControl< hp2D::Maxwell2D_H_Base > &control, enum hp2D::Maxwell2D_H_Base::solverType type, bool diagPrecond, Real &residual, Real &solvetime) |
Type of boundary condition. More... | |
Detailed Description
Definition at line 24 of file Eddy2D_H_Ring.hh.
Constructor & Destructor Documentation
◆ Eddy2DRingTest()
test::Eddy2DRingTest::Eddy2DRingTest | ( | const uint | pmax = 3 , |
const Real | sigma = 1 , |
||
const Real | epsilon = 1e-8 , |
||
const bool | graphics = false |
||
) |
◆ ~Eddy2DRingTest()
|
inlinevirtual |
Definition at line 28 of file Eddy2D_H_Ring.hh.
Member Function Documentation
◆ _succeed()
|
inlineinherited |
Explicitly succeds a test.
Definition at line 112 of file testcase.hh.
◆ do_fail()
|
protectedinherited |
Internal function to report a failed test (besides increasing the failed counter)
◆ do_numtest() [1/2]
|
protectedinherited |
Internal function to do a numerical test.
◆ do_numtest() [2/2]
|
protectedinherited |
◆ do_test()
|
protectedinherited |
Internal function to do a test.
◆ getNumFailed()
|
inlineinherited |
Returns number of failed tests.
Definition at line 105 of file testcase.hh.
◆ getNumPassed()
|
inlineinherited |
Returns number of passed tests.
Definition at line 103 of file testcase.hh.
◆ getStream()
|
inlineinherited |
Returns output stream.
Definition at line 107 of file testcase.hh.
◆ originalConstants_()
|
private |
Returns true, if the original constants are taken.
◆ report()
|
inherited |
Prints a report on the number of passed and failed tests to the output stream.
- Returns
- Number of failed tests.
◆ reset()
|
inlinevirtualinherited |
Resets the counters for the failed and passed tests.
Definition at line 119 of file testcase.hh.
◆ run()
|
virtual |
Runs the tests. Must be overwritten by the specialization.
Implements test::TestCase.
◆ setStream()
|
inlineinherited |
Sets the output stream.
Definition at line 109 of file testcase.hh.
◆ testCircle()
void test::Eddy2DRingTest::testCircle | ( | ) |
Tests with a circle of metal.
◆ testEnergies()
void test::Eddy2DRingTest::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 | ||
) |
Solve for different polynomial degrees and compare with given values.
◆ testMaxwell_PEC_E_Circle()
void test::Eddy2DRingTest::testMaxwell_PEC_E_Circle | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a circle of metal in e-formulation with PEC boundary condition.
◆ testMaxwell_PEC_H_Circle()
void test::Eddy2DRingTest::testMaxwell_PEC_H_Circle | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PEC boundary condition.
◆ testMaxwell_PMC_E_Circle()
void test::Eddy2DRingTest::testMaxwell_PMC_E_Circle | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a circle of metal in e-formulation with PMC boundary condition.
◆ testMaxwell_PMC_H_Circle()
void test::Eddy2DRingTest::testMaxwell_PMC_H_Circle | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PMC boundary condition.
◆ testMaxwell_PMC_H_Circle_DD()
void test::Eddy2DRingTest::testMaxwell_PMC_H_Circle_DD | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a circle of metal in h-formulation with PMC boundary condition with domain decomposition.
◆ testMaxwell_PMC_H_Ring()
void test::Eddy2DRingTest::testMaxwell_PMC_H_Ring | ( | concepts::EddyGeometry2D & | geom | ) |
Test Routine the Maxwell's equations with a ring of metal in h-formulation with PMC boundary condition.
◆ testMaxwell_PMC_H_Ring_DD()
void test::Eddy2DRingTest::testMaxwell_PMC_H_Ring_DD | ( | concepts::EddyGeometry2D & | geom | ) |
Type of boundary condition.
◆ testMaxwellRingSolvers()
void test::Eddy2DRingTest::testMaxwellRingSolvers | ( | ) |
Tests the Maxwell's equations with a ring of metal and a coil around with different solvers.
◆ testMaxwellSolver()
|
private |
Type of boundary condition.
◆ testMaxwellSolvers()
|
private |
Type of boundary condition.
◆ testMaxwellSolversDD()
|
private |
Type of boundary condition.
◆ testRing()
void test::Eddy2DRingTest::testRing | ( | ) |
Tests with a ring of metal.
Member Data Documentation
◆ bc_
|
private |
Type of boundary condition.
Definition at line 95 of file Eddy2D_H_Ring.hh.
◆ eps_
|
private |
Type of boundary condition.
Definition at line 91 of file Eddy2D_H_Ring.hh.
◆ graphics_
|
private |
Type of boundary condition.
Definition at line 87 of file Eddy2D_H_Ring.hh.
◆ j0_
|
private |
Type of boundary condition.
Definition at line 93 of file Eddy2D_H_Ring.hh.
◆ m_nFail
|
privateinherited |
Definition at line 139 of file testcase.hh.
◆ m_nPass
|
privateinherited |
Definition at line 138 of file testcase.hh.
◆ m_osptr
|
privateinherited |
Definition at line 137 of file testcase.hh.
◆ mu_
|
private |
Type of boundary condition.
Definition at line 92 of file Eddy2D_H_Ring.hh.
◆ omega_
|
private |
Type of boundary condition.
Definition at line 89 of file Eddy2D_H_Ring.hh.
◆ output_
|
private |
Type of boundary condition.
Definition at line 84 of file Eddy2D_H_Ring.hh.
◆ pmax_
|
private |
Type of boundary condition.
Definition at line 86 of file Eddy2D_H_Ring.hh.
◆ sigma_
|
private |
Type of boundary condition.
Definition at line 90 of file Eddy2D_H_Ring.hh.
The documentation for this class was generated from the following file:
- models/testsuite/Eddy2D_H_Ring.hh