Sundance::NonlinearProblem Class Reference

Inheritance diagram for Sundance::NonlinearProblem:

Sundance::ObjectWithClassVerbosity< NonlinearProblem > Playa::ObjectWithVerbosity

List of all members.

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 &params, const Expr &paramVals, 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< NLOpop_


Detailed Description

NonlinearProblem encapsulates a discrete nonlinear problem

Definition at line 51 of file SundanceNonlinearProblem.hpp.


Constructor & Destructor Documentation

NonlinearProblem::NonlinearProblem (  ) 

Empty ctor

Definition at line 58 of file SundanceNonlinearProblem.cpp.

References nlpCtorTimer().

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.

NonlinearProblem::NonlinearProblem ( const RCP< Assembler > &  assembler,
const Expr u0 
)

Definition at line 95 of file SundanceNonlinearProblem.cpp.


Member Function Documentation

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]

Get an initial guess

Definition at line 119 of file SundanceNonlinearProblem.hpp.

References op_.

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]

Set an initial guess

Definition at line 95 of file SundanceNonlinearProblem.hpp.

References op_.

SolverState< double > NonlinearProblem::solve ( const NonlinearSolver< double > &  solver  )  const

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().


Member Data Documentation

Site Contact