DOpE
Public Member Functions
DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH > Class Template Reference

#include <shifted_crank_nicolson_problem.h>

Inheritance diagram for DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >:
DOpE::PrimalTSBase< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH > DOpE::TSBase< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >

Public Member Functions

 ShiftedCrankNicolsonProblem (OPTPROBLEM &OP)
 
 ~ShiftedCrankNicolsonProblem ()
 
std::string GetName ()
 
InitialProblem
< ShiftedCrankNicolsonProblem,
VECTOR, dealdim > & 
GetInitialProblem ()
 
ShiftedCrankNicolsonProblemGetBaseProblem ()
 
template<typename EDC >
void ElementEquation (const EDC &dc, dealii::Vector< double > &local_vector, double scale, double)
 
template<typename EDC >
void ElementRhs (const EDC &edc, dealii::Vector< double > &local_vector, double scale)
 
void PointRhs (const std::map< std::string, const dealii::Vector< double > * > &param_values, const std::map< std::string, const VECTOR * > &domain_values, VECTOR &rhs_vector, double scale)
 
template<typename EDC >
void ElementMatrix (const EDC &edc, dealii::FullMatrix< double > &local_matrix)
 
template<typename FDC >
void FaceEquation (const FDC &fdc, dealii::Vector< double > &local_vector, double scale, double)
 
template<typename FDC >
void InterfaceEquation (const FDC &fdc, dealii::Vector< double > &local_vector, double scale, double)
 
template<typename FDC >
void FaceRhs (const FDC &fdc, dealii::Vector< double > &local_vector, double scale=1.)
 
template<typename FDC >
void FaceMatrix (const FDC &fdc, dealii::FullMatrix< double > &local_matrix)
 
template<typename FDC >
void InterfaceMatrix (const FDC &fdc, dealii::FullMatrix< double > &local_matrix)
 
template<typename FDC >
void BoundaryEquation (const FDC &fdc, dealii::Vector< double > &local_vector, double scale, double)
 
template<typename FDC >
void BoundaryRhs (const FDC &fdc, dealii::Vector< double > &local_vector, double scale)
 
template<typename FDC >
void BoundaryMatrix (const FDC &fdc, dealii::FullMatrix< double > &local_matrix)
 
- Public Member Functions inherited from DOpE::PrimalTSBase< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >
 PrimalTSBase (OPTPROBLEM &OP)
 
 ~PrimalTSBase ()
 
template<typename EDC >
void Init_ElementEquation (const EDC &edc, dealii::Vector< double > &local_vector, double scale, double scale_ico)
 
template<typename EDC >
void Init_ElementRhs (const EDC &edc, dealii::Vector< double > &local_vector, double scale)
 
template<typename EDC >
void Init_ElementMatrix (const EDC &edc, dealii::FullMatrix< double > &local_matrix, double scale, double scale_ico)
 
void Init_PointRhs (const std::map< std::string, const dealii::Vector< double > * > &, const std::map< std::string, const VECTOR * > &, VECTOR &, double)
 
template<typename FDC >
void Init_FaceEquation (const FDC &, dealii::Vector< double > &, double, double)
 
template<typename FDC >
void Init_InterfaceEquation (const FDC &, dealii::Vector< double > &, double, double)
 
template<typename FDC >
void Init_BoundaryEquation (const FDC &, dealii::Vector< double > &, double, double)
 
template<typename FDC >
void Init_FaceMatrix (const FDC &, FullMatrix< double > &, double, double)
 
template<typename FDC >
void Init_InterfaceMatrix (const FDC &, FullMatrix< double > &, double, double)
 
template<typename FDC >
void Init_BoundaryMatrix (const FDC &, FullMatrix< double > &, double, double)
 
- Public Member Functions inherited from DOpE::TSBase< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >
 TSBase (OPTPROBLEM &OP)
 
 ~TSBase ()
 
void SetStepPart (std::string s)
 
void SetTime (double time, unsigned int time_dof_number, const TimeIterator &interval, bool initial=false)
 
template<typename DATACONTAINER >
double ElementFunctional (const DATACONTAINER &dc)
 
double PointFunctional (const std::map< std::string, const dealii::Vector< double > * > &param_values, const std::map< std::string, const VECTOR * > &domain_values)
 
template<typename FACEDATACONTAINER >
double BoundaryFunctional (const FACEDATACONTAINER &fdc)
 
template<typename FACEDATACONTAINER >
double FaceFunctional (const FACEDATACONTAINER &fdc)
 
const dealii::SmartPointer
< const dealii::FESystem
< dealdim > > 
GetFESystem () const
 
bool HasFaces () const
 
bool HasPoints () const
 
bool HasInterfaces () const
 
template<typename ELEMENTITERATOR >
bool AtInterface (ELEMENTITERATOR &element, unsigned int face) const
 
dealii::UpdateFlags GetUpdateFlags () const
 
dealii::UpdateFlags GetFaceUpdateFlags () const
 
const std::vector< unsigned int > & GetDirichletColors () const
 
