20 "Implements a source/sink term for this object's variable/advected-quantity " 21 "proportional to the divergence of the mesh velocity");
24 params.
addParam<MooseFunctorName>(
"disp_y", 0,
"The y-displacement");
25 params.
addParam<MooseFunctorName>(
"disp_z", 0,
"The z-displacement");
28 "An optional parameter for a functor describing the advected quantity. If this is not " 29 "provided, then the 'variable' will be used");
36 _disp_x(getFunctor<
ADReal>(
"disp_x")),
37 _disp_y(getFunctor<
ADReal>(
"disp_y")),
38 _disp_z(getFunctor<
ADReal>(
"disp_z")),
39 _adv_quant(isParamValid(
"advected_quantity") ? static_cast<const
Moose::FunctorBase<
ADReal> &>(
40 getFunctor<
ADReal>(
"advected_quantity"))
49 const auto div_mesh_velocity =
_disp_x.gradDot(elem_arg, state)(0) +
50 _disp_y.gradDot(elem_arg, state)(1) +
51 _disp_z.gradDot(elem_arg, state)(2);
52 return _rho(elem_arg, state) * div_mesh_velocity;
const Moose::Functor< ADReal > & _disp_x
x-displacement
ADReal advQuantCoeff(const Moose::ElemArg &elem_arg, const Moose::StateArg &state) const
Moose::StateArg determineState() const
static const std::string density
DualNumber< Real, DNDerivativeType, true > ADReal
const Moose::Functor< ADReal > & _disp_y
y-displacement
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Implements a source/sink term for this object's variable/advected-quantity proportional to the diverg...
const Moose::Functor< ADReal > & _rho
The density.
const Elem *const & _current_elem
static InputParameters validParams()
const Moose::Functor< ADReal > & _disp_z
z-displacement
ADReal computeQpResidual() override
INSFVMeshAdvection(const InputParameters ¶meters)
const Moose::FunctorBase< ADReal > & _adv_quant
The advected quantity.
registerMooseObject("NavierStokesApp", INSFVMeshAdvection)
static InputParameters validParams()