24 _connected_to_shaft(false)
32 component->logError(
"This component must be connected to a shaft.");
UserObjectName _user_object_name
Shaft-connectable user object name.
ShaftConnectable(const Component *const component)
bool _connected_to_shaft
Flag indicating that a shaft has this component connected.
std::string _shaft_name
Name of the shaft component.
static const std::string component
static InputParameters validParams()
virtual void checkShaftConnection(const Component *const component) const
virtual VariableName getMomentofInertiaVariableName() const
Base class for THM components.
VariableName _moment_of_inertia_var_name
Moment of inertia variable name.
virtual VariableName getTorqueVariableName() const
virtual UserObjectName getShaftConnectedUserObjectName() const
VariableName _torque_var_name
Torque of variable name.
virtual void setShaftName(const std::string &name) const