Base class for a model. More...

#include <models.hh>

Inheritance diagram for concepts::Model< F >:
concepts::OutputOperator concepts::AdaptiveModel< F, 2 > concepts::AdaptiveModel< F, dim > hp2D::AdaptiveModel< F >

Public Types

typedef F type
 

Public Member Functions

 Model (const std::string problemName)
 Constructor. More...
 
const Vector< F > * solution ()
 Returns solution vector. More...
 
virtual Space< Real > & space () const =0
 Returns the space. More...
 
virtual ~Model ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
virtual Meshmesh_ ()=0
 Mesh. More...
 
virtual const std::string mshAbbr_ ()=0
 Mesh abbreviation string. More...
 
virtual void solve_ ()=0
 Method for solving. More...
 

Protected Attributes

const std::string problemName_
 Name of the problem. More...
 
std::unique_ptr< Vector< F > > sol_
 Solution vector. More...
 

Friends

class ModelControl< Model< F > >
 
class ModelControlBase< Model< F > >
 

Detailed Description

template<class F>
class concepts::Model< F >

Base class for a model.

Author
Kersten Schmidt, 2005

Definition at line 55 of file models.hh.

Member Typedef Documentation

◆ type

template<class F >
typedef F concepts::Model< F >::type

Definition at line 59 of file models.hh.

Constructor & Destructor Documentation

◆ Model()

template<class F >
concepts::Model< F >::Model ( const std::string  problemName)

Constructor.

◆ ~Model()

template<class F >
virtual concepts::Model< F >::~Model ( )
inlinevirtual

Definition at line 63 of file models.hh.

Member Function Documentation

◆ info()

template<class F >
virtual std::ostream& concepts::Model< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in hp2D::Maxwell2D_H_DD, hp2D::Maxwell2D_H, hp2D::Maxwell2D_H_Base, hp2D::Maxwell2D_E, hp2D::Eddy2D_H, and hp2D::Eddy2D_E.

◆ mesh_()

template<class F >
virtual Mesh& concepts::Model< F >::mesh_ ( )
protectedpure virtual

◆ mshAbbr_()

template<class F >
virtual const std::string concepts::Model< F >::mshAbbr_ ( )
protectedpure virtual

Mesh abbreviation string.

Implemented in hp2D::Maxwell2D_H_Base, hp2D::Maxwell2D_E, hp2D::Eddy2D_H, and hp2D::Eddy2D_E.

◆ solution()

template<class F >
const Vector<F>* concepts::Model< F >::solution ( )
inline

Returns solution vector.

Definition at line 67 of file models.hh.

◆ solve_()

template<class F >
virtual void concepts::Model< F >::solve_ ( )
protectedpure virtual

◆ space()

template<class F >
virtual Space<Real>& concepts::Model< F >::space ( ) const
pure virtual

Returns the space.

Friends And Related Function Documentation

◆ ModelControl< Model< F > >

template<class F >
friend class ModelControl< Model< F > >
friend

Definition at line 160 of file models.hh.

◆ ModelControlBase< Model< F > >

template<class F >
friend class ModelControlBase< Model< F > >
friend

Definition at line 160 of file models.hh.

Member Data Documentation

◆ problemName_

template<class F >
const std::string concepts::Model< F >::problemName_
protected

Name of the problem.

Definition at line 82 of file models.hh.

◆ sol_

template<class F >
std::unique_ptr<Vector<F> > concepts::Model< F >::sol_
protected

Solution vector.

Definition at line 78 of file models.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich