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);
JouleHeatingSource(const InputParameters ¶meters)
const VariableGradient & _grad_elec
virtual void initialSetup()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< Real > & _delec_cond_dT
const MaterialProperty< Real > & _elec_cond
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
const unsigned int _elec_var
static InputParameters validParams()
void mooseDeprecated(Args &&... args)
NOTE: The non-AD version of JouleHeatingSource will be deprecated in the near future (10/01/2025) in ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const MaterialProperty< Real > * > _delec_cond_darg
registerMooseObject("HeatTransferApp", JouleHeatingSource)