21 "inner-surface radial node of a pipe wall.");
24 "Mass flow rate in component. Takes a "
25 "scalar variable name");
28 "Temperature of the outer-surface wall node, on the other side of this "
29 "layer's radial conduction path. Takes a scalar variable name");
32 "Fluid temperature adjacent to this wall node. Takes a scalar variable "
35 "upstream_fluid_temperature",
37 "Fluid temperature adjacent to the upstream wall node. Takes a scalar variable "
40 "downstream_fluid_temperature",
42 "Fluid temperature adjacent to the downstream wall node. Takes a scalar variable "
45 "wetted_perimeter",
"Wetted perimeter of the fluid flow channel adjacent to this node [m]");
47 "Heat transfer coefficient of the fluid [W/(m^2-K)]");
49 "use_fluid_node_temp",
51 "Whether to use fluid node temperature for wall heat transfer or a segment-averaged value.");
63 _Tfdown(
ScalarCoupleable::adCoupledScalarValue(
"downstream_fluid_temperature")),
64 _wetted_perimeter(this->template getFunctor<
ADReal>(
"wetted_perimeter")),
65 _h(this->template getFunctor<
ADReal>(
"heat_transfer_coefficient"))
76 const auto Tin = 1.0 / 2.0 * (1 -
_m[i] / sqrt(
_m[i] *
_m[i] + 1.0e-08)) *
_Tfdown[i] +
77 1.0 / 2.0 * (1 +
_m[i] / sqrt(
_m[i] *
_m[i] + 1.0e-08)) *
_Tfup[i];
80 const bool node_bulk = getParam<bool>(
"use_fluid_node_temp");
90 mooseError(
"convectiveJacobian() should not be called in AD mode");
registerMooseObject("ThermalHydraulicsApp", ADPipeInnerWallTemperatureScalarKernel)
DualNumber< Real, DNDerivativeType, true > ADReal
Inner wall path-integrated incompressible conjugate heat transfer kernel.
const ADVariableValue & _Tfdown
Coupled fluid temperature adjacent to the downstream wall node.
const Moose::Functor< ADReal > & _h
Heat transfer coefficient from functor material.
const ADVariableValue & _Tfup
Coupled fluid temperature adjacent to the upstream wall node.
const ADVariableValue & _m
Coupled mass flow rate through the pipe.
const Moose::Functor< ADReal > & _wetted_perimeter
Wetted perimeter of the fluid flow channel adjacent to this wall node.
ADPipeInnerWallTemperatureScalarKernel(const InputParameters ¶meters)
static InputParameters validParams()
const ADVariableValue & _Tf
Coupled fluid temperature adjacent to this wall node.
virtual Real convectiveJacobian() const override
Derivative of convectiveLinearHeatRate() with respect to this node's own temperature.
virtual ADReal convectiveLinearHeatRate() const override
Heat flux exchanged with the fluid or ambient environment on this node's interface to the fluid/envir...
Base class for path-integrated incompressible conjugate heat transfer kernels.
static InputParameters validParams()
const bool _is_implicit
Property state integration flag.
const ADVariableValue & _u
void mooseError(Args &&... args) const