Class documentation of Concepts

Loading...
Searching...
No Matches

#include <Maxwell2D_H.hh>

Inheritance diagram for hp2D::Maxwell2D_H_Base:
hp2D::AdaptiveModel< Cmplx > concepts::MaxwellModel concepts::MaxwellBoundary concepts::AdaptiveModel< F, dim > concepts::Model< F > concepts::OutputOperator hp2D::Maxwell2D_H hp2D::Maxwell2D_H_DD

Public Types

enum  solverType {
  SUPERLU = 0 , SUPERLU2 = 1 , BICGSTAB = 2 , BICGSTAB2 = 3 ,
  BICGSTABSUPERLU = 4
}
 Type of the solver. More...
 
typedef F type
 
enum  boundaryType { PMC = 0 , PEC = 1 , MAX_TYPE }
 

Public Member Functions

 Maxwell2D_H_Base (concepts::EddyGeometry2D &geom, enum boundaryType bType=PMC, enum solverType type=SUPERLU, bool diagPrecond=true, bool afterIter=false, const Real eps=EPS0, const Real omega=OMEGA50, const Real mu=MU0, const uint geomRefAttrib=100)
 
 Maxwell2D_H_Base (concepts::EddyGeometry2D &geom, InputMaxwell2D_H &input, const uint geomRefAttrib=100)
 
void rebuildMesh (const uint l=0, const uint p=1, const uint g=0, const uint subdiv=X|Y)
 
void rebuildMesh (concepts::InputAdaptiveModels &input)
 
virtual Space< Real > & space () const =0
 Returns the space.
 
const Vector< F > * solution ()
 Returns solution vector.
 
virtual Real dissipation ()=0
 Return dissipation power loss.
 
virtual Real magnEnergy ()=0
 Return magnetic energy.
 
const boundaryType bType () const
 Returns boundary type.
 
boundaryTypebType ()
 
const std::string bTypeStr () const
 Returns name of boundary type as string.
 

Protected Types

enum  subdivTypes
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 
virtual const std::string mshAbbr_ ()
 Mesh abbreviation string.
 
concepts::SparseMatrix< Cmplx > * laplaceMatrix_ (concepts::Space< Real > &spc, concepts::SparseMatrix< Cmplx > *S)
 Calculate stiffness matrix and add's it to system matrix S.
 
concepts::SparseMatrix< Real > * identityMatrix_ (concepts::Space< Real > &spc, concepts::SparseMatrix< Cmplx > *S)
 Calculate identity matrix and add's it to system matrix S.
 
void linearform_ ()
 Calculate the load vector, assumes sigma = 0 inside the coil.
 
virtual void rebuildMesh_ (const uint l=0, const uint p=1, const uint g=0, const uint subdiv=X|Y)
 Rebuilds only the mesh and sets the polynomial degrees.
 
virtual concepts::Meshmesh_ ()
 Mesh.
 
virtual hpFullprebuild_ ()=0
 Space Prebuilder.
 
virtual void solve_ ()=0
 Method for solving.
 

Protected Attributes

concepts::EddyGeometry2Dgeom_
 Mesh and material constants (sigma, j0)
 
std::unique_ptr< concepts::BoundaryConditionsbc_
 Boundary conditions.
 
enum solverType type_
 Solver type.
 
bool diagPrecond_
 Using diagonal preconditioning.
 
bool afterIter_
 Nachiteration.
 
bool statusAfterIter_
 
std::unique_ptr< concepts::Vector< Cmplx > > residual_
 
std::unique_ptr< Real > residualNorm_
 Euclidian norm of the residual of solving the linear system.
 
std::unique_ptr< concepts::Vector< Cmplx > > rhs_
 
concepts::PiecewiseFormulaFun< Cmplx, Real > iOmegaEps_plus_Sigma_Inv_
 Piecewise constant formula.
 
Real eps_
 Dielectricity constant.
 
Real omega_
 Angular frequency.
 
const Real mu_
 Permeability constant.
 
std::unique_ptr< Real > dissipation_
 Dissipation power loss.
 
std::unique_ptr< Real > magnEnergy_
 Magnetic energy.
 
double solvetime_
 Time to solve the system, to build the matrices, to rebuild the space.
 
double matrixtime_
 
double spacetime_
 
uint iterations_
 Number of iterations for iterative solver.
 
const uint geomRefAttr_
 Attribute of vertices or edges for geometric refinement.
 
std::unique_ptr< Vector< F > > sol_
 Solution vector.
 
const std::string problemName_
 Name of the problem.
 

Friends

class concepts::ModelControl< Maxwell2D_H_Base >
 

Detailed Description

Base class for calculating Eddy current problem with Maxwell modell in h formulation.

Author
Kersten Schmidt, 2005

Definition at line 36 of file Maxwell2D_H.hh.

Member Typedef Documentation

◆ type

template<class F >
typedef F concepts::Model< F >::type
inherited

Definition at line 59 of file models.hh.

Member Enumeration Documentation

◆ boundaryType

Boundary type

Either perfect magnetic conductor (PMC) or perfect electric conductor (PEC). Wether it's dirichlet or neumann boundary is dependent from the formulation.

Definition at line 27 of file maxwell.hh.

◆ solverType

Type of the solver.

Definition at line 42 of file Maxwell2D_H.hh.

◆ subdivTypes

enum hp2D::AdaptiveModel::subdivTypes
protectedinherited

Definition at line 83 of file adaptiveModels.hh.

Constructor & Destructor Documentation

◆ Maxwell2D_H_Base()

hp2D::Maxwell2D_H_Base::Maxwell2D_H_Base ( concepts::EddyGeometry2D geom,
enum boundaryType  bType = PMC,
enum solverType  type = SUPERLU,
bool  diagPrecond = true,
bool  afterIter = false,
const Real  eps = EPS0,
const Real  omega = OMEGA50,
const Real  mu = MU0,
const uint  geomRefAttrib = 100 
)

Constructor

Parameters
geomgeometry, conductivity and source currents
bTypetype of boundary condition
typesolver type
diagPrecondflag for preconditioning with diagonal matrix
aterIterflag for after iterations
epsdielectricity constant
omegaangular frequency in 1/s
mupermeability constant in Ohm*s/m
geomRefAttribattrib for geometric refinement

◆ ~Maxwell2D_H_Base()

virtual hp2D::Maxwell2D_H_Base::~Maxwell2D_H_Base ( )
inlinevirtual

Definition at line 63 of file Maxwell2D_H.hh.

Member Function Documentation

◆ bType() [1/2]

boundaryType & concepts::MaxwellBoundary::bType ( )
inlineinherited

Definition at line 34 of file maxwell.hh.

◆ bType() [2/2]

const boundaryType concepts::MaxwellBoundary::bType ( ) const
inlineinherited

Returns boundary type.

Definition at line 33 of file maxwell.hh.

◆ bTypeStr()

const std::string concepts::MaxwellBoundary::bTypeStr ( ) const
inlineinherited

Returns name of boundary type as string.

Definition at line 36 of file maxwell.hh.

◆ dissipation()

virtual Real concepts::MaxwellModel::dissipation ( )
pure virtualinherited

Return dissipation power loss.

Implemented in hp2D::Eddy2D_E, hp2D::Eddy2D_H, hp2D::Maxwell2D_E, hp2D::Maxwell2D_H, and hp2D::Maxwell2D_H_DD.

◆ info()

virtual std::ostream & hp2D::Maxwell2D_H_Base::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Model< F >.

Reimplemented in hp2D::Maxwell2D_H, and hp2D::Maxwell2D_H_DD.

◆ magnEnergy()

virtual Real concepts::MaxwellModel::magnEnergy ( )
pure virtualinherited

◆ mesh_()

virtual concepts::Mesh & hp2D::AdaptiveModel< Cmplx >::mesh_ ( )
inlineprotectedvirtualinherited

Mesh.

Implements concepts::Model< F >.

Definition at line 87 of file adaptiveModels.hh.

◆ mshAbbr_()

virtual const std::string hp2D::Maxwell2D_H_Base::mshAbbr_ ( )
inlineprotectedvirtual

Mesh abbreviation string.

Implements concepts::Model< F >.

Definition at line 67 of file Maxwell2D_H.hh.

◆ prebuild_()

virtual hpFull & hp2D::AdaptiveModel< Cmplx >::prebuild_ ( )
protectedpure virtualinherited

◆ rebuildMesh()

template<class F , uint dim>
void concepts::AdaptiveModel< F, dim >::rebuildMesh ( const uint  l = 0,
const uint  p = 1,
const uint  g = 0,
const uint  subdiv = X|Y 
)
inherited

Rebuilds only the mesh and sets the polynomial degrees

Parameters
lnumber of uniform refinements
pnumber of polynomial enlargements
gnumber of geometric refinements
subdivpossibility to restrict subdivision strategy for geometric refinement

◆ rebuildMesh_()

virtual void hp2D::AdaptiveModel< Cmplx >::rebuildMesh_ ( const uint  l = 0,
const uint  p = 1,
const uint  g = 0,
const uint  subdiv = X | Y 
)
protectedvirtualinherited

Rebuilds only the mesh and sets the polynomial degrees.

Implements concepts::AdaptiveModel< F, dim >.

◆ solution()

template<class F >
const Vector< F > * concepts::Model< F >::solution ( )
inlineinherited

Returns solution vector.

Definition at line 67 of file models.hh.

◆ space()

