Reponse function representing the average of the solution values. More...
#include <Albany_SolutionValuesResponseFunction.hpp>
Public Member Functions | |
SolutionValuesResponseFunction (const Teuchos::RCP< const Application > &app, Teuchos::ParameterList &responseParams) | |
Constructor. | |
virtual unsigned int | numResponses () const |
Get the number of responses. | |
virtual void | setup () |
Setup response function. | |
virtual void | evaluateResponse (const double current_time, const Epetra_Vector *xdot, const Epetra_Vector *xdotdot, const Epetra_Vector &x, const Teuchos::Array< ParamVec > &p, Epetra_Vector &g) |
Evaluate responses. | |
virtual void | evaluateTangent (const double alpha, const double beta, const double omega, const double current_time, bool sum_derivs, const Epetra_Vector *xdot, const Epetra_Vector *xdotdot, const Epetra_Vector &x, const Teuchos::Array< ParamVec > &p, ParamVec *deriv_p, const Epetra_MultiVector *Vxdot, const Epetra_MultiVector *Vxdotdot, const Epetra_MultiVector *Vx, const Epetra_MultiVector *Vp, Epetra_Vector *g, Epetra_MultiVector *gx, Epetra_MultiVector *gp) |
Evaluate tangent = dg/dx*dx/dp + dg/dxdot*dxdot/dp + dg/dp. | |
virtual void | evaluateGradient (const double current_time, const Epetra_Vector *xdot, const Epetra_Vector *xdotdot, const Epetra_Vector &x, const Teuchos::Array< ParamVec > &p, ParamVec *deriv_p, Epetra_Vector *g, Epetra_MultiVector *dg_dx, Epetra_MultiVector *dg_dxdot, Epetra_MultiVector *dg_dxdotdot, Epetra_MultiVector *dg_dp) |
Evaluate gradient = dg/dx, dg/dxdot, dg/dp. | |
Private Member Functions | |
SolutionValuesResponseFunction (const SolutionValuesResponseFunction &) | |
Private to prohibit copying. | |
SolutionValuesResponseFunction & | operator= (const SolutionValuesResponseFunction &) |
Private to prohibit copying. | |
void | updateSolutionImporter () |
Private Attributes | |
Teuchos::RCP< const Application > | app_ |
Teuchos::RCP < SolutionCullingStrategyBase > | cullingStrategy_ |
Teuchos::RCP< Epetra_Import > | solutionImporter_ |
Reponse function representing the average of the solution values.
Definition at line 26 of file Albany_SolutionValuesResponseFunction.hpp.
Albany::SolutionValuesResponseFunction::SolutionValuesResponseFunction | ( | const Teuchos::RCP< const Application > & | app, | |
Teuchos::ParameterList & | responseParams | |||
) |
Constructor.
Definition at line 22 of file Albany_SolutionValuesResponseFunction.cpp.
Albany::SolutionValuesResponseFunction::SolutionValuesResponseFunction | ( | const SolutionValuesResponseFunction & | ) | [private] |
Private to prohibit copying.
unsigned int Albany::SolutionValuesResponseFunction::numResponses | ( | ) | const [virtual] |
Get the number of responses.
Implements Albany::ScalarResponseFunction.
Definition at line 41 of file Albany_SolutionValuesResponseFunction.cpp.
void Albany::SolutionValuesResponseFunction::setup | ( | ) | [virtual] |
Setup response function.
Reimplemented from Albany::ScalarResponseFunction.
Definition at line 33 of file Albany_SolutionValuesResponseFunction.cpp.
void Albany::SolutionValuesResponseFunction::evaluateResponse | ( | const double | current_time, | |
const Epetra_Vector * | xdot, | |||
const Epetra_Vector * | xdotdot, | |||
const Epetra_Vector & | x, | |||
const Teuchos::Array< ParamVec > & | p, | |||
Epetra_Vector & | g | |||
) | [virtual] |
Evaluate responses.
Implements Albany::AbstractResponseFunction.
Definition at line 50 of file Albany_SolutionValuesResponseFunction.cpp.
void Albany::SolutionValuesResponseFunction::evaluateTangent | ( | const double | alpha, | |
const double | beta, | |||
const double | omega, | |||
const double | current_time, | |||
bool | sum_derivs, | |||
const Epetra_Vector * | xdot, | |||
const Epetra_Vector * | xdotdot, | |||
const Epetra_Vector & | x, | |||
const Teuchos::Array< ParamVec > & | p, | |||
ParamVec * | deriv_p, | |||
const Epetra_MultiVector * | Vxdot, | |||
const Epetra_MultiVector * | Vxdotdot, | |||
const Epetra_MultiVector * | Vx, | |||
const Epetra_MultiVector * | Vp, | |||
Epetra_Vector * | g, | |||
Epetra_MultiVector * | gx, | |||
Epetra_MultiVector * | gp | |||
) | [virtual] |
Evaluate tangent = dg/dx*dx/dp + dg/dxdot*dxdot/dp + dg/dp.
Implements Albany::AbstractResponseFunction.
Definition at line 63 of file Albany_SolutionValuesResponseFunction.cpp.
void Albany::SolutionValuesResponseFunction::evaluateGradient | ( | const double | current_time, | |
const Epetra_Vector * | xdot, | |||
const Epetra_Vector * | xdotdot, | |||
const Epetra_Vector & | x, | |||
const Teuchos::Array< ParamVec > & | p, | |||
ParamVec * | deriv_p, | |||
Epetra_Vector * | g, | |||
Epetra_MultiVector * | dg_dx, | |||
Epetra_MultiVector * | dg_dxdot, | |||
Epetra_MultiVector * | dg_dxdotdot, | |||
Epetra_MultiVector * | dg_dp | |||
) | [virtual] |
Evaluate gradient = dg/dx, dg/dxdot, dg/dp.
Implements Albany::ScalarResponseFunction.
Definition at line 102 of file Albany_SolutionValuesResponseFunction.cpp.
SolutionValuesResponseFunction& Albany::SolutionValuesResponseFunction::operator= | ( | const SolutionValuesResponseFunction & | ) | [private] |
Private to prohibit copying.
void Albany::SolutionValuesResponseFunction::updateSolutionImporter | ( | ) | [private] |
Definition at line 148 of file Albany_SolutionValuesResponseFunction.cpp.
Teuchos::RCP<const Application> Albany::SolutionValuesResponseFunction::app_ [private] |
Definition at line 91 of file Albany_SolutionValuesResponseFunction.hpp.
Teuchos::RCP<SolutionCullingStrategyBase> Albany::SolutionValuesResponseFunction::cullingStrategy_ [private] |
Definition at line 93 of file Albany_SolutionValuesResponseFunction.hpp.
Teuchos::RCP<Epetra_Import> Albany::SolutionValuesResponseFunction::solutionImporter_ [private] |
Definition at line 94 of file Albany_SolutionValuesResponseFunction.hpp.