Class for calculating Poisson'equations in 2D. More...
#include <Poisson2D.hh>


Public Member Functions | |
| void | basisFunctions (const std::string path="") |
| Writes matlab graphics files for each basis function. | |
| 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. | |
| virtual void | graphicsOut (const uint numPoints, const std::string path="") |
| Writes matlab graphics files. | |
| virtual void | loadSolution (const std::string vectorFile) |
Loads solution vector from vectorFile. | |
| virtual void | loadSolution (const uint l=0, const uint p=1, const uint g=0, const std::string path="") |
Loads solution vector from standard file in path with use of l, p and g. | |
| void | matrixBuild (const uint l=0, const uint p=1, const uint g=0, const std::string matrixFile="") |
| Build the space, matrices and the load vector. | |
| void | matrixBuild (InputModels &input) |
| Poisson2D (concepts::EddyGeometry2D &geom) | |
| void | solve (const uint l=0, const uint p=1, const uint g=0, const std::string vectorFile="", const std::string matrixFile="") |
| Build the space, matrices and the load vector and solve the system. | |
| void | solve (InputModels &input) |
| const hp2D::Space * | space () const |
| void | spaceBuild (const uint l=0, const uint p=1, const uint g=0) |
| Builds only the space. | |
| virtual | ~Poisson2D () |
Protected Member Functions | |
| std::string | filename_ (const std::string varname, const std::string subpath, const bool p=false) |
| Gives a file name, which consists of p, l, g. | |
| void | formulaOut_ (const concepts::PiecewiseFormulaBase< G > &frm, const std::string frmstr, const std::string path="") |
| graphical output of formulas | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
| virtual concepts::Mesh2 & | mesh_ () |
| Mesh. | |
| virtual const std::string | mshAbbr_ () |
| Mesh abbreviation string. | |
Protected Attributes | |
| std::auto_ptr < concepts::BoundaryConditions > | bc_ |
| Boundary conditions. | |
| const uint | geomRefAttr_ |
| Attribute of vertices or edges for geometric refinement. | |
| std::string | matrixFile_ |
| matlab file for matrices and load vector output | |
| concepts::InOutParameters | parameters_ |
| Parameters of the calculation. | |
| const std::string | problemName_ |
| Name of the problem. | |
| std::auto_ptr < concepts::Vector< Real > > | sol_ |
| Solution vector. | |
| std::auto_ptr< hp2D::Space > | spc_ |
| FEM space. | |
| std::string | vectorFile_ |
| file for solution output, which can be reloaded into concepts | |
Private Member Functions | |
| void | constructor_ () |
| private constructor | |
| virtual void | dataOut_ () |
| Collect the parameters. | |
| void | laplaceMatrix_ () |
| Calculate stiffness matrix. | |
| void | linearform_ () |
| Calculate the load vector, assumes sigma = 0 inside the coil. | |
| virtual void | matrices_ () |
| Building the matrices. | |
| virtual void | solve_ () |
| Method for solving, throws exception when it wasn't successfull. | |
Private Attributes | |
| std::auto_ptr < concepts::SparseMatrix< Real > > | A_ |
| Stiffness matrix. | |
| concepts::EddyGeometry2D & | geom_ |
| Mesh and material constants (sigma, j0) | |
| std::auto_ptr < concepts::Vector< Real > > | rhs_ |
Class for calculating Poisson'equations in 2D.
Definition at line 28 of file Poisson2D.hh.
| hp2D::Poisson2D::Poisson2D | ( | concepts::EddyGeometry2D & | geom | ) |
| virtual hp2D::Poisson2D::~Poisson2D | ( | ) | [inline, virtual] |
Definition at line 31 of file Poisson2D.hh.
| void hp2D::Models< Real >::basisFunctions | ( | const std::string | path = "" | ) | [inherited] |
Writes matlab graphics files for each basis function.
| void hp2D::Poisson2D::constructor_ | ( | ) | [private] |
private constructor
| virtual void hp2D::Models< Real >::dataOut | ( | concepts::InOutParameters & | parameters, |
| const bool | store = false, |
||
| const std::string | path = "" |
||
| ) | [virtual, inherited] |
Append the parameters of the calculation to parameters and writes it in matlab format if path is given.
| virtual void hp2D::Poisson2D::dataOut_ | ( | ) | [private, virtual] |
Collect the parameters.
Implements hp2D::Models< Real >.
| std::string hp2D::Models< Real >::filename_ | ( | const std::string | varname, |
| const std::string | subpath, | ||
| const bool | p = false |
||
| ) | [protected, inherited] |
Gives a file name, which consists of p, l, g.
| void hp2D::Models< Real >::formulaOut_ | ( | const concepts::PiecewiseFormulaBase< G > & | frm, |
| const std::string | frmstr, | ||
| const std::string | path = "" |
||
| ) | [protected, inherited] |
graphical output of formulas
| virtual void hp2D::Poisson2D::graphicsOut | ( | const uint | numPoints, |
| const std::string | path = "" |
||
| ) | [virtual] |
Writes matlab graphics files.
| numPoints | number of points per cell in one direction |
Implements hp2D::Models< Real >.
| virtual std::ostream& hp2D::Poisson2D::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from hp2D::Models< Real >.
| void hp2D::Poisson2D::laplaceMatrix_ | ( | ) | [private] |
Calculate stiffness matrix.
| void hp2D::Poisson2D::linearform_ | ( | ) | [private] |
Calculate the load vector, assumes sigma = 0 inside the coil.
| virtual void hp2D::Models< Real >::loadSolution | ( | const std::string | vectorFile | ) | [virtual, inherited] |
Loads solution vector from vectorFile.
| virtual void hp2D::Models< Real >::loadSolution | ( | const uint | l = 0, |
| const uint | p = 1, |
||
| const uint | g = 0, |
||
| const std::string | path = "" |
||
| ) | [virtual, inherited] |
Loads solution vector from standard file in path with use of l, p and g.
| virtual void hp2D::Poisson2D::matrices_ | ( | ) | [private, virtual] |
Building the matrices.
Implements hp2D::Models< Real >.
| void hp2D::Models< Real >::matrixBuild | ( | const uint | l = 0, |
| const uint | p = 1, |
||
| const uint | g = 0, |
||
| const std::string | matrixFile = "" |
||
| ) | [inherited] |
Build the space, matrices and the load vector.
| void hp2D::Models< Real >::matrixBuild | ( | InputModels< Real > & | input | ) | [inherited] |
| virtual concepts::Mesh2& hp2D::Poisson2D::mesh_ | ( | ) | [inline, protected, virtual] |
Mesh.
Implements hp2D::Models< Real >.
Definition at line 41 of file Poisson2D.hh.