template<class F >
virtual Space< Real > & concepts::Model< F >::space ( ) const
pure virtualinherited

Friends And Related Symbol Documentation

◆ concepts::ModelControl< Maxwell2D_H_Base >

friend class concepts::ModelControl< Maxwell2D_H_Base >
friend

Definition at line 240 of file Maxwell2D_H.hh.

Member Data Documentation

◆ afterIter_

bool hp2D::Maxwell2D_H_Base::afterIter_
protected

Nachiteration.

Definition at line 88 of file Maxwell2D_H.hh.

◆ bc_

std::unique_ptr<concepts::BoundaryConditions> hp2D::Maxwell2D_H_Base::bc_
protected

Boundary conditions.

Definition at line 82 of file Maxwell2D_H.hh.

◆ diagPrecond_

bool hp2D::Maxwell2D_H_Base::diagPrecond_
protected

Using diagonal preconditioning.

Definition at line 86 of file Maxwell2D_H.hh.

◆ dissipation_

std::unique_ptr<Real> hp2D::Maxwell2D_H_Base::dissipation_
protected

Dissipation power loss.

Definition at line 103 of file Maxwell2D_H.hh.

◆ eps_

Real hp2D::Maxwell2D_H_Base::eps_
protected

Dielectricity constant.

Definition at line 97 of file Maxwell2D_H.hh.

◆ geom_

concepts::EddyGeometry2D& hp2D::Maxwell2D_H_Base::geom_
protected

Mesh and material constants (sigma, j0)

Definition at line 80 of file Maxwell2D_H.hh.

◆ geomRefAttr_

const uint hp2D::AdaptiveModel< Cmplx >::geomRefAttr_
protectedinherited

Attribute of vertices or edges for geometric refinement.

Definition at line 91 of file adaptiveModels.hh.

◆ iOmegaEps_plus_Sigma_Inv_

concepts::PiecewiseFormulaFun<Cmplx, Real> hp2D::Maxwell2D_H_Base::iOmegaEps_plus_Sigma_Inv_
protected

Piecewise constant formula.

\[(i \omega \varepsilon_0 + \sigma)^-1\]

Definition at line 95 of file Maxwell2D_H.hh.

◆ iterations_

uint hp2D::Maxwell2D_H_Base::iterations_
protected

Number of iterations for iterative solver.

Definition at line 109 of file Maxwell2D_H.hh.

◆ magnEnergy_

std::unique_ptr<Real> hp2D::Maxwell2D_H_Base::magnEnergy_
protected

Magnetic energy.

Definition at line 105 of file Maxwell2D_H.hh.

◆ matrixtime_

double hp2D::Maxwell2D_H_Base::matrixtime_
protected

Definition at line 107 of file Maxwell2D_H.hh.

◆ mu_

const Real hp2D::Maxwell2D_H_Base::mu_
protected

Permeability constant.

Definition at line 101 of file Maxwell2D_H.hh.

◆ omega_

Real hp2D::Maxwell2D_H_Base::omega_
protected

Angular frequency.

Definition at line 99 of file Maxwell2D_H.hh.

◆ problemName_

template<class F >
const std::string concepts::Model< F >::problemName_
protectedinherited

Name of the problem.

Definition at line 82 of file models.hh.

◆ residual_

std::unique_ptr<concepts::Vector<Cmplx> > hp2D::Maxwell2D_H_Base::residual_
protected

Definition at line 89 of file Maxwell2D_H.hh.

◆ residualNorm_

std::unique_ptr<Real> hp2D::Maxwell2D_H_Base::residualNorm_
protected

Euclidian norm of the residual of solving the linear system.

Definition at line 91 of file Maxwell2D_H.hh.

◆ rhs_

std::unique_ptr<concepts::Vector<Cmplx> > hp2D::Maxwell2D_H_Base::rhs_
protected

Definition at line 93 of file Maxwell2D_H.hh.

◆ sol_

template<class F >
std::unique_ptr<Vector<F> > concepts::Model< F >::sol_
protectedinherited

Solution vector.

Definition at line 78 of file models.hh.

◆ solvetime_

double hp2D::Maxwell2D_H_Base::solvetime_
protected

Time to solve the system, to build the matrices, to rebuild the space.

Definition at line 107 of file Maxwell2D_H.hh.

◆ spacetime_

double hp2D::Maxwell2D_H_Base::spacetime_
protected

Definition at line 107 of file Maxwell2D_H.hh.

◆ statusAfterIter_

bool hp2D::Maxwell2D_H_Base::statusAfterIter_
protected

Definition at line 88 of file Maxwell2D_H.hh.

◆ type_

enum solverType hp2D::Maxwell2D_H_Base::type_
protected

Solver type.

Definition at line 84 of file Maxwell2D_H.hh.


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