#include <NOX_Abstract_Group.H>
Inheritance diagram for NOX::Abstract::Group:
Public Types | |
| enum | ReturnType { Ok, NotDefined, BadDependency, NotConverged, Failed } |
| The computation of, say, the Newton direction in computeNewton() may fail in many different ways, so we have included a variety of return codes to describe the failures. Of course, we also have a code for success. More... | |
Public Member Functions | |
| Group () | |
| Constructor. | |
| virtual | ~Group () |
| Destructor. | |
| virtual NOX::Abstract::Group & | operator= (const NOX::Abstract::Group &source)=0 |
| Copies the source group into this group. | |
"Compute" functions. | |
| virtual void | setX (const NOX::Abstract::Vector &y)=0 |
| Set the solution vector x to y. | |
| virtual void | computeX (const NOX::Abstract::Group &grp, const NOX::Abstract::Vector &d, double step)=0 |
| Compute x = grp.x + step * d. | |
| virtual NOX::Abstract::Group::ReturnType | computeF ()=0 |
| Compute and store F(x). | |
| virtual NOX::Abstract::Group::ReturnType | computeJacobian () |
| Compute and store Jacobian. | |
| virtual NOX::Abstract::Group::ReturnType | computeGradient () |
| Compute and store gradient. | |
| virtual NOX::Abstract::Group::ReturnType | computeNewton (NOX::Parameter::List ¶ms) |
| Compute the Newton direction, using parameters for the linear solve. | |
Jacobian operations. | |
Operations using the Jacobian matrix. | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobian (const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| Applies Jacobian to the given input vector and puts the answer in the result. | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobianTranspose (const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| Applies Jacobian-Transpose to the given input vector and puts the answer in the result. | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobianInverse (NOX::Parameter::List ¶ms, const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| Applies the inverse of the Jacobian matrix to the given input vector and puts the answer in result. | |
| virtual NOX::Abstract::Group::ReturnType | applyRightPreconditioning (bool useTranspose, NOX::Parameter::List ¶ms, const NOX::Abstract::Vector &input, NOX::Abstract::Vector &result) const |
| Apply right preconditiong to the given input vector. | |
Block Jacobian operations. | |
Operations using the Jacobian matrix. | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobianMultiVector (const NOX::Abstract::MultiVector &input, NOX::Abstract::MultiVector &result) const |
| applyJacobian for multiple right-hand sides | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobianTransposeMultiVector (const NOX::Abstract::MultiVector &input, NOX::Abstract::MultiVector &result) const |
| applyJacobianTranspose for multiple right-hand sides | |
| virtual NOX::Abstract::Group::ReturnType | applyJacobianInverseMultiVector (NOX::Parameter::List ¶ms, const NOX::Abstract::MultiVector &input, NOX::Abstract::MultiVector &result) const |
| applyJacobianInverse for multiple right-hand sides | |
| virtual NOX::Abstract::Group::ReturnType | applyRightPreconditioningMultiVector (bool useTranspose, NOX::Parameter::List ¶ms, const NOX::Abstract::MultiVector &input, NOX::Abstract::MultiVector &result) const |
| applyRightPreconditioning for multiple right-hand sides | |
"Is" functions. | |
Checks to see if various objects have been computed. Returns true if the corresponding "compute" function has been called since the last change to the solution vector. | |
| virtual bool | isF () const =0 |
| Return true if F is valid. | |
| virtual bool | isJacobian () const |
| Return true if the Jacobian is valid. | |
| virtual bool | isGradient () const |
| Return true if the gradient is valid. | |
| virtual bool | isNewton () const |
| Return true if the Newton direction is valid. | |
"Get" functions. | |
Note that these function do not check whether or not the vectors are valid. Must use the "Is" functions for that purpose. | |
| virtual const NOX::Abstract::Vector & | getX () const =0 |
| Return solution vector. | |
| virtual const NOX::Abstract::Vector & | getF () const =0 |
| Return F(x). | |
| virtual double | getNormF () const =0 |
| Return 2-norm of F(x). | |
| virtual const NOX::Abstract::Vector & | getGradient () const =0 |
| Return gradient. | |
| virtual const NOX::Abstract::Vector & | getNewton () const =0 |
| Return Newton direction. | |
| virtual NOX::Abstract::Group::ReturnType | getNormLastLinearSolveResidual (double &residual) const |
| Return the norm of the last linear solve residual as the result of either a call to computeNewton() or applyJacobianInverse(). | |
Creating new Groups. | |
| virtual NOX::Abstract::Group * | clone (NOX::CopyType type=NOX::DeepCopy) const =0 |
| Create a new Group of the same derived type as this one by cloning this one, and return a pointer to the new group. | |
This class is a member of the namespace NOX::Abstract.
The user should implement their own concrete implementation of this class or use one of the implementations provided by us. Typically the implementation is also tied to a particular NOX::Abstract::Vector implementation.
|
|
The computation of, say, the Newton direction in computeNewton() may fail in many different ways, so we have included a variety of return codes to describe the failures. Of course, we also have a code for success.
|
|
|
Constructor.
|
|
||||||||||||
|
Applies Jacobian to the given input vector and puts the answer in the result. Computes
where
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
|
||||||||||||||||
|
Applies the inverse of the Jacobian matrix to the given input vector and puts the answer in result. Computes
where The "Tolerance" parameter specifies that the solution should be such that
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ModifiedBorderingGroup, LOCA::Bifurcation::TPBord::NicDayModifiedBorderingGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
|
||||||||||||||||
|
applyJacobianInverse for multiple right-hand sides The default implementation here calls applyJacobianInverse() for each right hand side serially but should be overloaded if a block solver is available. Reimplemented in LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, and LOCA::TurningPoint::MooreSpence::ExtendedGroup. |
|
||||||||||||
|
applyJacobian for multiple right-hand sides The default implementation here calls applyJacobian() for each right hand side serially but should be overloaded if a block method is available. Reimplemented in LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, and LOCA::TurningPoint::MooreSpence::ExtendedGroup. |
|
||||||||||||
|
Applies Jacobian-Transpose to the given input vector and puts the answer in the result. Computes
where
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
|
||||||||||||
|
applyJacobianTranspose for multiple right-hand sides The default implementation here calls applyJacobianTranspose() for each right hand side serially but should be overloaded if a block method is available. Reimplemented in LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, and LOCA::TurningPoint::MooreSpence::ExtendedGroup. |
|
||||||||||||||||||||
|
Apply right preconditiong to the given input vector.
Let
Compute
where If useTranspose is true, then the transpose of the preconditioner is applied:
The transpose preconditioner is currently only required for Tensor methods. The "Tolerance" parameter specifies that the solution should be such that
Reimplemented in LOCA::Bifurcation::TPBord::ExtendedGroup, NOX::Epetra::Group, and NOX::EpetraNew::Group. |
|
||||||||||||||||||||
|
applyRightPreconditioning for multiple right-hand sides The default implementation here calls applyRightPreconditioning() for each right hand side serially but should be overloaded if a block method is available. |
|
|
|
Compute and store F(x).
Implemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::HouseholderGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, LOCA::Epetra::Group, LOCA::EpetraNew::Group, LOCA::LAPACK::Group, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Compute and store gradient.
We can pose the nonlinear equation problem
In that case, the gradient (of
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Compute and store Jacobian. Recall that
The Jacobian is denoted by
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, LOCA::Epetra::Group, LOCA::EpetraNew::Group, LOCA::LAPACK::Group, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Compute the Newton direction, using parameters for the linear solve. The Newton direction is the solution, s, of
The parameters are from the "Linear %Solver" sublist of the "Direction" sublist that is passed to solver during construction. The "Tolerance" parameter may be added/modified in the sublist of "Linear Solver" parameters that is passed into this function. The solution should be such that
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::HouseholderGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
|
||||||||||||||||
|
Compute x = grp.x + step * d.
Let
Implemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
|
|
|
Return the norm of the last linear solve residual as the result of either a call to computeNewton() or applyJacobianInverse().
Reimplemented in NOX::Epetra::Group, and NOX::EpetraNew::Group. |
|
|
Return true if the gradient is valid.
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Return true if the Jacobian is valid.
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Return true if the Newton direction is valid.
Reimplemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Copies the source group into this group.
Implemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ModifiedBorderingGroup, LOCA::Bifurcation::TPBord::NicDayModifiedBorderingGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::ExtendedGroup, LOCA::Continuation::HouseholderGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ArcLengthGroup, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::MultiContinuation::NaturalGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, LOCA::Epetra::Group, LOCA::EpetraNew::Group, LOCA::LAPACK::Group, NOX::Epetra::Group, NOX::EpetraNew::Group, NOX::Petsc::Group, and NOX::LAPACK::Group. |
|
|
Set the solution vector x to y.
Implemented in LOCA::Bifurcation::HopfBord::ExtendedGroup, LOCA::Bifurcation::PitchforkBord::ExtendedGroup, LOCA::Bifurcation::TPBord::ExtendedGroup, LOCA::Continuation::ArcLengthGroup, LOCA::Continuation::NaturalGroup, LOCA::Homotopy::Group, LOCA::MultiContinuation::ConstrainedGroup, LOCA::MultiContinuation::ExtendedGroup, LOCA::TurningPoint::MooreSpence::ExtendedGroup, NOX::Epetra::Group, NOX::EpetraNew::Group, and NOX::LAPACK::Group. |
1.3.9.1