21 "Directional vector of 1D elements in 3D space");
22 params.
addRequiredParam<
unsigned int>(
"component",
"The vector component of interest");
23 params.
addClassDescription(
"Computes the component of a vector-valued velocity field given by "
24 "its magnitude and direction.");
30 _arhoA(coupledValue(
"arhoA")),
31 _arhouA(coupledValue(
"arhouA")),
32 _dir(getMaterialProperty<RealVectorValue>(
"direction")),
33 _component(getParam<unsigned
int>(
"component"))
42 mooseAssert(
_arhoA[
_qp] != 0,
"alpha*rho*A is 0, unable to compute velocity");
registerMooseObject("ThermalHydraulicsApp", VectorVelocityComponentAux)
void ErrorVector unsigned int
static InputParameters validParams()
const std::string & name() const
void mooseError(Args &&... args) const
Computes the component of a vector (given by its magnitude and direction)
virtual Real computeValue()
const VariableValue & _arhoA
Solution variable arhoA.
const MaterialProperty< RealVectorValue > & _dir
Direction.
VectorVelocityComponentAux(const InputParameters ¶meters)
const unsigned int _component
Vector component to use.
const VariableValue & _arhouA
Solution variable arhouA.
static InputParameters validParams()