DOpE
Public Member Functions | Protected Member Functions
DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim > Class Template Referenceabstract

#include <pdeprobleminterface.h>

Inheritance diagram for DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >:
DOpE::ReducedProblemInterface_Base< VECTOR > DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >

Public Member Functions

 PDEProblemInterface (PROBLEM *OP, int base_priority=0)
 
virtual ~PDEProblemInterface ()
 
virtual void ReInit ()
 
virtual void ComputeReducedFunctionals ()=0
 
void SetProblemType (std::string type, unsigned int num=0)
 
template<class DWRC >
void InitializeDWRC (DWRC &dwrc)
 
- Public Member Functions inherited from DOpE::ReducedProblemInterface_Base< VECTOR >
 ReducedProblemInterface_Base ()
 
virtual ~ReducedProblemInterface_Base ()
 
virtual void StateSizeInfo (std::stringstream &out)=0
 
virtual void WriteToFile (const VECTOR &v, std::string name, std::string outfile, std::string dof_type, std::string filetype)=0
 
virtual void WriteToFileElementwise (const Vector< double > &, std::string, std::string, std::string, std::string)
 
virtual void WriteToFile (const ControlVector< VECTOR > &v, std::string name, std::string dof_type)=0
 
virtual void WriteToFile (const std::vector< double > &v, std::string outfile)=0
 
void RegisterOutputHandler (DOpEOutputHandler< VECTOR > *OH)
 
void RegisterExceptionHandler (DOpEExceptionHandler< VECTOR > *OH)
 
DOpEExceptionHandler< VECTOR > * GetExceptionHandler ()
 
DOpEOutputHandler< VECTOR > * GetOutputHandler ()
 
double GetFunctionalValue (std::string name) const
 
const std::vector< double > & GetTimeFunctionalValue (std::string name) const
 
void AddUserDomainData (std::string name, const VECTOR *new_data)
 
void DeleteUserDomainData (std::string name)
 

Protected Member Functions

virtual const std::map
< std::string, unsigned int > & 
GetFunctionalPosition () const
 
PROBLEM * GetProblem ()
 
const PROBLEM * GetProblem () const
 
std::string GetPostIndex ()
 
int GetBasePriority ()
 
- Protected Member Functions inherited from DOpE::ReducedProblemInterface_Base< VECTOR >
void InitializeFunctionalValues (unsigned int N)
 
std::vector< std::vector
< double > > & 
GetFunctionalValues ()
 
const std::vector< std::vector
< double > > & 
GetFunctionalValues () const
 
const std::map< std::string,
const VECTOR * > & 
GetUserDomainData () const
 

Detailed Description

template<typename PROBLEM, typename VECTOR, int dealdim>
class DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >

This class is the basis for the reduced problems, i.e., those in which the PDE has been elimiated for the solution of stationary and nonstationary PDEs.

Constructor & Destructor Documentation

template<typename PROBLEM, typename VECTOR, int dealdim>
DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::PDEProblemInterface ( PROBLEM *  OP,
int  base_priority = 0 
)
inline
template<typename PROBLEM, typename VECTOR, int dealdim>
virtual DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::~PDEProblemInterface ( )
inlinevirtual

Member Function Documentation

template<typename PROBLEM, typename VECTOR, int dealdim>
virtual void DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::ComputeReducedFunctionals ( )
pure virtual

Evaluation of the functionals in the solution of the PDE. This function needs to be specified separately for stationary and non stationary problems since the evaluation of the functionals differs.

Implemented in DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >.

template<typename PROBLEM, typename VECTOR, int dealdim>
int DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::GetBasePriority ( )
inlineprotected
template<typename PROBLEM, typename VECTOR, int dealdim>
virtual const std::map<std::string, unsigned int>& DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::GetFunctionalPosition ( ) const
inlineprotectedvirtual

Just calls the GetFunctioalPosition() method of the problem. See there for further documentation of the method.

Reimplemented from DOpE::ReducedProblemInterface_Base< VECTOR >.

template<typename PROBLEM, typename VECTOR, int dealdim>
std::string DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::GetPostIndex ( )
inlineprotected
template<typename PROBLEM, typename VECTOR, int dealdim>
PROBLEM* DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::GetProblem ( )
inlineprotected
template<typename PROBLEM, typename VECTOR, int dealdim>
const PROBLEM* DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::GetProblem ( ) const
inlineprotected
template<typename PROBLEM, typename VECTOR, int dealdim>
template<class DWRC >
void DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::InitializeDWRC ( DWRC &  dwrc)
inline

Initializes the HigherOrderDWRDataContainer (we need GetStateNBlocks() and GetStateBlockComponent()!)

template<typename PROBLEM, typename VECTOR, int dealdim>
virtual void DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::ReInit ( )
inlinevirtual

Reinitialization when needed to adjust vector and matrix sizes.

Reimplemented in DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >.

template<typename PROBLEM, typename VECTOR, int dealdim>
void DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >::SetProblemType ( std::string  type,
unsigned int  num = 0 
)
inline

Sets the type of the Problem OP_. This function secures the proper initialization of the FEValues after the type has changed. See also the documentation of SetType in optproblemcontainer.h


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