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 
15 
16 InputParameters
18 {
19  InputParameters params = AuxKernel::validParams();
20  params.addClassDescription("Compute heat generated from Joule heating "
21  "$(d\\vv{P}/d\\vv{V} = \\vv{E}^2 \\sigma )$.");
22  params.addRequiredCoupledVar("elec", "Electric potential for joule heating.");
23  params.addParam<MaterialPropertyName>(
24  "electrical_conductivity",
25  "electrical_conductivity",
26  "Material property providing electrical conductivity of the material.");
27  return params;
28 }
29 
31  : AuxKernel(parameters),
32  _grad_elec(coupledGradient("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 }
JouleHeatingHeatGeneratedAux::_grad_elec
const VariableGradient & _grad_elec
Definition: JouleHeatingHeatGeneratedAux.h:32
JouleHeatingHeatGeneratedAux::_elec_cond
const MaterialProperty< Real > & _elec_cond
Definition: JouleHeatingHeatGeneratedAux.h:33
JouleHeatingHeatGeneratedAux::JouleHeatingHeatGeneratedAux
JouleHeatingHeatGeneratedAux(const InputParameters &parameters)
Definition: JouleHeatingHeatGeneratedAux.C:30
JouleHeatingHeatGeneratedAux::validParams
static InputParameters validParams()
Definition: JouleHeatingHeatGeneratedAux.C:17
registerMooseObject
registerMooseObject("MooseApp", JouleHeatingHeatGeneratedAux)
JouleHeatingHeatGeneratedAux::computeValue
virtual Real computeValue()
Definition: JouleHeatingHeatGeneratedAux.C:38
validParams
InputParameters validParams()
JouleHeatingHeatGeneratedAux
Auxiliary kernel for computing the heat generated from Joule heating.
Definition: JouleHeatingHeatGeneratedAux.h:22
defineLegacyParams
defineLegacyParams(JouleHeatingHeatGeneratedAux)
JouleHeatingHeatGeneratedAux.h