23 "Kernel to calculate the current source term in the Helmholtz wave equation.");
24 params.
addParam<FunctionName>(
"function_coefficient",
26 "Function coefficient multiplier for current source (normally " 27 "$\\omega$ or $\\omega \\cdot \\mu$).");
28 params.
addRequiredParam<FunctionName>(
"source_real",
"Current Source vector, real component");
30 "Current Source vector, imaginary component");
38 _func(getFunction(
"function_coefficient")),
39 _source_real(getFunction(
"source_real")),
40 _source_imag(getFunction(
"source_imag")),
41 _component(getParam<
MooseEnum>(
"component"))
54 VectorValue<std::complex<double>> source(source_0, source_1, source_2);
virtual Real computeQpJacobian() override
const Function & _func
Function coefficient.
const VectorVariableTestValue & _test
static const std::string component
static InputParameters validParams()
const Function & _source_real
Real component of the current source.
virtual Real computeQpResidual() override
VectorCurrentSource(const InputParameters ¶meters)
MooseEnum _component
Component of the field vector (real or imaginary)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Function & _source_imag
Imaginary component of the current source.
static InputParameters validParams()
registerMooseObject("ElectromagneticsApp", VectorCurrentSource)
virtual RealVectorValue vectorValue(Real t, const Point &p) const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
Calculates the current source term contribution in the Helmholtz wave equation.
virtual Real value(Real t, const Point &p) const
const MooseArray< Point > & _q_point