Reponse function representing the average of the solution values. More...
#include <Albany_SolutionTwoNormResponseFunction.hpp>
Public Member Functions | |
SolutionTwoNormResponseFunction (const Teuchos::RCP< const Epetra_Comm > &comm) | |
Default constructor. | |
virtual | ~SolutionTwoNormResponseFunction () |
Destructor. | |
virtual unsigned int | numResponses () const |
Get the number of responses. | |
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 | |
SolutionTwoNormResponseFunction (const SolutionTwoNormResponseFunction &) | |
Private to prohibit copying. | |
SolutionTwoNormResponseFunction & | operator= (const SolutionTwoNormResponseFunction &) |
Private to prohibit copying. |
Reponse function representing the average of the solution values.
Definition at line 17 of file Albany_SolutionTwoNormResponseFunction.hpp.
Albany::SolutionTwoNormResponseFunction::SolutionTwoNormResponseFunction | ( | const Teuchos::RCP< const Epetra_Comm > & | comm | ) |
Default constructor.
Definition at line 11 of file Albany_SolutionTwoNormResponseFunction.cpp.
Albany::SolutionTwoNormResponseFunction::~SolutionTwoNormResponseFunction | ( | ) | [virtual] |
Destructor.
Definition at line 17 of file Albany_SolutionTwoNormResponseFunction.cpp.
Albany::SolutionTwoNormResponseFunction::SolutionTwoNormResponseFunction | ( | const SolutionTwoNormResponseFunction & | ) | [private] |
Private to prohibit copying.
unsigned int Albany::SolutionTwoNormResponseFunction::numResponses | ( | ) | const [virtual] |
Get the number of responses.
Implements Albany::ScalarResponseFunction.
Definition at line 23 of file Albany_SolutionTwoNormResponseFunction.cpp.
void Albany::SolutionTwoNormResponseFunction::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 30 of file Albany_SolutionTwoNormResponseFunction.cpp.
void Albany::SolutionTwoNormResponseFunction::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 42 of file Albany_SolutionTwoNormResponseFunction.cpp.
void Albany::SolutionTwoNormResponseFunction::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 82 of file Albany_SolutionTwoNormResponseFunction.cpp.
SolutionTwoNormResponseFunction& Albany::SolutionTwoNormResponseFunction::operator= | ( | const SolutionTwoNormResponseFunction & | ) | [private] |
Private to prohibit copying.