19 "Computes the time derivative of the azimuthal component " 20 "of the magnetic field assuming cylindrical electric field. The electric field can " 21 "be supplied as a vector or scalar components.");
23 params.
addCoupledVar(
"Efield_X",
"The x-component of the electric field");
24 params.
addCoupledVar(
"Efield_Y",
"The y-component of the electric field");
30 _is_efield_vector(isCoupled(
"Efield")),
31 _is_efield_scalar(isCoupled(
"Efield_X") && isCoupled(
"Efield_Y")),
32 _efield_curl(_is_efield_vector ? coupledCurl(
"Efield") : _vector_curl_zero),
33 _efield_x_grad(_is_efield_scalar ? coupledGradient(
"Efield_X") : _grad_zero),
34 _efield_y_grad(_is_efield_scalar ? coupledGradient(
"Efield_Y") : _grad_zero)
38 mooseError(
"Both a vector and scalar components of the electric field were provided! Please " 44 mooseError(
"Neither a vector nor two scalar components of the electric field were provided! " 45 "Please check the input parameters.");
AzimuthMagneticTimeDerivRZ(const InputParameters ¶meters)
Computes the time derivative of the azimuthal component of the magnetic field assuming cylindrical el...
virtual Real computeValue() override
const bool _is_efield_scalar
True if both the x- & y- component of the electric field were provided.
registerMooseObject("ElectromagneticsApp", AzimuthMagneticTimeDerivRZ)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VectorVariableCurl & _efield_curl
Curl of the electric field vector.
void mooseError(Args &&... args) const
const bool _is_efield_vector
True if the vector of the electric field was provided.
static InputParameters validParams()
const VariableGradient & _efield_y_grad
Gradient of the y-component of the electric field.
static InputParameters validParams()
const VariableGradient & _efield_x_grad
Gradient of the x-component of the electric field.