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());
45 validateNonlinearCoupling<Real>(
"electrical_conductivity");
63 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()
This kernel calculates the heat source term corresponding to joule heating, Q = J * E = elec_cond * g...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const MaterialProperty< Real > * > _delec_cond_darg
registerMooseObject("HeatTransferApp", JouleHeatingSource)