DOpE
|
#include <outputhandler.h>
Public Member Functions | |
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 | |
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 |
virtual const std::map < std::string, unsigned int > & | GetFunctionalPosition () const |
The base class for all solvers. Defines the non dimension dependent interface for the output handling
|
inline |
|
inlinevirtual |
|
inline |
The user can add his own Domain Data (for example the coefficient vector of a finite element function). The user has to make sure that the vector new_data has the appropriate length. This data is the accessible in the integrator routines.
name | The unique identifier for the data-vector. |
new_data | The vector one wishes to add. |
|
inline |
This function allows to delete user-given domain data vectors, see AddUserDomainData.
|
inline |
|
inlineprotectedvirtual |
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 >.
|
inline |
Grants access to the computed value of the functional named 'name'. This method should be used in the stationary case, see GetTimeFunctionalValue for the instationary one.
name | Name of the functional in question. |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
Grants access to the computed value of the functional named 'name'. This should be used in the instationary case.
name | Name of the functional in question. |
|
inlineprotected |
|
inlineprotected |
Resets the functional_values_ to their proper size.
@ param N Number of functionals (aux + cost).
|
inline |
|
inline |
|
pure virtual |
Basic function to get information of the state size.
out | The output stream. |
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 >.
|
pure virtual |
Basic function to write vectors in files.
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 >.
|
pure virtual |
Basic function to write vectors in files.
v | The ControlVector 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. |
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 >.
|
pure virtual |
Basic function to write a std::vector to a file.
v | A std::vector to write to a file. |
outfile | The basic name for the output file to print. |
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 >.
|
inlinevirtual |
Basic function to write vectors containing element-related data in files.
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. |
Reimplemented in DOpE::StatPDEProblem< NONLINEARSOLVER, INTEGRATOR, PROBLEM, VECTOR, dealdim >.