#include <LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H>
Public Member Functions | |
ModifiedConstraint (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< LOCA::Parameter::SublistParser > &topParams, const Teuchos::RCP< Teuchos::ParameterList > &tpParams, const Teuchos::RCP< LOCA::TurningPoint::MinimallyAugmented::AbstractGroup > &g, bool is_symmetric, const NOX::Abstract::Vector &a, const NOX::Abstract::Vector *b, int bif_param) | |
Constructor. | |
ModifiedConstraint (const ModifiedConstraint &source, NOX::CopyType type=NOX::DeepCopy) | |
Copy constructor. | |
virtual | ~ModifiedConstraint () |
Destructor. | |
void | setNewtonUpdates (const NOX::Abstract::Vector &dx, double dp, double step) |
Set the newton update for x and p. | |
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 NOX::Abstract::Group::ReturnType | computeConstraints () |
Compute continuation constraint equations. | |
virtual void | preProcessContinuationStep (LOCA::Abstract::Iterator::StepStatus stepStatus) |
Perform any preprocessing before a continuation step starts. | |
virtual void | postProcessContinuationStep (LOCA::Abstract::Iterator::StepStatus stepStatus) |
Perform any postprocessing after a continuation step finishes. | |
Protected Attributes | |
Teuchos::RCP < NOX::Abstract::MultiVector > | w_vector_update |
Stores update to left null vector. | |
Teuchos::RCP < NOX::Abstract::MultiVector > | v_vector_update |
Stores update to right null vector. | |
Teuchos::RCP < NOX::Abstract::MultiVector > | w_residual |
Stores left null vector residual. | |
Teuchos::RCP < NOX::Abstract::MultiVector > | v_residual |
Stores right null vector residual. | |
Teuchos::RCP < NOX::Abstract::MultiVector > | deltaX |
Stores solution update. | |
NOX::Abstract::MultiVector::DenseMatrix | sigma1 |
Stores sigma_1. | |
NOX::Abstract::MultiVector::DenseMatrix | sigma2 |
Stores sigma_1. | |
double | deltaP |
Stores parameter update. | |
bool | isFirstSolve |
bool | includeNewtonTerms |
Flag indicating whether to include the newton update terms. | |
Private Member Functions | |
ModifiedConstraint & | operator= (const ModifiedConstraint &source) |
Prohibit generation and use of operator=(). |
This class is a modification of LOCA::TurningPoint::MinimallyAugmented::Constraint where updates are computed to the left and right null vectors and
every nonlinear iteration instead of solving for them directly:
The class is intialized via the tpParams
parameter list argument to the constructor. This class recognizes all paramters for LOCA::TurningPoint::MinimallyAugmented::Constraint plus the following:
Definition at line 101 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::ModifiedConstraint | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, | |||
const Teuchos::RCP< Teuchos::ParameterList > & | tpParams, | |||
const Teuchos::RCP< LOCA::TurningPoint::MinimallyAugmented::AbstractGroup > & | g, | |||
bool | is_symmetric, | |||
const NOX::Abstract::Vector & | a, | |||
const NOX::Abstract::Vector * | b, | |||
int | bif_param | |||
) |
Constructor.
Definition at line 54 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References includeNewtonTerms, v_vector_update, and w_vector_update.
Referenced by clone().
LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::ModifiedConstraint | ( | const ModifiedConstraint & | source, | |
NOX::CopyType | type = NOX::DeepCopy | |||
) |
Copy constructor.
Definition at line 84 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::~ModifiedConstraint | ( | ) | [virtual] |
Destructor.
Definition at line 102 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
void LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::copy | ( | const LOCA::MultiContinuation::ConstraintInterface & | source | ) | [virtual] |
Copy.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 108 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References deltaP, deltaX, includeNewtonTerms, isFirstSolve, sigma1, sigma2, v_residual, v_vector_update, w_residual, and w_vector_update.
Teuchos::RCP< LOCA::MultiContinuation::ConstraintInterface > LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::clone | ( | NOX::CopyType | type = NOX::DeepCopy |
) | const [virtual] |
Cloning function.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 131 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References ModifiedConstraint().
NOX::Abstract::Group::ReturnType LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::computeConstraints | ( | ) | [virtual] |
Compute continuation constraint equations.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 138 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References LOCA::TurningPoint::MinimallyAugmented::Constraint::a_vector, LOCA::TurningPoint::MinimallyAugmented::Constraint::b_vector, LOCA::TurningPoint::MinimallyAugmented::Constraint::bifParamID, LOCA::TurningPoint::MinimallyAugmented::Constraint::borderedSolver, LOCA::TurningPoint::MinimallyAugmented::Constraint::constraints, deltaP, deltaX, LOCA::TurningPoint::MinimallyAugmented::Constraint::dn, LOCA::TurningPoint::MinimallyAugmented::Constraint::globalData, LOCA::TurningPoint::MinimallyAugmented::Constraint::grpPtr, includeNewtonTerms, isFirstSolve, LOCA::TurningPoint::MinimallyAugmented::Constraint::isSymmetric, LOCA::TurningPoint::MinimallyAugmented::Constraint::isValidConstraints, LOCA::TurningPoint::MinimallyAugmented::Constraint::Jv_vector, NOX::Abstract::Group::Ok, NOX::Utils::OuterIteration, LOCA::TurningPoint::MinimallyAugmented::Constraint::parsedParams, NOX::ShapeCopy, sigma1, sigma2, LOCA::TurningPoint::MinimallyAugmented::Constraint::sigma_scale, LOCA::TurningPoint::MinimallyAugmented::Constraint::updateVectorsEveryIteration, v_residual, LOCA::TurningPoint::MinimallyAugmented::Constraint::v_vector, v_vector_update, w_residual, LOCA::TurningPoint::MinimallyAugmented::Constraint::w_vector, and w_vector_update.
void LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::preProcessContinuationStep | ( | LOCA::Abstract::Iterator::StepStatus | stepStatus | ) | [virtual] |
Perform any preprocessing before a continuation step starts.
The stepStatus
argument indicates whether the previous step was successful. Here we set up the constraint class to solve for and
for the first nonlinear iteration.
Reimplemented from LOCA::MultiContinuation::ConstraintInterface.
Definition at line 433 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References isFirstSolve, v_vector_update, and w_vector_update.
void LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::postProcessContinuationStep | ( | LOCA::Abstract::Iterator::StepStatus | stepStatus | ) | [virtual] |
Perform any postprocessing after a continuation step finishes.
The stepStatus
argument indicates whether the step was successful. Here we set up the constraint class to solve for and
for the first nonlinear iteration.
Reimplemented from LOCA::TurningPoint::MinimallyAugmented::Constraint.
Definition at line 446 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References isFirstSolve, LOCA::Abstract::Iterator::Successful, v_vector_update, and w_vector_update.
void LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::setNewtonUpdates | ( | const NOX::Abstract::Vector & | dx, | |
double | dp, | |||
double | step | |||
) |
Set the newton update for x and p.
Definition at line 462 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.C.
References deltaP.
ModifiedConstraint& LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::operator= | ( | const ModifiedConstraint & | source | ) | [private] |
Prohibit generation and use of operator=().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::w_vector_update [protected] |
Stores update to left null vector.
Definition at line 176 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), copy(), ModifiedConstraint(), postProcessContinuationStep(), and preProcessContinuationStep().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::v_vector_update [protected] |
Stores update to right null vector.
Definition at line 179 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), copy(), ModifiedConstraint(), postProcessContinuationStep(), and preProcessContinuationStep().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::w_residual [protected] |
Stores left null vector residual.
Definition at line 182 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), and copy().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::v_residual [protected] |
Stores right null vector residual.
Definition at line 185 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), and copy().
Teuchos::RCP<NOX::Abstract::MultiVector> LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::deltaX [protected] |
Stores solution update.
Definition at line 188 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), and copy().
NOX::Abstract::MultiVector::DenseMatrix LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::sigma1 [protected] |
Stores sigma_1.
Definition at line 191 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), and copy().
NOX::Abstract::MultiVector::DenseMatrix LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::sigma2 [protected] |
Stores sigma_1.
Definition at line 194 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), and copy().
double LOCA::TurningPoint::MinimallyAugmented::ModifiedConstraint::deltaP [protected] |
Stores parameter update.
Definition at line 197 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), copy(), and setNewtonUpdates().
Flag that indicates whether we're in the first solve per continuation step.
Definition at line 203 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), copy(), postProcessContinuationStep(), and preProcessContinuationStep().
Flag indicating whether to include the newton update terms.
Definition at line 206 of file LOCA_TurningPoint_MinimallyAugmented_ModifiedConstraint.H.
Referenced by computeConstraints(), copy(), and ModifiedConstraint().