16#ifndef Sch_CN_iteratif_included
17#define Sch_CN_iteratif_included
19#include <Schema_Temps_base.h>
20#include <TRUSTTabs_forward.h>
83 virtual bool convergence(
const DoubleTab& u0,
const DoubleTab& up1,
const DoubleTab& delta,
int p)
const;
84 virtual bool divergence(
const DoubleTab& u0,
const DoubleTab& up1,
const DoubleTab& delta,
int p)
const;
class Equation_base The role of an equation is the calculation of one or more fields....
Helper class to factorize the readOn method of Objet_U classes.
Time scheme alternating a half implicit Euler step and a half LeapFrog step.
virtual bool iterateTimeStepOnEquation(int i, bool &converged)
Computes one iteration of the resolution on equation i.
bool initTimeStep(double dt) override
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
virtual bool divergence(const DoubleTab &u0, const DoubleTab &up1, const DoubleTab &delta, int p) const
Indicates whether the iterative computation has diverged.
bool iterateTimeStep(bool &converged) override
Calculate the U(n+1) unknown for each equation (if solved) of the problem with the selected time sche...
virtual bool convergence(const DoubleTab &u0, const DoubleTab &up1, const DoubleTab &delta, int p) const
Indicates whether the iterative computation has converged.
int nb_valeurs_futures() const override
Returns the number of future time values.
void set_param(Param &titi) const override
int nb_valeurs_temporelles() const override
Returns the number of time values to keep.
double temps_futur(int i) const override
Returns the time at the i-th future value.
double temps_defaut() const override
Returns the time that fields should use when calling valeurs().
void completer() override
virtual void ajuster_facsec(type_convergence cv)