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

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

#include <models.hh>

Inheritance diagram for concepts::ModelControl< F >:
Inheritance graph
[legend]
Collaboration diagram for concepts::ModelControl< F >:
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.
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 F & model ()
 Returns the model.
virtual const F & model () const
 ModelControl (F &model)
 Constructor.
const concepts::InOutParametersparameters () const
 Return parameters of the calculation.
void writeSolution (const std::string vectorFile, bool verbose=true)
 Writes solution vector to vectorFile.

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.
template<class G >
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

F & model_
 The model.
concepts::InOutParameters parameters_
 Parameters of the calculation.

Detailed Description

template<class F>
class concepts::ModelControl< F >

Definition at line 173 of file models.hh.


Constructor & Destructor Documentation

template<class F >
concepts::ModelControl< F >::ModelControl ( F &  model) [inline]

Constructor.

Definition at line 176 of file models.hh.


Member Function Documentation

template<class F>
void concepts::ModelControlBase< F >::basisFunctions ( const std::string  path = "") [inherited]

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

template<class F>
virtual void concepts::ModelControlBase< F >::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.

template<class F>
virtual std::string concepts::ModelControlBase< F >::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
template<class F >
template<class G >
void concepts::ModelControlBase< F >::formulaOut_ ( const concepts::PiecewiseFormulaBase< G > &  frm,
const std::string  frmstr,
const std::string  name 
) [protected, inherited]

graphical output of formulas

Definition at line 160 of file models.hh.

template<class F>
virtual std::ostream& concepts::ModelControlBase< F >::info ( std::ostream &  os) const [protected, virtual, inherited]
template<class F>
void concepts::ModelControlBase< F >::loadSolution ( const std::string  vectorFile) [inherited]

Loads solution vector from vectorFile.

template<class F>
virtual F& concepts::ModelControlBase< F >::model ( ) [inline, virtual, inherited]
template<class F>
virtual const F& concepts::ModelControlBase< F >::model ( ) const [inline, virtual, inherited]
template<class F>
void concepts::ModelControlBase< F >::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.

template<class F>
const concepts::InOutParameters& concepts::ModelControlBase< F >::parameters ( ) const [inline, inherited]

Return parameters of the calculation.

Definition at line 120 of file models.hh.

template<class F>
void concepts::ModelControlBase< F >::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

template<class F>
F& concepts::ModelControlBase< F >::model_ [protected, inherited]

The model.

Definition at line 126 of file models.hh.

template<class F>
concepts::InOutParameters concepts::ModelControlBase< F >::parameters_ [protected, inherited]

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)