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_ |
NonlinearProblem encapsulates a discrete nonlinear problem
Definition at line 62 of file SundanceNonlinearProblem.hpp.
| 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 76 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 86 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 99 of file SundanceNonlinearProblem.cpp.
| NonlinearProblem::NonlinearProblem | ( | const RCP< Assembler > & | assembler, |
| const Expr & | u0 | ||
| ) |
Definition at line 106 of file SundanceNonlinearProblem.cpp.
| LinearOperator<double> Sundance::NonlinearProblem::allocateJacobian | ( | ) | const [inline] |
Create the Jacobian object, but don't fill it in.
Definition at line 134 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 122 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 126 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 113 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 117 of file SundanceNonlinearProblem.hpp.
References op_.
| Expr Sundance::NonlinearProblem::computeSensitivities | ( | const LinearSolver< double > & | solver | ) | const [inline] |
Compute direct sensitivities to parameters
Definition at line 93 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 103 of file SundanceNonlinearProblem.hpp.
References op_.
| void Sundance::NonlinearProblem::reAssembleProblem | ( | ) | const [inline] |
This function forces the assembler to reassemble the matrix
Definition at line 138 of file SundanceNonlinearProblem.hpp.
References op_.
| void Sundance::NonlinearProblem::setEvalPoint | ( | const Expr & | u0New | ) | [inline] |
Set the current evaluation point
Definition at line 109 of file SundanceNonlinearProblem.hpp.
References op_.
| void Sundance::NonlinearProblem::setInitialGuess | ( | const Expr & | u0New | ) | [inline] |
| SolverState< double > NonlinearProblem::solve | ( | const NOXSolver & | solver | ) | const |
Solve the nonlinear problem
Definition at line 114 of file SundanceNonlinearProblem.cpp.
References op_, Playa::NonlinearOperator< Scalar >::setEvalPt(), and Playa::NOXSolver::solve().
Referenced by Sundance::TransientStepProblem::step().
| SolverState< double > NonlinearProblem::solve | ( | const NonlinearSolver< double > & | solver | ) | const |
Solve the nonlinear problem
Definition at line 127 of file SundanceNonlinearProblem.cpp.
References op_, Playa::NonlinearOperator< Scalar >::setEvalPt(), and Playa::NonlinearSolver< Scalar >::solve().
RCP<NLOp> Sundance::NonlinearProblem::op_ [private] |
Definition at line 141 of file SundanceNonlinearProblem.hpp.
Referenced by allocateJacobian(), computeFunctionValue(), computeJacobianAndFunction(), computeSensitivities(), getInitialGuess(), getU0(), reAssembleProblem(), setEvalPoint(), setInitialGuess(), and solve().