Public Member Functions | Private Member Functions | Private Attributes

Albany::SolutionFileResponseFunction< VectorNorm > Class Template Reference

Response function representing the difference from a stored vector on disk. More...

#include <Albany_SolutionFileResponseFunction.hpp>

Inheritance diagram for Albany::SolutionFileResponseFunction< VectorNorm >:
Inheritance graph
[legend]
Collaboration diagram for Albany::SolutionFileResponseFunction< VectorNorm >:
Collaboration graph
[legend]

List of all members.

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.
SolutionFileResponseFunctionoperator= (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

Detailed Description

template<class VectorNorm>
class Albany::SolutionFileResponseFunction< VectorNorm >

Response function representing the difference from a stored vector on disk.

Definition at line 18 of file Albany_SolutionFileResponseFunction.hpp.


Constructor & Destructor Documentation

template<class Norm >
Albany::SolutionFileResponseFunction< Norm >::SolutionFileResponseFunction ( const Teuchos::RCP< const Epetra_Comm > &  comm  ) 

Default constructor.

HAQ.

Definition at line 16 of file Albany_SolutionFileResponseFunction_Def.hpp.

template<class Norm >
Albany::SolutionFileResponseFunction< Norm >::~SolutionFileResponseFunction (  )  [virtual]

Destructor.

Definition at line 24 of file Albany_SolutionFileResponseFunction_Def.hpp.

template<class VectorNorm >
Albany::SolutionFileResponseFunction< VectorNorm >::SolutionFileResponseFunction ( const SolutionFileResponseFunction< VectorNorm > &   )  [private]

Private to prohibit copying.


Member Function Documentation

template<class Norm >
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.

template<class Norm >
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.

template<class Norm >
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.

template<class Norm >
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.

template<class VectorNorm >
SolutionFileResponseFunction& Albany::SolutionFileResponseFunction< VectorNorm >::operator= ( const SolutionFileResponseFunction< VectorNorm > &   )  [private]

Private to prohibit copying.

template<class Norm >
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.

template<class Norm >
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.


Member Data Documentation

template<class VectorNorm >
Epetra_Vector* Albany::SolutionFileResponseFunction< VectorNorm >::RefSoln [private]

Reference Vector.

Definition at line 83 of file Albany_SolutionFileResponseFunction.hpp.

template<class VectorNorm >
bool Albany::SolutionFileResponseFunction< VectorNorm >::solutionLoaded [private]

Definition at line 85 of file Albany_SolutionFileResponseFunction.hpp.


The documentation for this class was generated from the following files: