18 params.
addRequiredParam<MaterialPropertyName>(
"velocity",
"Velocity vector");
20 "Adds internal face advection flux contributions for discontinuous Galerkin discretizations");
21 params.
addParam<MaterialPropertyName>(
"advected_quantity",
22 "An optional material property to be advected. If not "
23 "supplied, then the variable will be used.");
29 _velocity(getADMaterialProperty<RealVectorValue>(
"velocity")),
30 _velocity_neighbor(getNeighborADMaterialProperty<RealVectorValue>(
"velocity")),
31 _adv_quant_elem(isParamValid(
"advected_quantity")
32 ? getADMaterialProperty<Real>(
"advected_quantity").get()
34 _adv_quant_neighbor(isParamValid(
"advected_quantity")
35 ? getNeighborADMaterialProperty<Real>(
"advected_quantity").get()
45 auto average = [](
const auto & elem_value,
const auto & neighbor_value)
46 {
return (elem_value + neighbor_value) / 2; };
50 const auto face_u = [&]()
registerMooseObject("MooseApp", ADDGAdvection)
DualNumber< Real, DNDerivativeType, true > ADReal
Adds residual/Jacobian contributions for a convection term from internal faces for a discontinuous Ga...
ADDGAdvection(const InputParameters ¶meters)
const ADMaterialProperty< RealVectorValue > & _velocity_neighbor
The velocity on the neighbor.
const ADMaterialProperty< RealVectorValue > & _velocity
The velocity on the element.
static InputParameters validParams()
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
Compute this Kernel's contribution to the residual at the current quadrature point.
const MooseArray< ADReal > & _adv_quant_elem
The advected quantity value on the element side of the face.
const MooseArray< ADReal > & _adv_quant_neighbor
The advected quantity value on the neighbor side of the face.
const VariableTestValue & _test_neighbor
Side test function.
static InputParameters validParams()
const VariableTestValue & _test
test functions
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
const std::string & type() const
Get the type of this class.