25 virtual int order()
override {
return 2; }
26 virtual void preStep()
override;
30 ADReal & ad_u_dotdot)
const override;
38 template <
typename T,
typename T2,
typename T3,
typename T4>
54 template <
typename T,
typename T2,
typename T3,
typename T4>
59 const T4 & u_older)
const void addScaled(const T &a, const T2 &b, T3 &result)
virtual int order() override
virtual void computeTimeDerivatives() override
Computes the time derivative and the Jacobian of the time derivative.
DualNumber< Real, DNDerivativeType, true > ADReal
Real & _dt
The current time step size.
const NumericVector< Number > & _solution_older
The older solution.
std::vector< Real > & _weight
virtual void preStep() override
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.
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
BDF2(const InputParameters ¶meters)
static InputParameters validParams()
virtual void postResidual(NumericVector< Number > &residual) override
Callback to the NonLinearTimeIntegratorInterface called immediately after the residuals are computed ...
virtual bool overridesSolve() const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Base class for time integrators.
virtual Real duDotDuCoeff() const override
const InputParameters & parameters() const
Get the parameters of the object.
int & _t_step
The current time step number.