#include <Maxwell2D_H.hh>
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 (concepts::EddyGeometry2D &geom, enum concepts::MaxwellBoundary::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 (concepts::EddyGeometry2D &geom, InputMaxwell2D_H &input, const uint geomRefAttrib=100) | |
| virtual hpAdaptiveSpaceH1 & | space () const |
| Returns the space. | |
| virtual Real | dissipation () |
| Return dissipation power loss. | |
| virtual Real | magnEnergy () |
| Return magnetic energy. | |
| concepts::ElementFormula< Cmplx > * | hField () |
| concepts::ElementFormula< concepts::Cmplx2d > * | eField () |
| void | rebuildMesh (const uint l=0, const uint p=1, const uint g=0, const uint subdiv=X|Y) |
| void | rebuildMesh (concepts::InputAdaptiveModels &input) |
| const Vector< F > * | solution () |
| Returns solution vector. | |
| const boundaryType | bType () const |
| Returns boundary type. | |
| boundaryType & | bType () |
| 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 hpFull & | prebuild_ () |
| Space Prebuilder. | |
| 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::Mesh & | mesh_ () |
| Mesh. | |
Protected Attributes | |
| concepts::EddyGeometry2D & | geom_ |
| Mesh and material constants (sigma, j0) | |
| std::unique_ptr< concepts::BoundaryConditions > | bc_ |
| 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 > |
Class for calculating Eddy current problem with Maxwell modell in h formulation.
Definition at line 122 of file Maxwell2D_H.hh.
|
inherited |
|
inherited |
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.
|
inherited |
Type of the solver.
Definition at line 42 of file Maxwell2D_H.hh.
|
protectedinherited |
Definition at line 83 of file adaptiveModels.hh.
| hp2D::Maxwell2D_H::Maxwell2D_H | ( | concepts::EddyGeometry2D & | geom, |
| enum concepts::MaxwellBoundary::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
| geom | geometry, conductivity and source currents |
| bType | type of boundary condition |
| type | solver type |
| diagPrecond | flag for preconditioning with diagonal matrix |
| aterIter | flag for after iterations |
| eps | dielectricity constant |
| omega | angular frequency in 1/s |
| mu | permeability constant in Ohm*s/m |
| geomRefAttrib | attrib for geometric refinement |
|
inlinevirtual |
Definition at line 144 of file Maxwell2D_H.hh.
|
inlineinherited |
Definition at line 34 of file maxwell.hh.
|
inlineinherited |
Returns boundary type.
Definition at line 33 of file maxwell.hh.
|
inlineinherited |
Returns name of boundary type as string.
Definition at line 36 of file maxwell.hh.
|
virtual |
Return dissipation power loss.
Implements concepts::MaxwellModel.
| concepts::ElementFormula< concepts::Cmplx2d > * hp2D::Maxwell2D_H::eField | ( | ) |
Returns a pointer to the e-Field. Solves the problem, if not yet.
| concepts::ElementFormula< Cmplx > * hp2D::Maxwell2D_H::hField | ( | ) |
Returns a pointer to the h-Field (solution + h0). Solves the problem, if not yet.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from hp2D::Maxwell2D_H_Base.
|
virtual |
Return magnetic energy.
Implements concepts::MaxwellModel.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
Mesh abbreviation string.
Implements concepts::Model< F >.
Definition at line 67 of file Maxwell2D_H.hh.
|
inlineprotectedvirtual |
Space Prebuilder.
Implements hp2D::AdaptiveModel< Cmplx >.
Definition at line 162 of file Maxwell2D_H.hh.
|
inherited |
Rebuilds only the mesh and sets the polynomial degrees
| l | number of uniform refinements |
| p | number of polynomial enlargements |
| g | number of geometric refinements |
| subdiv | possibility to restrict subdivision strategy for geometric refinement |
|
protectedvirtualinherited |
Rebuilds only the mesh and sets the polynomial degrees.
Implements concepts::AdaptiveModel< F, dim >.
|
inlineinherited |
|
virtual |
Returns the space.
Implements concepts::Model< F >.
|
friend |
Definition at line 112 of file Maxwell2D_H.hh.
|
protectedinherited |
Nachiteration.
Definition at line 88 of file Maxwell2D_H.hh.
|
protectedinherited |
Boundary conditions.
Definition at line 82 of file Maxwell2D_H.hh.
|
protectedinherited |
Using diagonal preconditioning.
Definition at line 86 of file Maxwell2D_H.hh.
|
protectedinherited |
Dissipation power loss.
Definition at line 103 of file Maxwell2D_H.hh.
|
protectedinherited |
Dielectricity constant.
Definition at line 97 of file Maxwell2D_H.hh.
|
protectedinherited |
Mesh and material constants (sigma, j0)
Definition at line 80 of file Maxwell2D_H.hh.
|
protectedinherited |
Attribute of vertices or edges for geometric refinement.
Definition at line 91 of file adaptiveModels.hh.
|
protectedinherited |
|
protectedinherited |
Number of iterations for iterative solver.
Definition at line 109 of file Maxwell2D_H.hh.
|
protectedinherited |
Magnetic energy.
Definition at line 105 of file Maxwell2D_H.hh.
|
protectedinherited |
Definition at line 107 of file Maxwell2D_H.hh.
|
protectedinherited |
Permeability constant.
Definition at line 101 of file Maxwell2D_H.hh.
|
protectedinherited |
Angular frequency.
Definition at line 99 of file Maxwell2D_H.hh.
|
protectedinherited |
|
protectedinherited |
Definition at line 89 of file Maxwell2D_H.hh.
|
protectedinherited |
Euclidian norm of the residual of solving the linear system.
Definition at line 91 of file Maxwell2D_H.hh.
|
protectedinherited |
Definition at line 93 of file Maxwell2D_H.hh.
|
protectedinherited |
|
protectedinherited |
Time to solve the system, to build the matrices, to rebuild the space.
Definition at line 107 of file Maxwell2D_H.hh.
|
protectedinherited |
Definition at line 107 of file Maxwell2D_H.hh.
|
protectedinherited |
Definition at line 88 of file Maxwell2D_H.hh.
|
protectedinherited |
Solver type.
Definition at line 84 of file Maxwell2D_H.hh.