This kernel calculates the heat source term corresponding to joule heating, Q = J * E = elec_cond * grad_phi * grad_phi, where phi is the electrical potenstial.
More...
#include <JouleHeatingSource.h>
This kernel calculates the heat source term corresponding to joule heating, Q = J * E = elec_cond * grad_phi * grad_phi, where phi is the electrical potenstial.
Definition at line 26 of file JouleHeatingSource.h.
◆ JouleHeatingSource()
JouleHeatingSource::JouleHeatingSource |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 29 of file JouleHeatingSource.C.
30 : DerivativeMaterialInterface<JvarMapKernelInterface<HeatSource>>(parameters),
33 _elec_cond(getMaterialProperty<Real>(
"electrical_conductivity")),
34 _delec_cond_dT(getMaterialPropertyDerivative<Real>(
"electrical_conductivity", _var.name())),
38 _delec_cond_darg[i] = &getMaterialPropertyDerivative<Real>(
"electrical_conductivity",
39 _coupled_moose_vars[i]->
name());
◆ computeQpJacobian()
Real JouleHeatingSource::computeQpJacobian |
( |
| ) |
|
|
protectedvirtual |
◆ computeQpOffDiagJacobian()
Real JouleHeatingSource::computeQpOffDiagJacobian |
( |
unsigned int |
jvar | ) |
|
|
protectedvirtual |
◆ computeQpResidual()
Real JouleHeatingSource::computeQpResidual |
( |
| ) |
|
|
protectedvirtual |
◆ initialSetup()
void JouleHeatingSource::initialSetup |
( |
| ) |
|
|
virtual |
Definition at line 43 of file JouleHeatingSource.C.
45 validateNonlinearCoupling<Real>(
"electrical_conductivity");
◆ validParams()
InputParameters JouleHeatingSource::validParams |
( |
| ) |
|
|
static |
Definition at line 17 of file JouleHeatingSource.C.
20 params.addCoupledVar(
"elec",
"Electric potential for joule heating.");
21 params.addCoupledVar(
"args",
"Vector of arguments of the diffusivity");
22 params.addParam<MaterialPropertyName>(
23 "electrical_conductivity",
24 "electrical_conductivity",
25 "Material property providing electrical conductivity of the material.");
◆ _delec_cond_darg
std::vector<const MaterialProperty<Real> *> JouleHeatingSource::_delec_cond_darg |
|
private |
◆ _delec_cond_dT
const MaterialProperty<Real>& JouleHeatingSource::_delec_cond_dT |
|
private |
◆ _elec_cond
const MaterialProperty<Real>& JouleHeatingSource::_elec_cond |
|
private |
◆ _elec_var
const unsigned int JouleHeatingSource::_elec_var |
|
private |
◆ _grad_elec
const VariableGradient& JouleHeatingSource::_grad_elec |
|
private |
The documentation for this class was generated from the following files: