concepts::ModelControl< hp2D::Maxwell2D_H > Class Reference
#include <Maxwell2D_H.hh>
Public Member Functions | |
void | basisFunctions (const std::string path="") |
Writes matlab graphics files for each basis function of the space of the model. More... | |
virtual void | dataOut (concepts::InOutParameters ¶meters, const bool store=false, const std::string path="") |
Append the parameters of the calculation to parameters and writes it in matlab format if path is given. More... | |
void | graphicsOut (const uint numPoints, const std::string path="") |
Writes matlab graphics files. More... | |
void | loadSolution (const std::string vectorFile) |
Loads solution vector from vectorFile . More... | |
virtual void | matrices () |
Builds the matrices and the load vector. More... | |
virtual hp2D::Maxwell2D_H & | model () |
Returns the model. More... | |
virtual const hp2D::Maxwell2D_H & | model () const |
ModelControl (hp2D::Maxwell2D_H &model) | |
Constructor. More... | |
const concepts::InOutParameters & | parameters () const |
Return parameters of the calculation. More... | |
hp2D::hpFull & | prebuild () |
Returns Space Prebuilder. More... | |
void | setEpsilon (const Real epsilon) |
Reset the dielectricity constant. More... | |
void | setEpsilon (const Real epsilon, bool assembleMatrices) |
Reset the dielectricity constant and reset the solution vector and the matrices. More... | |
void | setOmega (const Real omega) |
Reset the angular frequency. More... | |
void | setOmega (const Real omega, bool assembleMatrices) |
Sets the angular frequencies and reset the solution vector and the matrices. More... | |
virtual Real | solve () |
Solves the system and returns the residual. More... | |
void | solverType (enum hp2D::Maxwell2D_H_Base::solverType type, bool diagPrecond) |
Change the solver type. More... | |
void | storeMatricesToMatlab (const std::string matrixFile) const |
Stores the calculated matrices. More... | |
void | writeSolution (const std::string vectorFile, bool verbose=true) |
Writes solution vector to vectorFile . More... | |
virtual | ~ModelControl () |
Protected Member Functions | |
virtual std::string | filename_ (const std::string varname, const std::string path, const bool flag=false) |
Gives a file name for different outputs. More... | |
void | formulaOut_ (const concepts::PiecewiseFormulaBase< G > &frm, const std::string frmstr, const std::string name) |
graphical output of formulas More... | |
virtual std::ostream & | info (std::ostream &os) const |
void | newfile_ (std::string &name, const std::string varname, const std::string ending) |
Tries, if given file can be opened for writing or if its a path. More... | |
Protected Attributes | |
Model< Cmplx > & | model_ |
The model. More... | |
concepts::InOutParameters | parameters_ |
Parameters of the calculation. More... | |
Detailed Description
Definition at line 346 of file Maxwell2D_H.hh.
Constructor & Destructor Documentation
◆ ModelControl()
concepts::ModelControl< hp2D::Maxwell2D_H >::ModelControl | ( | hp2D::Maxwell2D_H & | model | ) |
Constructor.
◆ ~ModelControl()
|
inlinevirtual |
Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
Definition at line 351 of file Maxwell2D_H.hh.
Member Function Documentation
◆ basisFunctions()
|
inherited |
Writes matlab graphics files for each basis function of the space of the model.
◆ dataOut()
|
virtualinherited |
Append the parameters of the calculation to parameters
and writes it in matlab format if path
is given.
◆ filename_()
|
protectedvirtualinherited |
Gives a file name for different outputs.
Due to derivation the name can be adopted. At the moment its like "path/varname_mshAbbr".
- Parameters
-
varname name of an variable path path p some flag
◆ formulaOut_()
|
protectedinherited |
◆ graphicsOut()
void concepts::ModelControl< hp2D::Maxwell2D_H >::graphicsOut | ( | const uint | numPoints, |
const std::string | path = "" |
||
) |
Writes matlab graphics files.
- Parameters
-
numPoints number of points per cell in one direction
◆ info()
|
protectedvirtual |
Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
◆ loadSolution()
|
inherited |
Loads solution vector from vectorFile
.
◆ matrices()
|
virtual |
Builds the matrices and the load vector.
Implements concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
◆ model() [1/2]
|
inlinevirtual |
Returns the model.
Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
Definition at line 352 of file Maxwell2D_H.hh.
◆ model() [2/2]
|
inlinevirtual |
Reimplemented from concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
Definition at line 355 of file Maxwell2D_H.hh.
◆ newfile_()
|
protectedinherited |
Tries, if given file can be opened for writing or if its a path.
In latter case opens gives back a standard filename with ending
and use of varname
.
If the given string is neither possible to open or a path a empty string is given to name
.
◆ parameters()
|
inlineinherited |
◆ prebuild()
|
inlineinherited |
Returns Space Prebuilder.
Definition at line 338 of file Maxwell2D_H.hh.
◆ setEpsilon() [1/2]
|
inherited |
Reset the dielectricity constant.
◆ setEpsilon() [2/2]
void concepts::ModelControl< hp2D::Maxwell2D_H >::setEpsilon | ( | const Real | epsilon, |
bool | assembleMatrices | ||
) |
Reset the dielectricity constant and reset the solution vector and the matrices.
If assemblesMatrices
is true adapt the vector of right hand side and recalculate the stiffness matrix. To get the changed energies, the system has to be solved again.
◆ setOmega() [1/2]
|
inherited |
Reset the angular frequency.
◆ setOmega() [2/2]
void concepts::ModelControl< hp2D::Maxwell2D_H >::setOmega | ( | const Real | omega, |
bool | assembleMatrices | ||
) |
Sets the angular frequencies and reset the solution vector and the matrices.
If assemblesMatrices
is true adapt the mass matrices, and the vector of right hand side and recalculate the stiffness matrix. To get the changed energies, the system has to be solved again.
◆ solve()
|
virtual |
Solves the system and returns the residual.
Implements concepts::ModelControl< hp2D::Maxwell2D_H_Base >.
◆ solverType()
|
inherited |
Change the solver type.
◆ storeMatricesToMatlab()
void concepts::ModelControl< hp2D::Maxwell2D_H >::storeMatricesToMatlab | ( | const std::string | matrixFile | ) | const |
Stores the calculated matrices.
◆ writeSolution()
|
inherited |
Writes solution vector to vectorFile
.
Writes a message to cout, if not verbose
.
Member Data Documentation
◆ model_
|
protectedinherited |
◆ parameters_
|
protectedinherited |
The documentation for this class was generated from the following file:
- models/Maxwell2D_H.hh