www.mooseframework.org
JouleHeatingHeatGeneratedAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<AuxKernel>();
19  params.addClassDescription("Compute heat generated from Joule heating "
20  "$(d\\vv{P}/d\\vv{V} = \\vv{E}^2 \\sigma )$.");
21  params.addRequiredCoupledVar("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.");
26  return params;
27 }
28 
30  : AuxKernel(parameters),
31  _grad_elec(coupledGradient("elec")),
32  // _elec_var(coupled("elec")),
33  _elec_cond(getMaterialProperty<Real>("electrical_conductivity"))
34 {
35 }
36 
37 Real
39 {
40  return _elec_cond[_qp] * _grad_elec[_qp] * _grad_elec[_qp];
41 }
Auxiliary kernel for computing the heat generated from Joule heating.
const MaterialProperty< Real > & _elec_cond
JouleHeatingHeatGeneratedAux(const InputParameters &parameters)
InputParameters validParams< JouleHeatingHeatGeneratedAux >()
registerMooseObject("MooseApp", JouleHeatingHeatGeneratedAux)