Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
test::Eddy2DRingTest Class Reference

#include <Eddy2D_H_Ring.hh>

Inheritance diagram for test::Eddy2DRingTest:
Inheritance graph
[legend]
Collaboration diagram for test::Eddy2DRingTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void _succeed ()
 Explicitly succeds a test.
 Eddy2DRingTest (const uint pmax=3, const bool graphics=false)
 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.
long getNumPassed () const
 Returns number of passed tests.
const ostream * getStream () const
 Returns output stream.
long report () const
 Prints a report on the number of passed and failed tests to the output stream.
virtual void reset ()
 Resets the counters for the failed and passed tests.
virtual void run ()
 Runs the tests. Must be overwritten by the specialization.
virtual void run ()
 Runs the tests. Must be overwritten by the specialization.
void setStream (ostream *osptr)
 Sets the output stream.
virtual ~Eddy2DRingTest ()
virtual ~Eddy2DRingTest ()
Test routines
void testEddyCircle ()
 Tests the Eddy-Current model with a circle of metal.
void testMaxwellCircle ()
 Tests the Maxwell's equations with a circle of metal and a coil around.
void testEddyRing ()
 Tests the Eddy-Current model with a ring of metal.
void testMaxwellRing ()
 Tests the Maxwell's equations with a ring of metal and a coil around.
void testCircle ()
 Tests with a circle of metal.
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.
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.
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.
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.
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.
void testRing ()
 Tests with a ring of metal.
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.
void testMaxwell_PMC_H_Ring_DD (concepts::EddyGeometry2D &geom)
 Tests the Eddy-Current model with a circle of metal.
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.
void testMaxwellRingSolvers ()
 Tests the Maxwell's equations with a ring of metal and a coil around with different solvers.

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

Private Member Functions

bool originalConstants_ () const
 Returns true, if the original constants are taken.
void testMaxwellSolver (concepts::ModelControl< hp2D::Maxwell2D_H_Base > &control, enum hp2D::Maxwell2D_H_Base::solverType type, bool diagPrecond, Real &residual, Real &solvetime)
void testMaxwellSolvers (concepts::EddyGeometry2D &geom, std::string probStr)
void testMaxwellSolversDD (concepts::EddyGeometry2D &geom, std::string probStr)

Private Attributes

concepts::MaxwellBoundary bc_
 Type of boundary condition.
Real eps_
const Real eps_
const bool graphics_
const Real j0_
Real j0_
const Real mu_
Real mu_
Real omega_
const Real omega_
concepts::InOutParameters output_
const uint pmax_
const Real sigma_
Real sigma_

Detailed Description

Definition at line 21 of file Eddy2D_H_Ring.hh.


Constructor & Destructor Documentation

test::Eddy2DRingTest::Eddy2DRingTest ( const uint  pmax = 3,
const bool  graphics = false 
)
virtual test::Eddy2DRingTest::~Eddy2DRingTest ( ) [inline, virtual]

Definition at line 24 of file Eddy2D_H_Ring.hh.

test::Eddy2DRingTest::Eddy2DRingTest ( const uint  pmax = 3,
const Real  sigma = 1,
const Real  epsilon = 1e-8,
const bool  graphics = false 
)
virtual test::Eddy2DRingTest::~Eddy2DRingTest ( ) [inline, virtual]

Definition at line 26 of file Eddy2D_H_Ring.hh.


Member Function Documentation

void test::TestCase::_succeed ( ) [inline, inherited]

Explicitly succeds a test.

Definition at line 109 of file testcase.hh.

void test::TestCase::do_fail ( const string &  lbl,
const char *  fname,
long  lineno 
) [protected, inherited]

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

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 
) [protected, inherited]

Internal function to do a numerical test.

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 
) [protected, inherited]
bool test::TestCase::do_test ( bool  cond,
const string &  lbl,
const char *  fname,
long  lineno 
) [protected, inherited]

Internal function to do a test.

long test::TestCase::getNumFailed ( ) const [inline, inherited]

Returns number of failed tests.

Definition at line 102 of file testcase.hh.

long test::TestCase::getNumPassed ( ) const [inline, inherited]

Returns number of passed tests.

Definition at line 100 of file testcase.hh.

const ostream* test::TestCase::getStream ( ) const [inline, inherited]

Returns output stream.

Definition at line 104 of file testcase.hh.

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

Returns true, if the original constants are taken.

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.
virtual void test::TestCase::reset ( ) [inline, virtual, inherited]

Resets the counters for the failed and passed tests.

Definition at line 116 of file testcase.hh.

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

Runs the tests. Must be overwritten by the specialization.

Implements test::TestCase.

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

Runs the tests. Must be overwritten by the specialization.

Implements test::TestCase.

void test::TestCase::setStream ( ostream *  osptr) [inline, inherited]

Sets the output stream.

Definition at line 106 of file testcase.hh.

void test::Eddy2DRingTest::testCircle ( )

Tests with a circle of metal.

void test::Eddy2DRingTest::testEddyCircle ( )

Tests the Eddy-Current model with a circle of metal.

void test::Eddy2DRingTest::testEddyRing ( )

Tests the Eddy-Current model with a ring of metal.

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.

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.

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.

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.

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.

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.

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.

void test::Eddy2DRingTest::testMaxwell_PMC_H_Ring_DD ( concepts::EddyGeometry2D geom)

Tests the Eddy-Current model with a circle of metal.

void test::Eddy2DRingTest::testMaxwellCircle ( )

Tests the Maxwell's equations with a circle of metal and a coil around.

void test::Eddy2DRingTest::testMaxwellRing ( )

Tests the Maxwell's equations with a ring of metal and a coil around.

void test::Eddy2DRingTest::testMaxwellRingSolvers ( )

Tests the Maxwell's equations with a ring of metal and a coil around with different solvers.

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]
void test::Eddy2DRingTest::testMaxwellSolvers ( concepts::EddyGeometry2D geom,
std::string  probStr 
) [private]
void test::Eddy2DRingTest::testMaxwellSolversDD ( concepts::EddyGeometry2D geom,
std::string  probStr 
) [private]
void test::Eddy2DRingTest::testRing ( )

Tests with a ring of metal.


Member Data Documentation

Type of boundary condition.

Definition at line 93 of file Eddy2D_H_Ring.hh.

Definition at line 89 of file Eddy2D_H_Ring.hh.

const Real test::Eddy2DRingTest::eps_ [private]

Definition at line 52 of file Eddy2D_H_Ring.hh.

const bool test::Eddy2DRingTest::graphics_ [private]

Definition at line 48 of file Eddy2D_H_Ring.hh.

const Real test::Eddy2DRingTest::j0_ [private]

Definition at line 54 of file Eddy2D_H_Ring.hh.

Real test::Eddy2DRingTest::j0_ [private]

Definition at line 91 of file Eddy2D_H_Ring.hh.

const Real test::Eddy2DRingTest::mu_ [private]

Definition at line 53 of file Eddy2D_H_Ring.hh.

Real test::Eddy2DRingTest::mu_ [private]

Definition at line 90 of file Eddy2D_H_Ring.hh.

Definition at line 87 of file Eddy2D_H_Ring.hh.

const Real test::Eddy2DRingTest::omega_ [private]

Definition at line 50 of file Eddy2D_H_Ring.hh.

Definition at line 45 of file Eddy2D_H_Ring.hh.

const uint test::Eddy2DRingTest::pmax_ [private]

Definition at line 47 of file Eddy2D_H_Ring.hh.

const Real test::Eddy2DRingTest::sigma_ [private]

Definition at line 51 of file Eddy2D_H_Ring.hh.

Definition at line 88 of file Eddy2D_H_Ring.hh.


The documentation for this class was generated from the following files:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)