#include <LOCA_Pitchfork_MinimallyAugmented_Constraint.H>
Public Member Functions | |
Constraint (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< LOCA::Parameter::SublistParser > &topParams, const Teuchos::RCP< Teuchos::ParameterList > &pfParams, const Teuchos::RCP< LOCA::Pitchfork::MinimallyAugmented::AbstractGroup > &g, bool is_symmetric, const NOX::Abstract::Vector &a, const NOX::Abstract::Vector *b, const Teuchos::RCP< const NOX::Abstract::Vector > &psi, int bif_param) | |
Constructor. | |
Constraint (const Constraint &source, NOX::CopyType type=NOX::DeepCopy) | |
Copy constructor. | |
virtual | ~Constraint () |
Destructor. | |
virtual void | setGroup (const Teuchos::RCP< LOCA::TurningPoint::MinimallyAugmented::AbstractGroup > &g) |
Set the group pointer. | |
Implementation of LOCA::MultiContinuation::ConstraintInterface | |
virtual methods | |
virtual void | copy (const LOCA::MultiContinuation::ConstraintInterface &source) |
Copy. | |
virtual Teuchos::RCP < LOCA::MultiContinuation::ConstraintInterface > | clone (NOX::CopyType type=NOX::DeepCopy) const |
Cloning function. | |
virtual int | numConstraints () const |
Return number of constraints. | |
virtual NOX::Abstract::Group::ReturnType | computeConstraints () |
Compute continuation constraint equations. | |
virtual NOX::Abstract::Group::ReturnType | computeDX () |
Compute derivative of constraints w.r.t. solution vector x. | |
virtual NOX::Abstract::Group::ReturnType | computeDP (const vector< int > ¶mIDs, NOX::Abstract::MultiVector::DenseMatrix &dgdp, bool isValidG) |
Compute derivative of constraints w.r.t. supplied parameters. | |
virtual const NOX::Abstract::MultiVector::DenseMatrix & | getConstraints () const |
Return constraint residuals. | |
virtual const NOX::Abstract::MultiVector * | getDX () const |
Return solution component of constraint derivatives. | |
Protected Attributes | |
Teuchos::RCP < LOCA::Pitchfork::MinimallyAugmented::AbstractGroup > | pf_grp |
Pointer to pitchfork group. | |
Teuchos::RCP< const NOX::Abstract::Vector > | psi_vector |
Vector for ![]() | |
Teuchos::RCP < NOX::Abstract::MultiVector > | dgdx |
Stores dg/dx. | |
NOX::Abstract::MultiVector::DenseMatrix | pf_constraints |
Constraint values. | |
Private Member Functions | |
Constraint & | operator= (const Constraint &source) |
Prohibit generation and use of operator=(). |
This class implements the pitchfork constraint equations ,
for the minimally augmented pitchfork formulation where
is defined via
for any vectors and
in
. Using these relationships, it is easy to show
The class is derived from LOCA::TurningPoint::MinimallyAugmented::Constraint. See this class for a description of available parameters.
Definition at line 116 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.H.
LOCA::Pitchfork::MinimallyAugmented::Constraint::Constraint | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, | |||
const Teuchos::RCP< Teuchos::ParameterList > & | pfParams, | |||
const Teuchos::RCP< LOCA::Pitchfork::MinimallyAugmented::AbstractGroup > & | g, | |||
bool | is_symmetric, | |||
const NOX::Abstract::Vector & | a, | |||
const NOX::Abstract::Vector * | b, | |||
const Teuchos::RCP< const NOX::Abstract::Vector > & | psi, | |||
int | bif_param | |||
) |
Constructor.
Definition at line 53 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
Referenced by clone().
LOCA::Pitchfork::MinimallyAugmented::Constraint::Constraint | ( | const Constraint & | source, | |
NOX::CopyType | type = NOX::DeepCopy | |||
) |
LOCA::Pitchfork::MinimallyAugmented::Constraint::~Constraint | ( | ) | [virtual] |
Destructor.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 87 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
void LOCA::Pitchfork::MinimallyAugmented::Constraint::setGroup | ( | const Teuchos::RCP< LOCA::TurningPoint::MinimallyAugmented::AbstractGroup > & | g | ) | [virtual] |
Set the group pointer.
This method should be called when ever the constrained group is copied, since we don't explicitly copy the underlying group here.
Definition at line 93 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References pf_grp.
void LOCA::Pitchfork::MinimallyAugmented::Constraint::copy | ( | const LOCA::MultiContinuation::ConstraintInterface & | source | ) | [virtual] |
Copy.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 101 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References dgdx, pf_constraints, and psi_vector.
Teuchos::RCP< LOCA::MultiContinuation::ConstraintInterface > LOCA::Pitchfork::MinimallyAugmented::Constraint::clone | ( | NOX::CopyType | type = NOX::DeepCopy |
) | const [virtual] |
Cloning function.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 119 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References Constraint().
int LOCA::Pitchfork::MinimallyAugmented::Constraint::numConstraints | ( | ) | const [virtual] |
Return number of constraints.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 126 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
NOX::Abstract::Group::ReturnType LOCA::Pitchfork::MinimallyAugmented::Constraint::computeConstraints | ( | ) | [virtual] |
Compute continuation constraint equations.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 133 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References LOCA::TurningPoint::MinimallyAugmented::Constraint::constraints, LOCA::TurningPoint::MinimallyAugmented::Constraint::isValidConstraints, NOX::Abstract::Group::Ok, pf_constraints, pf_grp, and psi_vector.
NOX::Abstract::Group::ReturnType LOCA::Pitchfork::MinimallyAugmented::Constraint::computeDX | ( | ) | [virtual] |
Compute derivative of constraints w.r.t. solution vector x.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 152 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References LOCA::TurningPoint::MinimallyAugmented::Constraint::isValidDX, NOX::Abstract::Group::Ok, and psi_vector.
NOX::Abstract::Group::ReturnType LOCA::Pitchfork::MinimallyAugmented::Constraint::computeDP | ( | const 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 if
isValidG
is false
. If isValidG
is true
, then the dgdp
contains on input.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 170 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References pf_grp, and psi_vector.
const NOX::Abstract::MultiVector::DenseMatrix & LOCA::Pitchfork::MinimallyAugmented::Constraint::getConstraints | ( | ) | const [virtual] |
Return constraint residuals.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 193 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References pf_constraints.
const NOX::Abstract::MultiVector * LOCA::Pitchfork::MinimallyAugmented::Constraint::getDX | ( | ) | const [virtual] |
Return solution component of constraint derivatives.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 200 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.C.
References dgdx.
Constraint& LOCA::Pitchfork::MinimallyAugmented::Constraint::operator= | ( | const Constraint & | source | ) | [private] |
Prohibit generation and use of operator=().
Teuchos::RCP<LOCA::Pitchfork::MinimallyAugmented::AbstractGroup> LOCA::Pitchfork::MinimallyAugmented::Constraint::pf_grp [protected] |
Pointer to pitchfork group.
Definition at line 203 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.H.
Referenced by computeConstraints(), computeDP(), and setGroup().
Teuchos::RCP<const NOX::Abstract::Vector> LOCA::Pitchfork::MinimallyAugmented::Constraint::psi_vector [protected] |
Vector for .
Definition at line 206 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.H.
Referenced by computeConstraints(), computeDP(), computeDX(), and copy().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::Pitchfork::MinimallyAugmented::Constraint::dgdx [protected] |
NOX::Abstract::MultiVector::DenseMatrix LOCA::Pitchfork::MinimallyAugmented::Constraint::pf_constraints [protected] |
Constraint values.
Definition at line 212 of file LOCA_Pitchfork_MinimallyAugmented_Constraint.H.
Referenced by computeConstraints(), copy(), and getConstraints().