https://mooseframework.inl.gov
SourceCurrentHeating.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 
10 #include "SourceCurrentHeating.h"
11 #include "Function.h"
12 
13 registerMooseObject("ElectromagneticsApp", SourceCurrentHeating);
14 
17 {
19  params.addClassDescription(("Computes the heating due to the electic field in the "
20  "form of $(0.5Re(J \\cdot E^{*} ))$"));
21  params.addRequiredCoupledVar("E_real", "The real component of the electric field.");
22  params.addRequiredCoupledVar("E_imag", "The imaginary component of the electric field.");
23  params.addRequiredParam<FunctionName>("source_real", "Current Source vector, real component");
24  params.addRequiredParam<FunctionName>("source_imag",
25  "Current Source vector, imaginary component");
26  return params;
27 }
28 
30  : AuxKernel(parameters),
31  _E_real(coupledVectorValue("E_real")),
32  _E_imag(coupledVectorValue("E_imag")),
33  _source_real(getFunction("source_real")),
34  _source_imag(getFunction("source_imag"))
35 {
36 }
37 
38 Real
40 {
41  return 0.5 * (_source_real.vectorValue(_t, _q_point[_qp]) * _E_real[_qp] +
43 }
virtual Real computeValue() override
void addRequiredParam(const std::string &name, const std::string &doc_string)
SourceCurrentHeating(const InputParameters &parameters)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
registerMooseObject("ElectromagneticsApp", SourceCurrentHeating)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual RealVectorValue vectorValue(Real t, const Point &p) const
const Function & _source_real
Real component of the current source.
void addClassDescription(const std::string &doc_string)
const VectorVariableValue & _E_imag
Vector variable of the imaginary component of the electric field.
static InputParameters validParams()
const Function & _source_imag
Imaginary component of the current source.
const VectorVariableValue & _E_real
Vector variable of the real component of the electric field.
const MooseArray< Point > & _q_point
Computes the heating due to the electic field (E) in the form of 0.5 Re( J * E^* ) where J is the cur...