Response function representing the difference from a stored vector on disk. More...
#include <Albany_SolutionFileResponseFunction.hpp>
Public Member Functions | |
SolutionFileResponseFunction (const Teuchos::RCP< const Epetra_Comm > &comm) | |
Default constructor. | |
virtual | ~SolutionFileResponseFunction () |
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 | |
SolutionFileResponseFunction (const SolutionFileResponseFunction &) | |
Private to prohibit copying. | |
SolutionFileResponseFunction & | operator= (const SolutionFileResponseFunction &) |
Private to prohibit copying. | |
int | MatrixMarketFileToVector (const char *filename, const Epetra_BlockMap &map, Epetra_Vector *&A) |
Basic idea borrowed from EpetraExt - TO DO: put it back there? | |
int | MatrixMarketFileToMultiVector (const char *filename, const Epetra_BlockMap &map, Epetra_MultiVector *&A) |
Private Attributes | |
Epetra_Vector * | RefSoln |
Reference Vector. | |
bool | solutionLoaded |
Response function representing the difference from a stored vector on disk.
Definition at line 18 of file Albany_SolutionFileResponseFunction.hpp.
Albany::SolutionFileResponseFunction< Norm >::SolutionFileResponseFunction | ( | const Teuchos::RCP< const Epetra_Comm > & | comm | ) |
Default constructor.
HAQ.
Definition at line 16 of file Albany_SolutionFileResponseFunction_Def.hpp.
Albany::SolutionFileResponseFunction< Norm >::~SolutionFileResponseFunction | ( | ) | [virtual] |
Destructor.
Definition at line 24 of file Albany_SolutionFileResponseFunction_Def.hpp.
Albany::SolutionFileResponseFunction< VectorNorm >::SolutionFileResponseFunction | ( | const SolutionFileResponseFunction< VectorNorm > & | ) | [private] |
Private to prohibit copying.
unsigned int Albany::SolutionFileResponseFunction< Norm >::numResponses | ( | ) | const [virtual] |
Get the number of responses.
Implements Albany::ScalarResponseFunction.
Definition at line 32 of file Albany_SolutionFileResponseFunction_Def.hpp.
void Albany::SolutionFileResponseFunction< Norm >::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 40 of file Albany_SolutionFileResponseFunction_Def.hpp.
void Albany::SolutionFileResponseFunction< Norm >::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 94 of file Albany_SolutionFileResponseFunction_Def.hpp.
void Albany::SolutionFileResponseFunction< Norm >::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 126 of file Albany_SolutionFileResponseFunction_Def.hpp.
SolutionFileResponseFunction& Albany::SolutionFileResponseFunction< VectorNorm >::operator= | ( | const SolutionFileResponseFunction< VectorNorm > & | ) | [private] |
Private to prohibit copying.
int Albany::SolutionFileResponseFunction< Norm >::MatrixMarketFileToVector | ( | const char * | filename, | |
const Epetra_BlockMap & | map, | |||
Epetra_Vector *& | A | |||
) | [private] |
Basic idea borrowed from EpetraExt - TO DO: put it back there?
Definition at line 200 of file Albany_SolutionFileResponseFunction_Def.hpp.
int Albany::SolutionFileResponseFunction< Norm >::MatrixMarketFileToMultiVector | ( | const char * | filename, | |
const Epetra_BlockMap & | map, | |||
Epetra_MultiVector *& | A | |||
) | [private] |
Definition at line 211 of file Albany_SolutionFileResponseFunction_Def.hpp.
Epetra_Vector* Albany::SolutionFileResponseFunction< VectorNorm >::RefSoln [private] |
Reference Vector.
Definition at line 83 of file Albany_SolutionFileResponseFunction.hpp.
bool Albany::SolutionFileResponseFunction< VectorNorm >::solutionLoaded [private] |
Definition at line 85 of file Albany_SolutionFileResponseFunction.hpp.