22 params.
addRequiredParam<MaterialPropertyName>(
"direction",
"Direction of the flow channel");
31 _k_elem(getADMaterialProperty<Real>(
"k")),
32 _k_neig(getNeighborADMaterialProperty<Real>(
"k")),
33 _T_elem(getADMaterialProperty<Real>(
"T")),
34 _T_neig(getNeighborADMaterialProperty<Real>(
"T")),
35 _A(adCoupledValue(
"A")),
36 _dir(getMaterialProperty<RealVectorValue>(
"direction"))
47 const Real dx = (x_neig - x_elem) *
_dir[
_qp];
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("ThermalHydraulicsApp", HeatConduction3EqnDGKernel)
const VariableTestValue & _test_neighbor
static InputParameters validParams()
const VariableTestValue & _test
const Elem *const & _current_elem
const Elem *const & _neighbor_elem
Adds heat conduction for the single-phase flow model.
const ADMaterialProperty< Real > & _T_elem
Temperature for current element.
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
static InputParameters validParams()
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
const ADMaterialProperty< Real > & _k_neig
Thermal conductivity for neighbor element.
const ADMaterialProperty< Real > & _k_elem
Thermal conductivity for current element.
HeatConduction3EqnDGKernel(const InputParameters ¶meters)
const ADVariableValue & _A
Cross-sectional area.
const ADMaterialProperty< Real > & _T_neig
Temperature for neighbor element.
const std::string & type() const