19 params.
addRequiredParam<Real>(
"power_fraction",
"The fraction of power used");
23 "The name of the function that defines the power shape");
25 "Power shape integral post-processor name");
26 params.
addParam<Real>(
"scale", 1.0,
"Scaling factor for residual");
33 _power_fraction(getParam<Real>(
"power_fraction")),
34 _total_power(coupledScalarValue(
"total_power")),
35 _power_shape_function(getFunction(
"power_shape_function")),
36 _power_shape_integral(getPostprocessorValue(
"power_shape_integral_pp")),
37 _scale(getParam<Real>(
"scale")),
38 _num_units(getParam<Real>(
"num_units"))
46 const ADReal power_density =
registerMooseObject("ThermalHydraulicsApp", ADHeatStructureHeatSource)
DualNumber< Real, DNDerivativeType, true > ADReal
virtual ADReal computeQpResidual()
const VariableValue & _total_power
ADHeatStructureHeatSource(const InputParameters ¶meters)
const Real & _power_fraction
const PostprocessorValue & _power_shape_integral
static InputParameters validParams()
const Function & _power_shape_function
const ADTemplateVariableTestValue< T > & _test
static InputParameters validParams()
virtual Real value(Real t, const Point &p) const
const MooseArray< Point > & _q_point