|
template<typename INTEGRATORDATACONT > |
| StatPDEProblem (PROBLEM *OP, DOpEtypes::VectorStorageType state_behavior, ParameterReader ¶m_reader, INTEGRATORDATACONT &idc, int base_priority=0) |
|
template<typename INTEGRATORDATACONT > |
| StatPDEProblem (PROBLEM *OP, DOpEtypes::VectorStorageType state_behavior, ParameterReader ¶m_reader, INTEGRATORDATACONT &idc1, INTEGRATORDATACONT &idc2, int base_priority=0) |
|
virtual | ~StatPDEProblem () |
|
void | ReInit () |
|
void | ComputeReducedFunctionals () |
|
void | ComputeReducedFunctionals (const StateVector< VECTOR > &st_u) |
|
template<class DWRC , class PDE > |
void | ComputeRefinementIndicators (DWRC &dwrc, PDE &pde) |
|
void | StateSizeInfo (std::stringstream &out) |
|
void | WriteToFile (const VECTOR &v, std::string name, std::string outfile, std::string dof_type, std::string filetype) |
|
void | WriteToFileElementwise (const Vector< double > &v, std::string name, std::string outfile, std::string dof_type, std::string filetype) |
|
void | WriteToFile (const ControlVector< VECTOR > &v, std::string name, std::string dof_type) |
|
void | WriteToFile (const std::vector< double > &, std::string) |
|
| PDEProblemInterface (PROBLEM *OP, int base_priority=0) |
|
virtual | ~PDEProblemInterface () |
|
void | SetProblemType (std::string type, unsigned int num=0) |
|
template<class DWRC > |
void | InitializeDWRC (DWRC &dwrc) |
|
| ReducedProblemInterface_Base () |
|
virtual | ~ReducedProblemInterface_Base () |
|
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) |
|
template<typename NONLINEARSOLVER, typename INTEGRATOR, typename PROBLEM, typename VECTOR, int dealdim>
class DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >
Basic class to solve stationary PDE-problems. In contrast to StatReducedProblem no control variable is present. This allows to avoid initialization of the related and objects which will not be used.
- Template Parameters
-
<NONLINEARSOLVER> | Newton solver for the state variables. |
<INTEGRATOR> | An integrator for the state variables, e.g, Integrator |
<PROBLEM> | PDE- or optimization problem under consideration. |
<VECTOR> | Class in which we want to store the spatial vector (i.e. dealii::Vector<double> or dealii::BlockVector<double>) |
<dopedim> | The dimension for the control variable. |
<dealdim> | The dimension for the state variable. |
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
This function computes the solution for the dual variable for error estimation.
I is assumed that the state u(q) corresponding to the argument q is already calculated.
- Parameters
-
weight_comp | A flag deciding how the weights should be calculated |
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
template<class DWRC , class PDE >
void DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >::ComputeRefinementIndicators |
( |
DWRC & |
dwrc, |
|
|
PDE & |
pde |
|
) |
| |
Computes the error indicators for the error of a previosly specified functional. Assumes that the primal state solution is already computed and the functional is specified (see problem::SetFunctionalForErrorEstimation).
Everything else is determined by the DWRDataContainer you use (represented by the template parameter DWRC).
- Template Parameters
-
<DWRC> | A container for the refinement indicators See, e.g., DWRDataContainer |
<PDE> | The problem contrainer |
- Parameters
-
dwrc | The data container |
pde | The problem |
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
void DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >::WriteToFile |
( |
const VECTOR & |
v, |
|
|
std::string |
name, |
|
|
std::string |
outfile, |
|
|
std::string |
dof_type, |
|
|
std::string |
filetype |
|
) |
| |
|
virtual |
Here, the given VECTOR v is printed to a file of *.vtk format. However, in later implementations other file formats will be available.
- Parameters
-
v | The VECTOR to write to a file. |
name | The names of the variables, e.g., in a fluid problem: v1, v2, p. |
outfile | The basic name for the output file to print. |
dof_type | Has the DoF type: state or control. |
filetype | The filetype. Actually, *.vtk outputs are possible. |
Implements DOpE::ReducedProblemInterface_Base< VECTOR >.
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
void DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >::WriteToFile |
( |
const ControlVector< VECTOR > & |
v, |
|
|
std::string |
name, |
|
|
std::string |
dof_type |
|
) |
| |
|
virtual |
Here, the given ControlVector<VECTOR> v is printed to a file of *.vtk format. However, in later implementations other file formats will be available.
- Parameters
-
v | The ControlVector<VECTOR> to write to a file. |
name | The names of the variables, e.g., in a fluid problem: v1, v2, p. |
dof_type | Has the DoF type: state or control. |
Implements DOpE::ReducedProblemInterface_Base< VECTOR >.
template<typename NONLINEARSOLVER , typename INTEGRATOR , typename PROBLEM , typename VECTOR , int dealdim>
void DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >::WriteToFileElementwise |
( |
const Vector< double > & |
v, |
|
|
std::string |
name, |
|
|
std::string |
outfile, |
|
|
std::string |
dof_type, |
|
|
std::string |
filetype |
|
) |
| |
|
virtual |
Here, the given Vector v (containing element-related data) is printed to a file of *.vtk format. However, in later implementations other file formats will be available.
- Parameters
-
v | The Vector to write to a file. |
name | The names of the variables, e.g., in a fluid problem: v1, v2, p. |
outfile | The basic name for the output file to print. |
dof_type | Has the DoF type: state or control. |
filetype | The filetype. Actually, *.vtk outputs are possible. |
type | How to interprete the given data, i.e. does v contain nodal-related or element-related data. |
Reimplemented from DOpE::ReducedProblemInterface_Base< VECTOR >.