| virtual const std::string hp2D::Poisson2D::mshAbbr_ | ( | ) | [inline, protected, virtual] |
Mesh abbreviation string.
Implements hp2D::Models< Real >.
Definition at line 43 of file Poisson2D.hh.

| void hp2D::Models< Real >::solve | ( | const uint | l = 0, |
| const uint | p = 1, |
||
| const uint | g = 0, |
||
| const std::string | vectorFile = "", |
||
| const std::string | matrixFile = "" |
||
| ) | [inherited] |
Build the space, matrices and the load vector and solve the system.
| void hp2D::Models< Real >::solve | ( | InputModels< Real > & | input | ) | [inherited] |
| virtual void hp2D::Poisson2D::solve_ | ( | ) | [private, virtual] |
Method for solving, throws exception when it wasn't successfull.
Implements hp2D::Models< Real >.
| const hp2D::Space* hp2D::Models< Real >::space | ( | ) | const [inline, inherited] |
| void hp2D::Models< Real >::spaceBuild | ( | const uint | l = 0, |
| const uint | p = 1, |
||
| const uint | g = 0 |
||
| ) | [inherited] |
Builds only the space.
std::auto_ptr<concepts::SparseMatrix<Real> > hp2D::Poisson2D::A_ [private] |
Stiffness matrix.
Definition at line 50 of file Poisson2D.hh.
std::auto_ptr<concepts::BoundaryConditions> hp2D::Models< Real >::bc_ [protected, inherited] |
concepts::EddyGeometry2D& hp2D::Poisson2D::geom_ [private] |
Mesh and material constants (sigma, j0)
Definition at line 48 of file Poisson2D.hh.
const uint hp2D::Models< Real >::geomRefAttr_ [protected, inherited] |
std::string hp2D::Models< Real >::matrixFile_ [protected, inherited] |
concepts::InOutParameters hp2D::Models< Real >::parameters_ [protected, inherited] |
const std::string hp2D::Models< Real >::problemName_ [protected, inherited] |
std::auto_ptr<concepts::Vector<Real> > hp2D::Poisson2D::rhs_ [private] |
Definition at line 52 of file Poisson2D.hh.
std::auto_ptr<concepts::Vector<Real > > hp2D::Models< Real >::sol_ [protected, inherited] |
std::auto_ptr<hp2D::Space> hp2D::Models< Real >::spc_ [protected, inherited] |
std::string hp2D::Models< Real >::vectorFile_ [protected, inherited] |