https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11#include "Function.h"
12
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
38Real
registerMooseObject("ElectromagneticsApp", SourceCurrentHeating)
const MooseArray< Point > & _q_point
static InputParameters validParams()
virtual RealVectorValue vectorValue(Real t, const Point &p) const
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)
Computes the heating due to the electic field (E) in the form of 0.5 Re( J * E^* ) where J is the cur...
virtual Real computeValue() override
SourceCurrentHeating(const InputParameters &parameters)
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 VectorVariableValue & _E_imag
Vector variable of the imaginary component of the electric field.
const Function & _source_real
Real component of the current source.
static InputParameters validParams()