20 "Second order backward differentiation formula time integration scheme.");
26 _weight(declareRestartableData<
std::vector<Real>>(
"weight")),
27 _solution_older(_sys.solutionState(2))
48 mooseError(
"BDF2: Time derivative of solution (`u_dot`) is not stored. Please set "
49 "uDotRequested() to true in FEProblemBase befor requesting `u_dot`.");
63 const dof_id_type & dof,
66 auto ad_sln = ad_u_dot;
93 "Either too many or too few states are given!");
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", BDF2)
virtual Real duDotDuCoeff() const override
virtual void postResidual(NumericVector< Number > &residual) override
Callback to the NonLinearTimeIntegratorInterface called immediately after the residuals are computed ...
virtual Real timeDerivativeRHSContribution(const dof_id_type dof_id, const std::vector< Real > &factors) const override
The time derivative's contribution to the right hand side of a linear system.
std::vector< Real > & _weight
virtual unsigned int numStatesRequired() const override
Return the number of states this requires in a linear system setting.
void computeADTimeDerivatives(ADReal &ad_u_dot, const dof_id_type &dof, ADReal &ad_u_dotdot) const override
method for computing local automatic differentiation time derivatives
void computeTimeDerivativeHelper(T &u_dot, const T2 &u, const T3 &u_old, const T4 &u_older) const
Helper function that actually does the math for computing the time derivative.
BDF2(const InputParameters ¶meters)
virtual void computeTimeDerivatives() override
Computes the time derivative and the Jacobian of the time derivative.
virtual Real timeDerivativeMatrixContribution(const Real factor) const override
The time derivative's contribution to the right hand side of a linear system.
virtual void preStep() override
static InputParameters validParams()
const NumericVector< Number > & _solution_older
The older solution.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
NumericVector< Number > * _Re_non_time
residual vector for non-time contributions
NumericVector< Number > * _Re_time
residual vector for time contributions
virtual NumericVector< Number > * solutionUDot()
Base class for time integrators.
void computeDuDotDu()
Compute _du_dot_du.
Real & _dt_old
The previous time step size.
const NumericVector< Number > *const & _solution
static InputParameters validParams()
SystemBase & _sys
Reference to the system this time integrator operates on.
Real & _dt
The current time step size.
int & _t_step
The current time step number.
const NumericVector< Number > & _solution_old