Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
hp2D::Poisson2D Class Reference

Class for calculating Poisson'equations in 2D. More...

#include <Poisson2D.hh>

Inheritance diagram for hp2D::Poisson2D:
Inheritance graph
[legend]
Collaboration diagram for hp2D::Poisson2D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void basisFunctions (const std::string path="")
 Writes matlab graphics files for each basis function.
virtual void dataOut (concepts::InOutParameters &parameters, 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::Spacespace () 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::Mesh2mesh_ ()
 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::Spacespc_
 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::EddyGeometry2Dgeom_
 Mesh and material constants (sigma, j0)
std::auto_ptr
< concepts::Vector< Real > > 
rhs_

Detailed Description

Class for calculating Poisson'equations in 2D.

Author:
Kersten Schmidt, 2005

Definition at line 28 of file Poisson2D.hh.


Constructor & Destructor Documentation

hp2D::Poisson2D::Poisson2D ( concepts::EddyGeometry2D geom)
virtual hp2D::Poisson2D::~Poisson2D ( ) [inline, virtual]

Definition at line 31 of file Poisson2D.hh.


Member Function Documentation

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.

Parameters:
numPointsnumber 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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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]

Definition at line 87 of file Models.hh.

void hp2D::Models< Real >::spaceBuild ( const uint  l = 0,
const uint  p = 1,
const uint  g = 0 
) [inherited]

Builds only the space.


Member Data Documentation

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]

Boundary conditions.

Definition at line 101 of file Models.hh.

Mesh and material constants (sigma, j0)

Definition at line 48 of file Poisson2D.hh.

const uint hp2D::Models< Real >::geomRefAttr_ [protected, inherited]

Attribute of vertices or edges for geometric refinement.

Definition at line 97 of file Models.hh.

std::string hp2D::Models< Real >::matrixFile_ [protected, inherited]

matlab file for matrices and load vector output

Definition at line 105 of file Models.hh.

concepts::InOutParameters hp2D::Models< Real >::parameters_ [protected, inherited]

Parameters of the calculation.

Definition at line 125 of file Models.hh.

const std::string hp2D::Models< Real >::problemName_ [protected, inherited]

Name of the problem.

Definition at line 95 of file Models.hh.

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]

Solution vector.

Definition at line 103 of file Models.hh.

std::auto_ptr<hp2D::Space> hp2D::Models< Real >::spc_ [protected, inherited]

FEM space.

Definition at line 99 of file Models.hh.

std::string hp2D::Models< Real >::vectorFile_ [protected, inherited]

file for solution output, which can be reloaded into concepts

Definition at line 107 of file Models.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)