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.");
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 = [&]()
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
Compute this Kernel's contribution to the residual at the current quadrature point.
ADDGAdvection(const InputParameters ¶meters)
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
static InputParameters validParams()
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
const ADMaterialProperty< RealVectorValue > & _velocity
The velocity on the element.
const VariableTestValue & _test_neighbor
Side test function.
Adds residual/Jacobian contributions for a convection term from internal faces for a discontinuous Ga...
const ADMaterialProperty< RealVectorValue > & _velocity_neighbor
The velocity on the neighbor.
const std::string & type() const
Get the type of this class.
const MooseArray< Point > & _normals
Normal vectors at the quadrature points.
const MooseArray< ADReal > & _adv_quant_elem
The advected quantity value on the element side of the face.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseArray< ADReal > & _adv_quant_neighbor
The advected quantity value on the neighbor side of the face.
const VariableTestValue & _test
test functions
registerMooseObject("MooseApp", ADDGAdvection)