#include <Eddy2D_H_Ring.hh>

Inheritance diagram for test::Eddy2DRingTest:
test::TestCase

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()

virtual test::Eddy2DRingTest::~Eddy2DRingTest ( )
inlinevirtual

Definition at line 28 of file Eddy2D_H_Ring.hh.

Member Function Documentation

◆ _succeed()

void test::TestCase::_succeed ( )
inlineinherited

Explicitly succeds a test.

Definition at line 112 of file testcase.hh.

◆ do_fail()

void test::TestCase::do_fail ( const string &  lbl,
const char *  fname,
long  lineno 
)
protectedinherited

Internal function to report a failed test (besides increasing the failed counter)

◆ do_numtest() [1/2]

bool test::TestCase::do_numtest ( double  num,
double  orig,
const string &  lbl,
const string &  lbl2,
const char *  fname,
long  lineno,
const double  tol = 1e-10 
)
protectedinherited

Internal function to do a numerical test.

◆ do_numtest() [2/2]

bool test::TestCase::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 
)
protectedinherited

◆ do_test()

bool test::TestCase::do_test ( bool  cond,
const string &  lbl,
const char *  fname,
long  lineno 
)
protectedinherited

Internal function to do a test.

◆ getNumFailed()

long test::TestCase::getNumFailed ( ) const
inlineinherited

Returns number of failed tests.

Definition at line 105 of file testcase.hh.

◆ getNumPassed()

long test::TestCase::getNumPassed ( ) const
inlineinherited

Returns number of passed tests.

Definition at line 103 of file testcase.hh.

◆ getStream()

const ostream* test::TestCase::getStream ( ) const
inlineinherited

Returns output stream.

Definition at line 107 of file testcase.hh.

◆ originalConstants_()

bool test::Eddy2DRingTest::originalConstants_ ( ) const
private

Returns true, if the original constants are taken.

◆ report()

long test::TestCase::report ( ) const
inherited

Prints a report on the number of passed and failed tests to the output stream.

Returns
Number of failed tests.

◆ reset()

virtual void test::TestCase::reset ( )
inlinevirtualinherited

Resets the counters for the failed and passed tests.

Definition at line 119 of file testcase.hh.

◆ run()

virtual void test::Eddy2DRingTest::run ( )
virtual

Runs the tests. Must be overwritten by the specialization.

Implements test::TestCase.

◆ setStream()

void test::TestCase::setStream ( ostream *  osptr)
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()

template<class F >
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()

void test::Eddy2DRingTest::testMaxwellSolver ( concepts::ModelControl< hp2D::Maxwell2D_H_Base > &  control,
enum hp2D::Maxwell2D_H_Base::solverType  type,
bool  diagPrecond,
Real &  residual,
Real &  solvetime 
)
private

Type of boundary condition.

◆ testMaxwellSolvers()

void test::Eddy2DRingTest::testMaxwellSolvers ( concepts::EddyGeometry2D geom,
std::string  probStr 
)
private

Type of boundary condition.

◆ testMaxwellSolversDD()

void test::Eddy2DRingTest::testMaxwellSolversDD ( concepts::EddyGeometry2D geom,
std::string  probStr 
)
private

Type of boundary condition.

◆ testRing()

void test::Eddy2DRingTest::testRing ( )

Tests with a ring of metal.

Member Data Documentation

◆ bc_

concepts::MaxwellBoundary test::Eddy2DRingTest::bc_
private

Type of boundary condition.

Definition at line 95 of file Eddy2D_H_Ring.hh.

◆ eps_

Real test::Eddy2DRingTest::eps_
private

Type of boundary condition.

Definition at line 91 of file Eddy2D_H_Ring.hh.

◆ graphics_

const bool test::Eddy2DRingTest::graphics_
private

Type of boundary condition.

Definition at line 87 of file Eddy2D_H_Ring.hh.

◆ j0_

Real test::Eddy2DRingTest::j0_
private

Type of boundary condition.

Definition at line 93 of file Eddy2D_H_Ring.hh.

◆ m_nFail

long test::TestCase::m_nFail
privateinherited

Definition at line 139 of file testcase.hh.

◆ m_nPass

long test::TestCase::m_nPass
privateinherited

Definition at line 138 of file testcase.hh.

◆ m_osptr

ostream* test::TestCase::m_osptr
privateinherited

Definition at line 137 of file testcase.hh.

◆ mu_

Real test::Eddy2DRingTest::mu_
private

Type of boundary condition.

Definition at line 92 of file Eddy2D_H_Ring.hh.

◆ omega_

Real test::Eddy2DRingTest::omega_
private

Type of boundary condition.

Definition at line 89 of file Eddy2D_H_Ring.hh.

◆ output_

concepts::InOutParameters test::Eddy2DRingTest::output_
private

Type of boundary condition.

Definition at line 84 of file Eddy2D_H_Ring.hh.

◆ pmax_

const uint test::Eddy2DRingTest::pmax_
private

Type of boundary condition.

Definition at line 86 of file Eddy2D_H_Ring.hh.

◆ sigma_

Real test::Eddy2DRingTest::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:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich