21 "Adds the time derivative term to the incompressible Navier-Stokes momentum equation.");
24 "The time derivative of the density material property");
44 const auto rho_dot =
_rho_dot(elem_arg, state);
45 const auto var_dot =
_var.
dot(elem_arg, state);
46 const auto rho =
_rho(elem_arg, state);
47 const auto var =
_var(elem_arg, state);
50 mooseAssert(var.derivatives()[dof_number] == 1.,
51 "This is an implicit assumption in our coefficient calculation.");
53 const auto strong_resid = rho_dot * var + rho * var_dot;
59 a += rho * var_dot.derivatives()[dof_number];
void addResidualAndJacobian(const ADReal &residual, dof_id_type dof)
Process into either the system residual or Jacobian.
void gatherRCData(const Elem &) override
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
unsigned int number() const
Computes the momentum time derivative for the weakly compressible formulation of the momentum equatio...
Moose::StateArg determineState() const
const bool _contribute_to_rc_coeffs
Whether to contribute to RC coefficients.
const unsigned int _index
index x|y|z
static const std::string density
const Moose::Functor< ADReal > & _rho
The density.
All navier-stokes momentum time derivative terms should inherit from this class.
static InputParameters validParams()
const Moose::Functor< ADReal > & _rho_dot
The time derivative of density.
RhieChowInterpolatorBase & _rc_uo
The Rhie Chow user object that is responsible for generating face velocities for advection terms...
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
static InputParameters validParams()
Real elementVolume(const Elem *elem) const
WCNSFVMomentumTimeDerivative(const InputParameters ¶ms)
unsigned int number() const
registerMooseObject("NavierStokesApp", WCNSFVMomentumTimeDerivative)
DotType dot(const ElemArg &elem, const StateArg &state) const
virtual void addToA(const libMesh::Elem *elem, unsigned int component, const ADReal &value)=0
API for momentum residual objects that have on-diagonals for velocity call.
MooseVariableFV< Real > & _var
std::string time_deriv(const std::string &var)