Public Member Functions | Private Member Functions | Private Attributes

Albany::SolutionValuesResponseFunction Class Reference

Reponse function representing the average of the solution values. More...

#include <Albany_SolutionValuesResponseFunction.hpp>

Inheritance diagram for Albany::SolutionValuesResponseFunction:
Inheritance graph
[legend]
Collaboration diagram for Albany::SolutionValuesResponseFunction:
Collaboration graph
[legend]

List of all members.

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.
SolutionValuesResponseFunctionoperator= (const SolutionValuesResponseFunction &)
 Private to prohibit copying.
void updateSolutionImporter ()

Private Attributes

Teuchos::RCP< const Applicationapp_
Teuchos::RCP
< SolutionCullingStrategyBase
cullingStrategy_
Teuchos::RCP< Epetra_Import > solutionImporter_

Detailed Description

Reponse function representing the average of the solution values.

Definition at line 26 of file Albany_SolutionValuesResponseFunction.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 91 of file Albany_SolutionValuesResponseFunction.hpp.

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.


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