Maxwell2D_H.hh
Base class for calculating Eddy current problem with Maxwell modell in h formulation.
Definition: Maxwell2D_H.hh:38
std::unique_ptr< concepts::Vector< Cmplx > > residual_
Definition: Maxwell2D_H.hh:89
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::unique_ptr< concepts::Vector< Cmplx > > rhs_
Definition: Maxwell2D_H.hh:93
Definition: hpAdaptiveSpaceH1.hh:63
Maxwell2D_H_Base(concepts::EddyGeometry2D &geom, InputMaxwell2D_H &input, const uint geomRefAttrib=100)
void solverType(enum hp2D::Maxwell2D_H_Base::solverType type, bool diagPrecond)
Change the solver type.
virtual ~ModelControl()
Definition: Maxwell2D_H.hh:351
virtual std::ostream & description(std::ostream &os) const
Returns description for help.
virtual ~ModelControl()
Definition: Maxwell2D_H.hh:395
void graphicsOut(const uint numPoints, const std::string path="")
Writes matlab graphics files.
Class for calculating Eddy current problem with Maxwell modell in h formulation, with Domain Decompos...
Definition: Maxwell2D_H.hh:186
Maxwell2D_H(concepts::EddyGeometry2D &geom, InputMaxwell2D_H &input, const uint geomRefAttrib=100)
virtual std::ostream & info(std::ostream &os) const
double solvetime_
Time to solve the system, to build the matrices, to rebuild the space.
Definition: Maxwell2D_H.hh:107
virtual ~ModelControl()
Definition: Maxwell2D_H.hh:311
virtual const hp2D::Maxwell2D_H_DD & model() const
Definition: Maxwell2D_H.hh:399
virtual Real solve()
Solves the system and returns the residual.
Helper class for building 2D hp-FEM spaces (space pre builder).
Definition: spacePreBuilder.hh:168
Abstract class for carrying information, which helps for reading input parameters from command line.
Definition: inputParam.hh:24
concepts::EddyGeometry2D & geom_
Mesh and material constants (sigma, j0)
Definition: Maxwell2D_H.hh:80
concepts::PiecewiseFormulaFun< Cmplx, Real > iOmegaEps_plus_Sigma_Inv_
Piecewise constant formula.
Definition: Maxwell2D_H.hh:95
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.
void linearform_()
Calculate the load vector, assumes sigma = 0 inside the coil.
concepts::Sequence< concepts::SparseMatrix< Cmplx > * > S_
Definition: Maxwell2D_H.hh:218
void setEpsilon(const Real epsilon)
Reset the dielectricity constant.
void graphicsOut(const uint numPoints, const std::string path="")
Writes matlab graphics files.
virtual std::ostream & info(std::ostream &os) const
std::unique_ptr< concepts::BoundaryConditions > bc_
Boundary conditions.
Definition: Maxwell2D_H.hh:82
ModelControl(hp2D::Maxwell2D_H_DD &model)
Constructor.
void setEpsilon(const Real epsilon, bool assembleMatrices)
Reset the dielectricity constant and reset the solution vector and the matrices.
std::unique_ptr< concepts::SparseMatrix< Cmplx > > A_
Stiffness and System matrix.
Definition: Maxwell2D_H.hh:167
Class for calculating Eddy current problem with Maxwell modell in h formulation.
Definition: Maxwell2D_H.hh:122
void setOmega(const Real omega, bool assembleMatrices)
Sets the angular frequencies and reset the solution vector and the matrices.
concepts::ElementFormula< concepts::Cmplx2d > * eField()
Returns a pointer to the e-Field.
void setOmega(const Real omega, bool assembleMatrices)
Sets the angular frequencies and reset the solution vector and the matrices.
virtual void solve_()
Method for solving, throws exception when it wasn't successfull.
Definition: models.hh:30
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.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual concepts::DomainDecomp< hpAdaptiveSpaceH1 > & space() const
Definition: Maxwell2D_H.hh:201
ModelControl(hp2D::Maxwell2D_H_Base &model)
Constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual Real solve()=0
Solves the system and returns the residual.
void constructSpace_(const std::string &domainStr)
Constructs the space.
virtual void matrices()
Builds the matrices and the load vector.
void storeMatricesToMatlab(const std::string matrixFile) const
Stores the calculated vectors.
virtual int input(int opt, const char *optarg)
Process an argument and sets input parameter, if found.
void storeMatricesToMatlab(const std::string matrixFile) const
Stores the calculated matrices.
void clear_(concepts::Sequence< F * > &seq)
Definition: Maxwell2D_H.hh:240
virtual std::ostream & letters(std::ostream &os) const
Return letters for the arguments.
Maxwell2D_H_DD(concepts::EddyGeometry2D &geom, InputMaxwell2D_H &input, const uint geomRefAttrib=100, std::string domains="(2)")
Definition: adaptiveModels.hh:78
concepts::ElementFormula< Cmplx > * hField()
Returns a pointer to the h-Field (solution + h0).
Sequence with operations, output operator, and method of the particular element types.
Definition: sequence.hh:39
void setOmega(const Real omega)
Reset the angular frequency.
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
Definition: typedefs.hh:39
void meshAbbreviation(const char *meshAbbr)
Definition: Eddy2D_geometries.hh:54
concepts::Sequence< concepts::SparseMatrix< Cmplx > * > A_
Stiffness and System matrix.
Definition: Maxwell2D_H.hh:218
Helps for reading input parameters for single solving of Maxwell2D_H_Base.
Definition: Maxwell2D_H.hh:257
virtual const hp2D::Maxwell2D_H_Base & model() const
Definition: Maxwell2D_H.hh:316
std::unique_ptr< Real > residualNorm_
Euclidian norm of the residual of solving the linear system.
Definition: Maxwell2D_H.hh:91
virtual ~Maxwell2D_H_DD()
virtual void matrices()
Builds the matrices and the load vector.
void storeMatricesToMatlab(const std::string matrixFile) const
Stores the calculated matrices.
ModelControl(hp2D::Maxwell2D_H &model)
Constructor.
const concepts::Sequence< Real > & omega() const
Returns set of angular frequencies.
Definition: Maxwell2D_H.hh:275
enum concepts::MaxwellBoundary::boundaryType bType_
Boundary condition.
Definition: Maxwell2D_H.hh:288
Abstract class for holding geometry and material for eddy current problems.
Definition: Eddy2D_geometries.hh:29
std::unique_ptr< concepts::SparseMatrix< Cmplx > > S_
Definition: Maxwell2D_H.hh:167
virtual std::ostream & arguments(std::ostream &os) const
Returns argument list as string.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
enum concepts::MaxwellBoundary::boundaryType boundary() const
Returns type of boundary condition.
Definition: Maxwell2D_H.hh:279
virtual void solve_()
Method for solving, throws exception when it wasn't successfull.
concepts::SparseMatrix< Real > * identityMatrix_(concepts::Space< Real > &spc, concepts::SparseMatrix< Cmplx > *S)
Calculate identity matrix and add's it to system matrix S.
concepts::SparseMatrix< Cmplx > * laplaceMatrix_(concepts::Space< Real > &spc, concepts::SparseMatrix< Cmplx > *S)
Calculate stiffness matrix and add's it to system matrix S.
virtual std::ostream & info(std::ostream &os) const
virtual const hp2D::Maxwell2D_H & model() const
Definition: Maxwell2D_H.hh:355
virtual Real solve()
Solves the system and returns the residual.
std::unique_ptr< concepts::DomainDecomp< hp2D::hpAdaptiveSpaceH1 > > spc_
Space.
Definition: Maxwell2D_H.hh:216
InputMaxwell2D_H(concepts::InOutParameters &input)
Constructor.
Maxwell2D_H_DD(concepts::EddyGeometry2D &geom, enum concepts::MaxwellBoundary::boundaryType bType, 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, std::string domains="(2)")
virtual void matrices()=0
Builds the matrices and the load vector.
Class for holding boundary type of Maxwell's problems.
Definition: maxwell.hh:19