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

Public Member Functions | Protected Member Functions | Protected Attributes
concepts::ModelControl< hp2D::Eddy2D_E > Class Template Reference

#include <Eddy2D_E.hh>

Inheritance diagram for concepts::ModelControl< hp2D::Eddy2D_E >:
Inheritance graph
[legend]
Collaboration diagram for concepts::ModelControl< hp2D::Eddy2D_E >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void basisFunctions (const std::string path="")
 Writes matlab graphics files for each basis function of the space of the model.
void checkRanks () const
 Checks the ranks of A and S.
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.
void loadSolution (const std::string vectorFile)
 Loads solution vector from vectorFile.
virtual void matrices ()
 Builds the matrices and the load vector.
virtual hp2D::Eddy2D_Emodel ()
 Returns the model.
virtual const hp2D::Eddy2D_Emodel () const
 ModelControl (hp2D::Eddy2D_E &model)
 Constructor.
const concepts::InOutParametersparameters () const
 Return parameters of the calculation.
hp2D::hpFullprebuild ()
 Returns Space Prebuilder.
virtual Real solve ()
 Solves the system and returns the residual.
void storeMatricesToMatlab (const std::string matrixFile) const
 Stores the calculated vectors and matrices.
void storeMatricesToOctave (const std::string matrixFile) const
void writeSolution (const std::string vectorFile, bool verbose=true)
 Writes solution vector to vectorFile.
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.
void formulaOut_ (const concepts::PiecewiseFormulaBase< G > &frm, const std::string frmstr, const std::string name)
 graphical output of formulas
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
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.

Protected Attributes

Model< Cmplx > & model_
 The model.
concepts::InOutParameters parameters_
 Parameters of the calculation.

Detailed Description

template<>
class concepts::ModelControl< hp2D::Eddy2D_E >

Definition at line 159 of file Eddy2D_E.hh.


Constructor & Destructor Documentation

Constructor.

virtual concepts::ModelControl< hp2D::Eddy2D_E >::~ModelControl ( ) [inline, virtual]

Definition at line 164 of file Eddy2D_E.hh.


Member Function Documentation

void concepts::ModelControlBase< Model< Cmplx > >::basisFunctions ( const std::string  path = "") [inherited]

Writes matlab graphics files for each basis function of the space of the model.

void concepts::ModelControl< hp2D::Eddy2D_E >::checkRanks ( ) const

Checks the ranks of A and S.

virtual void concepts::ModelControlBase< Model< Cmplx > >::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 std::string concepts::ModelControlBase< Model< Cmplx > >::filename_ ( const std::string  varname,
const std::string  path,
const bool  flag = false 
) [protected, virtual, inherited]

Gives a file name for different outputs.

Due to derivation the name can be adopted. At the moment its like "path/varname_mshAbbr".

Parameters:
varnamename of an variable
pathpath
psome flag
void concepts::ModelControlBase< Model< Cmplx > >::formulaOut_ ( const concepts::PiecewiseFormulaBase< G > &  frm,
const std::string  frmstr,
const std::string  name 
) [protected, inherited]

graphical output of formulas

virtual std::ostream& concepts::ModelControl< hp2D::Eddy2D_E >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::ModelControlBase< Model< Cmplx > >.

void concepts::ModelControlBase< Model< Cmplx > >::loadSolution ( const std::string  vectorFile) [inherited]

Loads solution vector from vectorFile.

virtual void concepts::ModelControl< hp2D::Eddy2D_E >::matrices ( ) [virtual]

Builds the matrices and the load vector.

virtual const hp2D::Eddy2D_E& concepts::ModelControl< hp2D::Eddy2D_E >::model ( ) const [inline, virtual]

Reimplemented from concepts::ModelControlBase< Model< Cmplx > >.

Definition at line 169 of file Eddy2D_E.hh.

virtual hp2D::Eddy2D_E& concepts::ModelControl< hp2D::Eddy2D_E >::model ( ) [inline, virtual]

Returns the model.

Reimplemented from concepts::ModelControlBase< Model< Cmplx > >.

Definition at line 166 of file Eddy2D_E.hh.

void concepts::ModelControlBase< Model< Cmplx > >::newfile_ ( std::string &  name,
const std::string  varname,
const std::string  ending 
) [protected, inherited]

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.

const concepts::InOutParameters& concepts::ModelControlBase< Model< Cmplx > >::parameters ( ) const [inline, inherited]

Return parameters of the calculation.

Definition at line 120 of file models.hh.

Returns Space Prebuilder.

Definition at line 182 of file Eddy2D_E.hh.

Here is the call graph for this function:

virtual Real concepts::ModelControl< hp2D::Eddy2D_E >::solve ( ) [virtual]

Solves the system and returns the residual.

void concepts::ModelControl< hp2D::Eddy2D_E >::storeMatricesToMatlab ( const std::string  matrixFile) const

Stores the calculated vectors and matrices.

void concepts::ModelControl< hp2D::Eddy2D_E >::storeMatricesToOctave ( const std::string  matrixFile) const
void concepts::ModelControlBase< Model< Cmplx > >::writeSolution ( const std::string  vectorFile,
bool  verbose = true 
) [inherited]

Writes solution vector to vectorFile.

Writes a message to cout, if not verbose.


Member Data Documentation

Model< Cmplx > & concepts::ModelControlBase< Model< Cmplx > >::model_ [protected, inherited]

The model.

Definition at line 126 of file models.hh.

Parameters of the calculation.

Definition at line 128 of file models.hh.


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

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