https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EMJouleHeatingHeatGeneratedAux.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
16{
18 params.addClassDescription("Computes the heating due to the electic field in the "
19 "form of $(0.5Re(\\sigma E \\cdot E^{*} ))$");
20 params.addRequiredCoupledVar("E_real", "The real component of the electric field.");
21 params.addRequiredCoupledVar("E_imag", "The imaginary component of the electric field.");
22 params.addRequiredParam<std::string>("conductivity",
23 "The real component of the material conductivity.");
24 return params;
25}
26
28 : AuxKernel(parameters),
29 _E_real(coupledVectorValue("E_real")),
30 _E_imag(coupledVectorValue("E_imag")),
31 _cond(getADMaterialProperty<Real>(getParam<std::string>("conductivity")))
32{
33 mooseDeprecated("This kernel will be deprecated in the near future (10/01/2025) in favor of "
34 "exclusively using the Heat Transfer module's 'JouleHeatingHeatGeneratedAux' for "
35 "coupling electromagnetics to heat transfer problems.");
36}
37
38Real
40{
41 return 0.5 * raw_value(_cond[_qp]) * (_E_real[_qp] * _E_real[_qp] + _E_imag[_qp] * _E_imag[_qp]);
42}
registerMooseObject("ElectromagneticsApp", EMJouleHeatingHeatGeneratedAux)
static InputParameters validParams()
NOTE: This kernel will be deprecated in the near future (10/01/2025) in favor of exclusively using th...
const VectorVariableValue & _E_imag
Vector variable of the imaginary component of the electric field.
const ADMaterialProperty< Real > & _cond
Real component of the material conductivity (in S/m)
const VectorVariableValue & _E_real
Vector variable of the real component of the electric field.
EMJouleHeatingHeatGeneratedAux(const InputParameters &parameters)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseDeprecated(Args &&... args) const