19 params.
addCoupledVar(
"elec",
"Electric potential for joule heating.");
20 params.
addParam<MaterialPropertyName>(
21 "electrical_conductivity",
22 "electrical_conductivity",
23 "Material property providing electrical conductivity of the material.");
24 params.
addClassDescription(
"Calculates the heat source term corresponding to electrostatic Joule "
31 _grad_elec(coupledGradient(
"elec")),
32 _elec_var(coupled(
"elec")),
33 _elec_cond(getMaterialProperty<Real>(
"electrical_conductivity")),
34 _delec_cond_dT(getMaterialPropertyDerivative<Real>(
"electrical_conductivity", _var.
name())),
35 _delec_cond_darg(_coupled_moose_vars.size())
38 _delec_cond_darg[i] = &getMaterialPropertyDerivative<Real>(
"electrical_conductivity",
39 _coupled_moose_vars[i]->
name());
41 mooseDeprecated(
"The non-AD version of JouleHeatingSource will be deprecated in the near future "
42 "(10/01/2025) in favor of exclusively using the AD version of "
43 "JouleHeatingSource, since the ADJouleHeatingSource can calculate both "
44 "electrostatic and electromagnetic Joule heating.");
50 validateNonlinearCoupling<Real>(
"electrical_conductivity");
68 const unsigned int cvar = mapJvarToCvar(jvar);
registerMooseObject("HeatTransferApp", JouleHeatingSource)
void mooseDeprecated(Args &&... args)
NOTE: The non-AD version of JouleHeatingSource will be deprecated in the near future (10/01/2025) in ...
virtual void initialSetup()
const unsigned int _elec_var
const MaterialProperty< Real > & _elec_cond
std::vector< const MaterialProperty< Real > * > _delec_cond_darg
const MaterialProperty< Real > & _delec_cond_dT
const VariableGradient & _grad_elec
static InputParameters validParams()
virtual Real computeQpResidual()
JouleHeatingSource(const InputParameters ¶meters)
virtual Real computeQpJacobian()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)