19 params.
addParam<MaterialPropertyName>(
20 "heating_term",
"electric_field_heating",
"Material property providing the Joule heating.");
21 params.
addCoupledVar(
"elec",
"Electric potential for Joule heating.");
22 params.
addParam<MaterialPropertyName>(
23 "electrical_conductivity",
24 "electrical_conductivity",
25 "Material property providing electrical conductivity of the material.");
31 _supplied_potential(isParamValid(
"elec")),
33 _grad_elec(coupledGradient(
"elec")),
34 _elec_cond(_supplied_potential ? (hasMaterialProperty<
Real>(
"electrical_conductivity")
35 ? &getMaterialProperty<
Real>(
"electrical_conductivity")
40 ? (!_elec_cond ? &getADMaterialProperty<
Real>(
"electrical_conductivity") : nullptr)
43 _heating_residual(_supplied_potential ? getGenericZeroMaterialProperty<
Real, true>()
44 : getADMaterialProperty<
Real>(
"heating_term"))
48 "Directly coupling an electrostatic potential will be deprecated in the near future " 49 "(10/01/2025). Please use the material object 'ElectromagneticHeatingMaterial' to coupled " 50 "either the electrostatic or electromagnetic field for Joule heating.");
63 const Real elec_coef =
Auxiliary kernel for computing the heat generated from Joule heating.
void mooseDeprecated(Args &&... args) const
const VariableGradient & _grad_elec
Gradient of the coupled potential.
registerMooseObject("HeatTransferApp", JouleHeatingHeatGeneratedAux)
const bool _supplied_potential
Set to true when an electrostatic potential is provided.
JouleHeatingHeatGeneratedAux(const InputParameters ¶meters)
virtual Real computeValue()
const ADMaterialProperty< Real > & _heating_residual
The Joule heating residual provided as a material object.
const MaterialProperty< Real > *const _elec_cond
Holds the electric conductivity coefficient from the material system if non-AD.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADMaterialProperty< Real > *const _ad_elec_cond
static InputParameters validParams()