#include <adaptiveModels.hh>

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

Public Types

typedef F type
 

Public Member Functions

 AdaptiveModel (const std::string problemName, const uint geomRefAttr=100)
 Constructor. More...
 
void rebuildMesh (concepts::InputAdaptiveModels &input)
 
void rebuildMesh (const uint l=0, const uint p=1, const uint g=0, const uint subdiv=X|Y)
 Rebuilds only the mesh and sets the polynomial degrees. More...
 
const Vector< F > * solution ()
 Returns solution vector. More...
 
virtual Space< Real > & space () const =0
 Returns the space. More...
 

Protected Types

enum  subdivTypes { NONE = 0, X = 1, Y = 2 }
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 
virtual concepts::Meshmesh_ ()
 Mesh. More...
 
virtual const std::string mshAbbr_ ()=0
 Mesh abbreviation string. More...
 
virtual hpFullprebuild_ ()=0
 Space Prebuilder. More...
 
virtual void rebuildMesh_ (const uint l=0, const uint p=1, const uint g=0, const uint subdiv=X|Y)
 Rebuilds only the mesh and sets the polynomial degrees. More...
 
virtual void solve_ ()=0
 Method for solving. More...
 

Protected Attributes

const uint geomRefAttr_
 Attribute of vertices or edges for geometric refinement. More...
 
const std::string problemName_
 Name of the problem. More...
 
std::unique_ptr< Vector< F > > sol_
 Solution vector. More...
 

Detailed Description

template<class F>
class hp2D::AdaptiveModel< F >

Definition at line 78 of file adaptiveModels.hh.

Member Typedef Documentation

◆ type

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

Definition at line 59 of file models.hh.

Member Enumeration Documentation

◆ subdivTypes

template<class F >
enum hp2D::AdaptiveModel::subdivTypes
protected
Enumerator
NONE 

Definition at line 83 of file adaptiveModels.hh.

Constructor & Destructor Documentation

◆ AdaptiveModel()

template<class F >
hp2D::AdaptiveModel< F >::AdaptiveModel ( const std::string  problemName,
const uint  geomRefAttr = 100 
)

Constructor.

Member Function Documentation

◆ info()

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

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 concepts::Mesh& hp2D::AdaptiveModel< F >::mesh_ ( )
inlineprotectedvirtual

Mesh.

Implements concepts::Model< F >.

Definition at line 87 of file adaptiveModels.hh.

◆ mshAbbr_()

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

Mesh abbreviation string.

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

◆ prebuild_()

template<class F >
virtual hpFull& hp2D::AdaptiveModel< F >::prebuild_ ( )
protectedpure virtual

◆ rebuildMesh() [1/2]

void concepts::AdaptiveModel< F, dim >::rebuildMesh ( concepts::InputAdaptiveModels input)
inherited

◆ rebuildMesh() [2/2]

void concepts::AdaptiveModel< F, dim >::rebuildMesh ( const uint  l = 0,
const uint  p = 1,
const uint  g = 0,
const uint  subdiv = X | Y 
)
inherited

Rebuilds only the mesh and sets the polynomial degrees.

Parameters
lnumber of uniform refinements
pnumber of polynomial enlargements
gnumber of geometric refinements
subdivpossibility to restrict subdivision strategy for geometric refinement

◆ rebuildMesh_()

template<class F >
virtual void hp2D::AdaptiveModel< F >::rebuildMesh_ ( const uint  l = 0,
const uint  p = 1,
const uint  g = 0,
const uint  subdiv = X|Y 
)
protectedvirtual

Rebuilds only the mesh and sets the polynomial degrees.

Implements concepts::AdaptiveModel< F, 2 >.

◆ solution()

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

Returns solution vector.

Definition at line 67 of file models.hh.

◆ solve_()

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

◆ space()

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

Returns the space.

Member Data Documentation

◆ geomRefAttr_

template<class F >
const uint hp2D::AdaptiveModel< F >::geomRefAttr_
protected

Attribute of vertices or edges for geometric refinement.

Definition at line 91 of file adaptiveModels.hh.

◆ problemName_

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

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_
protectedinherited

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