Public Member Functions | |
NonlinearProblem () | |
NonlinearProblem (const Mesh &mesh, const Expr &eqn, const Expr &bc, const Expr &test, const Expr &unk, const Expr &u0, const Playa::VectorType< double > &vecType) | |
NonlinearProblem (const Mesh &mesh, const Expr &eqn, const Expr &bc, const Expr &test, const Expr &unk, const Expr &u0, const Expr ¶ms, const Expr ¶mVals, const Playa::VectorType< double > &vecType) | |
NonlinearProblem (const Mesh &mesh, const Expr &eqn, const Expr &bc, const BlockArray &test, const BlockArray &unk, const Expr &u0) | |
NonlinearProblem (const RCP< Assembler > &assembler, const Expr &u0) | |
Expr | computeSensitivities (const LinearSolver< double > &solver) const |
SolverState< double > | solve (const NOXSolver &solver) const |
SolverState< double > | solve (const NonlinearSolver< double > &solver) const |
Expr | getU0 () const |
void | setInitialGuess (const Expr &u0New) |
void | setEvalPoint (const Expr &u0New) |
LinearOperator< double > | computeJacobianAndFunction (Vector< double > &functionValue) const |
void | computeJacobianAndFunction (LinearOperator< double > &J, Vector< double > &resid) const |
Playa::Vector< double > | computeFunctionValue () const |
void | computeFunctionValue (Vector< double > &resid) const |
Playa::Vector< double > | getInitialGuess () const |
LinearOperator< double > | allocateJacobian () const |
void | reAssembleProblem () const |
Private Attributes | |
RCP< NLOp > | op_ |
Definition at line 51 of file SundanceNonlinearProblem.hpp.
NonlinearProblem::NonlinearProblem | ( | ) |
NonlinearProblem::NonlinearProblem | ( | const Mesh & | mesh, | |
const Expr & | eqn, | |||
const Expr & | bc, | |||
const Expr & | test, | |||
const Expr & | unk, | |||
const Expr & | u0, | |||
const Playa::VectorType< double > & | vecType | |||
) |
Construct with a mesh, equation set, bcs, test and unknown funcs, and a vector type
Definition at line 65 of file SundanceNonlinearProblem.cpp.
NonlinearProblem::NonlinearProblem | ( | const Mesh & | mesh, | |
const Expr & | eqn, | |||
const Expr & | bc, | |||
const Expr & | test, | |||
const Expr & | unk, | |||
const Expr & | u0, | |||
const Expr & | params, | |||
const Expr & | paramVals, | |||
const Playa::VectorType< double > & | vecType | |||
) |
Construct with a mesh, equation set, bcs, test and unknown funcs, parameters, and a vector type
Definition at line 75 of file SundanceNonlinearProblem.cpp.
NonlinearProblem::NonlinearProblem | ( | const Mesh & | mesh, | |
const Expr & | eqn, | |||
const Expr & | bc, | |||
const BlockArray & | test, | |||
const BlockArray & | unk, | |||
const Expr & | u0 | |||
) |
Construct with a mesh, equation set, bcs, test and unknown funcs, and a vector type
Definition at line 88 of file SundanceNonlinearProblem.cpp.
Definition at line 95 of file SundanceNonlinearProblem.cpp.
LinearOperator<double> Sundance::NonlinearProblem::allocateJacobian | ( | ) | const [inline] |
Create the Jacobian object, but don't fill it in.
Definition at line 123 of file SundanceNonlinearProblem.hpp.
References op_.
void Sundance::NonlinearProblem::computeFunctionValue | ( | Vector< double > & | resid | ) | const [inline] |
Write the residual into the object provided
Definition at line 115 of file SundanceNonlinearProblem.hpp.
References op_.
Playa::Vector<double> Sundance::NonlinearProblem::computeFunctionValue | ( | ) | const [inline] |
Compute the residual at the current eval point
Definition at line 111 of file SundanceNonlinearProblem.hpp.
References op_.
void Sundance::NonlinearProblem::computeJacobianAndFunction | ( | LinearOperator< double > & | J, | |
Vector< double > & | resid | |||
) | const [inline] |
Write the Jacobian and residual into the objects provided
Definition at line 106 of file SundanceNonlinearProblem.hpp.
References op_.
LinearOperator<double> Sundance::NonlinearProblem::computeJacobianAndFunction | ( | Vector< double > & | functionValue | ) | const [inline] |
Compute the residual and Jacobian at the current evaluation point
Definition at line 102 of file SundanceNonlinearProblem.hpp.
References op_.
Expr Sundance::NonlinearProblem::computeSensitivities | ( | const LinearSolver< double > & | solver | ) | const [inline] |
Compute direct sensitivities to parameters
Definition at line 82 of file SundanceNonlinearProblem.hpp.
References op_.
Playa::Vector<double> Sundance::NonlinearProblem::getInitialGuess | ( | ) | const [inline] |
Expr Sundance::NonlinearProblem::getU0 | ( | ) | const [inline] |
Return the current evaluation point as a Sundance expression
Definition at line 92 of file SundanceNonlinearProblem.hpp.
References op_.
void Sundance::NonlinearProblem::reAssembleProblem | ( | ) | const [inline] |
This function forces the assembler to reassemble the matrix
Definition at line 127 of file SundanceNonlinearProblem.hpp.
References op_.
void Sundance::NonlinearProblem::setEvalPoint | ( | const Expr & | u0New | ) | [inline] |
Set the current evaluation point
Definition at line 98 of file SundanceNonlinearProblem.hpp.
References op_.
void Sundance::NonlinearProblem::setInitialGuess | ( | const Expr & | u0New | ) | [inline] |
SolverState< double > NonlinearProblem::solve | ( | const NonlinearSolver< double > & | solver | ) | const |
Solve the nonlinear problem
Definition at line 116 of file SundanceNonlinearProblem.cpp.
References op_, Playa::NonlinearOperator< Scalar >::setEvalPt(), and Playa::NonlinearSolver< Scalar >::solve().
SolverState< double > NonlinearProblem::solve | ( | const NOXSolver & | solver | ) | const |
Solve the nonlinear problem
Definition at line 103 of file SundanceNonlinearProblem.cpp.
References op_, Playa::NonlinearOperator< Scalar >::setEvalPt(), and Playa::NOXSolver::solve().
Referenced by Sundance::TransientStepProblem::step().
RCP<NLOp> Sundance::NonlinearProblem::op_ [private] |
Definition at line 130 of file SundanceNonlinearProblem.hpp.
Referenced by allocateJacobian(), computeFunctionValue(), computeJacobianAndFunction(), computeSensitivities(), getInitialGuess(), getU0(), reAssembleProblem(), setEvalPoint(), setInitialGuess(), and solve().