23 "First order transient absorbing boundary condition for vector variables.");
24 params.
addParam<FunctionName>(
"admittance",
26 "Real component of the intrinsic admittance of the infinite medium "
27 "(default is $\\sqrt{\\frac{\\epsilon_0}{\\mu_0}} = "
28 "\\frac{1}{\\mu_0 c}$, or the admittance of free space).");
29 params.
deprecateParam(
"admittance",
"admittance_real",
"06/01/2027");
33 "Imaginary component of the intrinsic admittance of the infinite medium.");
36 "component", component,
"Variable field component (real or imaginary).");
44 _admittance_real(getFunction(
"admittance_real")),
45 _admittance_imag(getFunction(
"admittance_imag")),
47 _component(getParam<
MooseEnum>(
"component")),
49 _coupled_val(coupledVectorValue(
"coupled_field")),
50 _coupled_var_num(coupled(
"coupled_field")),
53 _coupled_dot(coupledVectorDot(
"coupled_field")),
55 _coupled_dot_du(coupledVectorDotDu(
"coupled_field"))
63 std::complex<double> field_dot_0(0, 0);
64 std::complex<double> field_dot_1(0, 0);
65 std::complex<double> field_dot_2(0, 0);
90 VectorValue<std::complex<double>> field_dot(field_dot_0, field_dot_1, field_dot_2);
97 std::complex<double> p_dot_test =
101 std::complex<double> res = -p_dot_test;
112 RealVectorValue prefix =
registerMooseObject("ElectromagneticsApp", VectorTransientAbsorbingBC)
virtual Real value(Real t, const Point &p) const
const MooseArray< Point > & _q_point
static InputParameters validParams()
const MooseArray< Point > & _normals
const VectorVariablePhiValue & _phi
const VectorVariableTestValue & _test
First order transient absorbing boundary condition for nonlinear vector variables.
const MooseEnum _component
Variable field component (real or imaginary)
static InputParameters validParams()
const VectorVariableValue & _coupled_dot
Coupled vector field variable time derivative.
VectorTransientAbsorbingBC(const InputParameters ¶meters)
virtual Real computeQpResidual() override
const VectorVariableValue & _u_dot
Vector field variable time derivative.
const VariableValue & _du_dot_du
Vector field variable dot du.
const VariableValue & _coupled_dot_du
Coupled vector field variable dot du.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const Function & _admittance_real
Real component of the intrinsic admittance of the infinite medium.
const Function & _admittance_imag
Imaginary component of the intrinsic admittance of the infinite medium.
const unsigned int _coupled_var_num
Coupled field vector variable id.
virtual Real computeQpJacobian() override
static const Real mu_0
Magnetic permeability of free space in SI units (H/m)
static const Real c
Speed of light in vacuum in SI units (m/s)