newtonmethod.hh
Go to the documentation of this file.
117 using CollectiveCommunication = typename Dune::Communication<typename Dune::MPIHelper::MPICommunicator>;
453 Scalar percent = Scalar(numIterations_ - params_.targetIterations_) / params_.targetIterations_;
459 Scalar percent = Scalar(params_.targetIterations_ - numIterations_) / params_.targetIterations_;
bool verbose_() const Returns true if the Newton method ought to be chatty. Definition: newtonmethod.hh:507 void end_() Indicates that we're done solving the non-linear system of equations. Definition: newtonmethod.hh:814 const Timer & linearizeTimer() const Definition: newtonmethod.hh:494 bool proceed_() const Returns true iff another Newton iteration should be done. Definition: newtonmethod.hh:789 int numIterations() const Returns the number of iterations done since the Newton method was invoked. Definition: newtonmethod.hh:186 static bool enableConstraints_() Definition: newtonmethod.hh:837 const LinearSolverBackend & linearSolver() const Returns the linear solver backend object for external use. Definition: newtonmethod.hh:488 void updatePrimaryVariables_(unsigned, PrimaryVariables &nextValue, const PrimaryVariables ¤tValue, const EqVector &update, const EqVector &) Update a single primary variables object. Definition: newtonmethod.hh:723 void setTolerance(Scalar value) Set the current tolerance at which the Newton method considers itself to be converged. Definition: newtonmethod.hh:210 std::ostringstream & endIterMsg() Message that should be printed for the user after the end of an iteration. Definition: newtonmethod.hh:469 static void registerParameters() Register all run-time parameters for the Newton method. Definition: newtonmethod.hh:136 void postSolve_(const SolutionVector &, const GlobalEqVector &, GlobalEqVector &solutionUpdate) Update the error of the solution given the previous iteration. Definition: newtonmethod.hh:620 const Timer & prePostProcessTimer() const Definition: newtonmethod.hh:491 void writeConvergence_(const SolutionVector ¤tSolution, const GlobalEqVector &solutionUpdate) Write the convergence behaviour of the newton method to disk. Definition: newtonmethod.hh:739 void begin_(const SolutionVector &) Called before the Newton method is applied to an non-linear system of equations. Definition: newtonmethod.hh:516 void failed_() Called if the Newton method broke down. Definition: newtonmethod.hh:826 void update_(SolutionVector &nextSolution, const SolutionVector ¤tSolution, const GlobalEqVector &solutionUpdate, const GlobalEqVector ¤tResidual) Update the current solution with a delta vector. Definition: newtonmethod.hh:662 void preSolve_(const SolutionVector &, const GlobalEqVector ¤tResidual) Definition: newtonmethod.hh:567 const Model & model() const Returns a reference to the numeric model. Definition: newtonmethod.hh:179 void succeeded_() Called if the Newton method was successful. Definition: newtonmethod.hh:834 Scalar tolerance() const Return the current tolerance at which the Newton method considers itself to be converged. Definition: newtonmethod.hh:203 LinearSolverBackend & linearSolver() Returns the linear solver backend object for external use. Definition: newtonmethod.hh:482 void linearizeDomain_() Linearize the global non-linear system of equations associated with the spatial domain. Definition: newtonmethod.hh:558 const Problem & problem() const Returns a reference to the object describing the current physical problem. Definition: newtonmethod.hh:167 Scalar suggestTimeStepSize(Scalar oldDt) const Suggest a new time-step size based on the old time-step size. Definition: newtonmethod.hh:446 bool converged() const Returns true if the error of the solution is below the tolerance. Definition: newtonmethod.hh:155 Problem & problem() Returns a reference to the object describing the current physical problem. Definition: newtonmethod.hh:161 void eraseMatrix() Causes the solve() method to discared the structure of the linear system of equations the next time i... Definition: newtonmethod.hh:476 void updateConstraintDof_(unsigned, PrimaryVariables &nextValue, const Constraints &constraints) Update the primary variables for a degree of freedom which is constraint. Definition: newtonmethod.hh:715 std::ostringstream endIterMsgStream_ Definition: newtonmethod.hh:847 ConvergenceWriter convergenceWriter_ Definition: newtonmethod.hh:865 void finishInit() Finialize the construction of the object. Definition: newtonmethod.hh:148 void linearizeAuxiliaryEquations_() Definition: newtonmethod.hh:561 Model & model() Returns a reference to the numeric model. Definition: newtonmethod.hh:173 void beginIteration_() Indicates the beginning of a Newton iteration. Definition: newtonmethod.hh:528 void endIteration_(const SolutionVector &, const SolutionVector &) Indicates that one Newton iteration was finished. Definition: newtonmethod.hh:755 void setIterationIndex(int value) Set the index of current iteration. Definition: newtonmethod.hh:196 A convergence writer for the Newton method which does nothing. Definition: nullconvergencewriter.hh:51 A simple class which makes sure that a timer gets stopped if an exception is thrown. Definition: timerguard.hh:42 double realTimeElapsed() const Return the real time [s] elapsed during the periods the timer was active since the last reset. Declare the properties used by the infrastructure code of the finite volume discretizations. Declares the properties required by the black oil model. Definition: fvbaseprimaryvariables.hh:141 Definition: blackoilmodel.hh:79 Definition: blackoilboundaryratevector.hh:39 typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(.... Definition: propertysystem.hh:233 std::string to_string(const ConvergenceReport::ReservoirFailure::Type t) Struct holding the parameters for NewtonMethod. Definition: newtonmethodparams.hpp:71 static void registerParameters() Registers the parameters in parameter system. Specifies the type of the class which writes out the Newton convergence. Definition: newtonmethodproperties.hh:40 Specifies the type of the actual Newton method. Definition: newtonmethodproperties.hh:32 Definition: newtonmethod.hh:74 |