NOX Development
Public Member Functions | Protected Attributes
LOCA::MultiContinuation::NaturalConstraint Class Reference

Implementation of LOCA::MultiContinuation::ConstraintInterface for natural continuation. More...

#include <LOCA_MultiContinuation_NaturalConstraint.H>

Inheritance diagram for LOCA::MultiContinuation::NaturalConstraint:
Inheritance graph
Collaboration diagram for LOCA::MultiContinuation::NaturalConstraint:
Collaboration graph

List of all members.

Public Member Functions

 NaturalConstraint (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< LOCA::MultiContinuation::NaturalGroup > &grp)
 NaturalConstraint (const NaturalConstraint &source, NOX::CopyType type=NOX::DeepCopy)
 Copy constructor.
 ~NaturalConstraint ()
virtual void setNaturalGroup (const Teuchos::RCP< LOCA::MultiContinuation::NaturalGroup > &grp)
 Set pointer to natural group.
Implementation of LOCA::MultiContinuation::ConstraintInterface

virtual methods

virtual void copy (const ConstraintInterface &source)
virtual Teuchos::RCP
< LOCA::MultiContinuation::ConstraintInterface
clone (NOX::CopyType type=NOX::DeepCopy) const
 Cloning function.
virtual int numConstraints () const
 Return number of constraints.
virtual void setX (const NOX::Abstract::Vector &y)
 Set the solution vector to y.
virtual void setParam (int paramID, double val)
 Sets parameter indexed by paramID.
virtual void setParams (const std::vector< int > &paramIDs, const NOX::Abstract::MultiVector::DenseMatrix &vals)
 Sets parameters indexed by paramIDs.
computeConstraints ()
 Compute continuation constraint equations.
computeDX ()
 Compute derivative of constraints w.r.t. solution vector x.
computeDP (const std::vector< int > &paramIDs, NOX::Abstract::MultiVector::DenseMatrix &dgdp, bool isValidG)
 Compute derivative of constraints w.r.t. supplied parameters.
virtual bool isConstraints () const
 Return true if constraint residuals are valid.
virtual bool isDX () const
 Return true if derivatives of constraints w.r.t. x are valid.
virtual const
getConstraints () const
 Return constraint residuals.
virtual const
getDX () const
 Return solution component of constraint derivatives.
virtual bool isDXZero () const
 Return true if solution component of constraint derivatives is zero.

Protected Attributes

Teuchos::RCP< LOCA::GlobalDataglobalData
 LOCA global data object.
< LOCA::MultiContinuation::NaturalGroup
 Pointer to arc-length group.
NOX::Abstract::MultiVector::DenseMatrix constraints
 Constraint values.
bool isValidConstraints
 Flag indicating whether constraints are valid.
std::vector< int > conParamIDs
 Continuation parameter IDs.

Detailed Description

Implementation of LOCA::MultiContinuation::ConstraintInterface for natural continuation.

This class implements the natural constraint equation for natural continuation:

\[ g(x,p,x_0,p_0,x^\ast,p^\ast,v,\Delta s)= p-p_0-v_p \Delta s \]

where $v_p$ is the parameter component of the predictor direction $v$.

Member Function Documentation

NOX::Abstract::Group::ReturnType LOCA::MultiContinuation::NaturalConstraint::computeDP ( const std::vector< int > &  paramIDs,
NOX::Abstract::MultiVector::DenseMatrix dgdp,
bool  isValidG 
) [virtual]

Compute derivative of constraints w.r.t. supplied parameters.

The first column of dgdp should be filled with the constraint residuals $g$ if isValidG is false. If isValidG is true, then the dgdp contains $g$ on input.

Implements LOCA::MultiContinuation::ConstraintInterface.

References NOX::Abstract::Group::Ok.

const NOX::Abstract::MultiVector * LOCA::MultiContinuation::NaturalConstraint::getDX ( ) const [virtual]

Return solution component of constraint derivatives.

Since the solution component of the derivative is always zero, this always returns NULL.

Implements LOCA::MultiContinuation::ConstraintInterfaceMVDX.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends