20 params.
addRequiredParam<FunctionName>(
"torque",
"Torque as a function of shaft speed");
22 "Moment of inertia as a function of shaft speed");
25 "Computes the torque and moment of inertia of a shaft connected motor");
32 _torque_fn(getFunction(
"torque")),
33 _inertia_fn(getFunction(
"inertia")),
34 _shaft_speed(coupledScalarValue(
"shaft_speed"))
46 std::vector<dof_id_type> & )
const ShaftConnectedMotorUserObject(const InputParameters ¶ms)
static InputParameters validParams()
virtual Real getTorque() const override
virtual void initialize() override
const VariableValue & _shaft_speed
Shaft speed.
registerMooseObject("ThermalHydraulicsApp", ShaftConnectedMotorUserObject)
virtual Real getMomentOfInertia() const override
virtual void finalize() override
const Function & _torque_fn
Torque as a function of shaft speed.
Interface class for user objects that are connected to a shaft.
static InputParameters validParams()
User object to provide data for a shaft-connected motor.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void getTorqueJacobianData(DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const override
virtual Real value(Real t, const Point &p) const
virtual void getMomentOfInertiaJacobianData(DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const override
virtual void execute() override
static InputParameters validParams()
const Function & _inertia_fn
Moment of inertia as a function of shaft speed.