21 params.
addRequiredParam<
unsigned int>(
"component",
"The vector component of interest");
23 "Computes velocity in the direction of a 1-D element from a vector velocity function");
29 _vel_fn(getFunction(
"vel_fn")),
30 _component(getParam<unsigned
int>(
"component"))
38 RealVectorValue dir = el->node_ref(1) - el->node_ref(0);
registerMooseObject("ThermalHydraulicsApp", VectorVelocityIC)
void ErrorVector unsigned int
virtual MooseMesh & mesh() override
virtual Real value(Real t, const Point &p) const
FEProblemBase & _fe_problem
const Elem *const & _current_elem
static InputParameters validParams()
virtual Elem * elemPtr(const dof_id_type i)
Computes velocity in the direction of a 1-D element from a vector velocity function.
virtual Real value(const Point &p) override
static InputParameters validParams()
const unsigned int _component
Vector component to use.
VectorVelocityIC(const InputParameters ¶meters)
const Function & _vel_fn
Velocity function.