Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

Albany::FieldManagerScalarResponseFunction Class Reference

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

#include <Albany_FieldManagerScalarResponseFunction.hpp>

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

List of all members.

Public Member Functions

 FieldManagerScalarResponseFunction (const Teuchos::RCP< Albany::Application > &application, const Teuchos::RCP< Albany::AbstractProblem > &problem, const Teuchos::RCP< Albany::MeshSpecsStruct > &ms, const Teuchos::RCP< Albany::StateManager > &stateMgr, Teuchos::ParameterList &responseParams)
 Constructor.
virtual ~FieldManagerScalarResponseFunction ()
 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.

Protected Member Functions

 FieldManagerScalarResponseFunction (const Teuchos::RCP< Albany::Application > &application, const Teuchos::RCP< Albany::AbstractProblem > &problem, const Teuchos::RCP< Albany::MeshSpecsStruct > &ms, const Teuchos::RCP< Albany::StateManager > &stateMgr)
 Constructor for derived classes.
void setup (Teuchos::ParameterList &responseParams)
 Setup method for derived classes.
template<typename EvalT >
void visResponseGraph (const std::string &res_type)
 Helper function for visualizing response graph.

Protected Attributes

Teuchos::RCP< Albany::Applicationapplication
 Application class.
Teuchos::RCP
< Albany::AbstractProblem
problem
 Problem class.
Teuchos::RCP
< Albany::MeshSpecsStruct
meshSpecs
 Mesh specs.
Teuchos::RCP
< Albany::StateManager
stateMgr
 State manager.
Teuchos::RCP
< PHX::FieldManager
< PHAL::AlbanyTraits > > 
rfm
 Field manager for Responses.
unsigned int num_responses
 Number of responses we compute.
int vis_response_graph
 Visualize response graph.
std::string vis_response_name
 Response name for visualization file.

Private Member Functions

 FieldManagerScalarResponseFunction (const FieldManagerScalarResponseFunction &)
 Private to prohibit copying.
FieldManagerScalarResponseFunctionoperator= (const FieldManagerScalarResponseFunction &)
 Private to prohibit copying.

Detailed Description

Reponse function representing the average of the solution values.

Definition at line 23 of file Albany_FieldManagerScalarResponseFunction.hpp.


Constructor & Destructor Documentation

Albany::FieldManagerScalarResponseFunction::FieldManagerScalarResponseFunction ( const Teuchos::RCP< Albany::Application > &  application,
const Teuchos::RCP< Albany::AbstractProblem > &  problem,
const Teuchos::RCP< Albany::MeshSpecsStruct > &  ms,
const Teuchos::RCP< Albany::StateManager > &  stateMgr,
Teuchos::ParameterList &  responseParams 
)

Constructor.

Definition at line 11 of file Albany_FieldManagerScalarResponseFunction.cpp.

Albany::FieldManagerScalarResponseFunction::~FieldManagerScalarResponseFunction (  )  [virtual]

Destructor.

Definition at line 73 of file Albany_FieldManagerScalarResponseFunction.cpp.

Albany::FieldManagerScalarResponseFunction::FieldManagerScalarResponseFunction ( const FieldManagerScalarResponseFunction  )  [private]

Private to prohibit copying.

Albany::FieldManagerScalarResponseFunction::FieldManagerScalarResponseFunction ( const Teuchos::RCP< Albany::Application > &  application,
const Teuchos::RCP< Albany::AbstractProblem > &  problem,
const Teuchos::RCP< Albany::MeshSpecsStruct > &  ms,
const Teuchos::RCP< Albany::StateManager > &  stateMgr 
) [protected]

Constructor for derived classes.

Derived classes must call setup after using this constructor.

Definition at line 27 of file Albany_FieldManagerScalarResponseFunction.cpp.


Member Function Documentation

unsigned int Albany::FieldManagerScalarResponseFunction::numResponses (  )  const [virtual]

Get the number of responses.

Implements Albany::ScalarResponseFunction.

Reimplemented in QCAD::SaddleValueResponseFunction.

Definition at line 79 of file Albany_FieldManagerScalarResponseFunction.cpp.

void Albany::FieldManagerScalarResponseFunction::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.

Reimplemented in QCAD::SaddleValueResponseFunction.

Definition at line 86 of file Albany_FieldManagerScalarResponseFunction.cpp.

void Albany::FieldManagerScalarResponseFunction::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.

Reimplemented in QCAD::SaddleValueResponseFunction.

Definition at line 113 of file Albany_FieldManagerScalarResponseFunction.cpp.

void Albany::FieldManagerScalarResponseFunction::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.

Reimplemented in QCAD::SaddleValueResponseFunction.

Definition at line 155 of file Albany_FieldManagerScalarResponseFunction.cpp.

FieldManagerScalarResponseFunction& Albany::FieldManagerScalarResponseFunction::operator= ( const FieldManagerScalarResponseFunction  )  [private]

Private to prohibit copying.

void Albany::FieldManagerScalarResponseFunction::setup ( Teuchos::ParameterList &  responseParams  )  [protected]

Setup method for derived classes.

Definition at line 42 of file Albany_FieldManagerScalarResponseFunction.cpp.

template<typename EvalT >
void Albany::FieldManagerScalarResponseFunction::visResponseGraph ( const std::string &  res_type  )  [protected]

Helper function for visualizing response graph.

Definition at line 261 of file Albany_FieldManagerScalarResponseFunction.hpp.


Member Data Documentation

Problem class.

Definition at line 236 of file Albany_FieldManagerScalarResponseFunction.hpp.

Mesh specs.

Definition at line 239 of file Albany_FieldManagerScalarResponseFunction.hpp.

State manager.

Definition at line 242 of file Albany_FieldManagerScalarResponseFunction.hpp.

Teuchos::RCP<PHX::FieldManager<PHAL::AlbanyTraits> > Albany::FieldManagerScalarResponseFunction::rfm [protected]

Field manager for Responses.

Definition at line 245 of file Albany_FieldManagerScalarResponseFunction.hpp.

Number of responses we compute.

Definition at line 248 of file Albany_FieldManagerScalarResponseFunction.hpp.

Visualize response graph.

Definition at line 251 of file Albany_FieldManagerScalarResponseFunction.hpp.

Response name for visualization file.

Definition at line 254 of file Albany_FieldManagerScalarResponseFunction.hpp.


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