newtonmethod.hh
Go to the documentation of this file.
78struct NewtonConvergenceWriter<TypeTag, TTag::NewtonMethod> { using type = NullConvergenceWriter<TypeTag>; };
109 using CollectiveCommunication = typename Dune::Communication<typename Dune::MPIHelper::MPICommunicator>;
439 Scalar percent = Scalar(numIterations_ - params_.targetIterations_) / params_.targetIterations_;
445 Scalar percent = Scalar(params_.targetIterations_ - numIterations_) / params_.targetIterations_;
bool verbose_() const Returns true if the Newton method ought to be chatty. Definition: newtonmethod.hh:493 void end_() Indicates that we're done solving the non-linear system of equations. Definition: newtonmethod.hh:796 const Timer & linearizeTimer() const Definition: newtonmethod.hh:480 bool proceed_() const Returns true iff another Newton iteration should be done. Definition: newtonmethod.hh:772 int numIterations() const Returns the number of iterations done since the Newton method was invoked. Definition: newtonmethod.hh:179 static bool enableConstraints_() Definition: newtonmethod.hh:819 const LinearSolverBackend & linearSolver() const Returns the linear solver backend object for external use. Definition: newtonmethod.hh:474 void updatePrimaryVariables_(unsigned, PrimaryVariables &nextValue, const PrimaryVariables ¤tValue, const EqVector &update, const EqVector &) Update a single primary variables object. Definition: newtonmethod.hh:707 void setTolerance(Scalar value) Set the current tolerance at which the Newton method considers itself to be converged. Definition: newtonmethod.hh:203 std::ostringstream & endIterMsg() Message that should be printed for the user after the end of an iteration. Definition: newtonmethod.hh:455 static void registerParameters() Register all run-time parameters for the Newton method. Definition: newtonmethod.hh:129 void postSolve_(const SolutionVector &, const GlobalEqVector &, GlobalEqVector &solutionUpdate) Update the error of the solution given the previous iteration. Definition: newtonmethod.hh:605 const Timer & prePostProcessTimer() const Definition: newtonmethod.hh:477 void writeConvergence_(const SolutionVector ¤tSolution, const GlobalEqVector &solutionUpdate) Write the convergence behaviour of the newton method to disk. Definition: newtonmethod.hh:723 void begin_(const SolutionVector &) Called before the Newton method is applied to an non-linear system of equations. Definition: newtonmethod.hh:504 void failed_() Called if the Newton method broke down. Definition: newtonmethod.hh:808 void update_(SolutionVector &nextSolution, const SolutionVector ¤tSolution, const GlobalEqVector &solutionUpdate, const GlobalEqVector ¤tResidual) Update the current solution with a delta vector. Definition: newtonmethod.hh:649 void preSolve_(const SolutionVector &, const GlobalEqVector ¤tResidual) Definition: newtonmethod.hh:556 const Model & model() const Returns a reference to the numeric model. Definition: newtonmethod.hh:172 void succeeded_() Called if the Newton method was successful. Definition: newtonmethod.hh:816 Scalar tolerance() const Return the current tolerance at which the Newton method considers itself to be converged. Definition: newtonmethod.hh:196 LinearSolverBackend & linearSolver() Returns the linear solver backend object for external use. Definition: newtonmethod.hh:468 void linearizeDomain_() Linearize the global non-linear system of equations associated with the spatial domain. Definition: newtonmethod.hh:545 const Problem & problem() const Returns a reference to the object describing the current physical problem. Definition: newtonmethod.hh:160 Scalar suggestTimeStepSize(Scalar oldDt) const Suggest a new time-step size based on the old time-step size. Definition: newtonmethod.hh:432 bool converged() const Returns true if the error of the solution is below the tolerance. Definition: newtonmethod.hh:148 Problem & problem() Returns a reference to the object describing the current physical problem. Definition: newtonmethod.hh:154 void eraseMatrix() Causes the solve() method to discared the structure of the linear system of equations the next time i... Definition: newtonmethod.hh:462 void updateConstraintDof_(unsigned, PrimaryVariables &nextValue, const Constraints &constraints) Update the primary variables for a degree of freedom which is constraint. Definition: newtonmethod.hh:699 std::ostringstream endIterMsgStream_ Definition: newtonmethod.hh:829 ConvergenceWriter convergenceWriter_ Definition: newtonmethod.hh:847 void finishInit() Finialize the construction of the object. Definition: newtonmethod.hh:141 void linearizeAuxiliaryEquations_() Definition: newtonmethod.hh:550 Model & model() Returns a reference to the numeric model. Definition: newtonmethod.hh:166 void beginIteration_() Indicates the beginning of a Newton iteration. Definition: newtonmethod.hh:516 void endIteration_(const SolutionVector &, const SolutionVector &) Indicates that one Newton iteration was finished. Definition: newtonmethod.hh:739 void setIterationIndex(int value) Set the index of current iteration. Definition: newtonmethod.hh:189 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:41 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:72 Definition: blackoilboundaryratevector.hh:37 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:235 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:70 |