const std::vector< bool > & GetDirichletCompMask (unsigned int color) const
 
const dealii::Function< dealdim > & GetDirichletValues (unsigned int color, const std::map< std::string, const dealii::Vector< double > * > &param_values, const std::map< std::string, const VECTOR * > &domain_values) const
 
const dealii::Function< dealdim > & GetInitialValues () const
 
const std::vector< unsigned int > & GetBoundaryEquationColors () const
 
const std::vector< unsigned int > & GetBoundaryFunctionalColors () const
 
unsigned int GetNFunctionals () const
 
unsigned int GetNBlocks () const
 
unsigned int GetDoFsPerBlock (unsigned int b) const
 
const std::vector< unsigned int > & GetDoFsPerBlock () const
 
const dealii::ConstraintMatrix & GetDoFConstraints () const
 
std::string GetType () const
 
std::string GetDoFType () const
 
std::string GetFunctionalType () const
 
std::string GetFunctionalName () const
 
DOpEOutputHandler< VECTOR > * GetOutputHandler ()
 
const SpaceTimeHandler< FE, DH,
SPARSITYPATTERN, VECTOR,
dopedim, dealdim > * 
GetSpaceTimeHandler () const
 
SpaceTimeHandler< FE, DH,
SPARSITYPATTERN, VECTOR,
dopedim, dealdim > * 
GetSpaceTimeHandler ()
 
void ComputeSparsityPattern (SPARSITYPATTERN &sparsity) const
 

Additional Inherited Members

- Protected Member Functions inherited from DOpE::TSBase< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >
OPTPROBLEM & GetProblem ()
 
std::string GetPart () const
 

Detailed Description

template<typename OPTPROBLEM, typename SPARSITYPATTERN, typename VECTOR, int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
class DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >

Class to compute time dependent problems with the shifted Crank-Nicolson time-stepping scheme. The parameter is given by 1/2 + k, where k describes the time step size.

All member functions have a corresponding function in BackwardEulerProblem. For a detailed documentation please consult the corresponding documentation of BackwardEulerProblem

Template Parameters
<OPTPROBLEM>The problem to deal with.
<SPARSITYPATTERN>The sparsity pattern for control & state.
<VECTOR>The vector type for control & state (i.e. dealii::Vector<double> or dealii::BlockVector<double>)
<dopedim>The dimension for the control variable.
<dealdim>The dimension of the state variable.
<FE>The type of finite elements in use, must be compatible with the DH.
<DH>The type of the DoFHandler in use (to be more precise: The type of the dealii-DoFhandler which forms the base class of the DOpEWrapper::DoFHandler in use.)

Constructor & Destructor Documentation

template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::ShiftedCrankNicolsonProblem ( OPTPROBLEM &  OP)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::~ShiftedCrankNicolsonProblem ( )
inline

Member Function Documentation

template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::BoundaryEquation ( const FDC &  fdc,
dealii::Vector< double > &  local_vector,
double  scale,
double   
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::BoundaryMatrix ( const FDC &  fdc,
dealii::FullMatrix< double > &  local_matrix 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::BoundaryRhs ( const FDC &  fdc,
dealii::Vector< double > &  local_vector,
double  scale 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename EDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::ElementEquation ( const EDC &  dc,
dealii::Vector< double > &  local_vector,
double  scale,
double   
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename EDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::ElementMatrix ( const EDC &  edc,
dealii::FullMatrix< double > &  local_matrix 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename EDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::ElementRhs ( const EDC &  edc,
dealii::Vector< double > &  local_vector,
double  scale 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::FaceEquation ( const FDC &  fdc,
dealii::Vector< double > &  local_vector,
double  scale,
double   
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::FaceMatrix ( const FDC &  fdc,
dealii::FullMatrix< double > &  local_matrix 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::FaceRhs ( const FDC &  fdc,
dealii::Vector< double > &  local_vector,
double  scale = 1. 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
ShiftedCrankNicolsonProblem& DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::GetBaseProblem ( )
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
InitialProblem<ShiftedCrankNicolsonProblem, VECTOR, dealdim>& DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::GetInitialProblem ( )
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
std::string DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::GetName ( )
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::InterfaceEquation ( const FDC &  fdc,
dealii::Vector< double > &  local_vector,
double  scale,
double   
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
template<typename FDC >
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::InterfaceMatrix ( const FDC &  fdc,
dealii::FullMatrix< double > &  local_matrix 
)
inline
template<typename OPTPROBLEM , typename SPARSITYPATTERN , typename VECTOR , int dopedim, int dealdim, template< int, int > class FE = dealii::FESystem, template< int, int > class DH = dealii::DoFHandler>
void DOpE::ShiftedCrankNicolsonProblem< OPTPROBLEM, SPARSITYPATTERN, VECTOR, dopedim, dealdim, FE, DH >::PointRhs ( const std::map< std::string, const dealii::Vector< double > * > &  param_values,
const std::map< std::string, const VECTOR * > &  domain_values,
VECTOR &  rhs_vector,
double  scale 
)
inline

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