|
| 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 outfile, std::string dof_type, std::string filetype)=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) |
|
template<typename VECTOR>
class DOpE::ReducedProblemInterface_Base< VECTOR >
The base class for all solvers. Defines the non dimension dependent interface for the output handling
template<typename VECTOR>
This has to get implemented in the derived classes like optproblem, pdeproblemcontainer etc. It returns a map connecting the names of the added functionals with their position in _functional_values. If a cost functional is present, its values are always stored in _functional_values[0]. Auxiliary functionals are stored after the cost functional (present or not!) in the order as they are added.
Reimplemented in DOpE::ReducedProblemInterface< PROBLEM, VECTOR >, and DOpE::PDEProblemInterface< PROBLEM, VECTOR, dealdim >.
template<typename VECTOR>
virtual void DOpE::ReducedProblemInterface_Base< VECTOR >::WriteToFile |
( |
const VECTOR & |
v, |
|
|
std::string |
name, |
|
|
std::string |
outfile, |
|
|
std::string |
dof_type, |
|
|
std::string |
filetype |
|
) |
| |
|
pure virtual |
Basic function to write vectors in files.
- Parameters
-
v | The BlockVector 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. |
Implemented in DOpE::StatReducedProblem< CONTROLNONLINEARSOLVER, NONLINEARSOLVER, CONTROLINTEGRATOR, INTEGRATOR, PROBLEM, VECTOR, dopedim, dealdim >, DOpE::InstatReducedProblem< CONTROLNONLINEARSOLVER, NONLINEARSOLVER, CONTROLINTEGRATOR, INTEGRATOR, PROBLEM, VECTOR, dopedim, dealdim >, and DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >.
template<typename VECTOR>
Basic function to write vectors in files.
- Parameters
-
v | The ControlVector 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. |
Implemented in DOpE::StatReducedProblem< CONTROLNONLINEARSOLVER, NONLINEARSOLVER, CONTROLINTEGRATOR, INTEGRATOR, PROBLEM, VECTOR, dopedim, dealdim >, DOpE::InstatReducedProblem< CONTROLNONLINEARSOLVER, NONLINEARSOLVER, CONTROLINTEGRATOR, INTEGRATOR, PROBLEM, VECTOR, dopedim, dealdim >, and DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >.