27 virtual void execute()
override;
DualNumber< Real, DNDerivativeType, true > ADReal
Interface class for user objects that are connected to a shaft.
User object to provide data for a shaft-connected motor.
virtual ADReal getMomentOfInertia() const override
virtual void finalize() override
const Function & _torque_fn
Torque as a function of shaft speed.
virtual void execute() override
const ADVariableValue & _shaft_speed
Shaft speed.
virtual void initialize() override
static InputParameters validParams()
virtual ADReal getTorque() const override
const Function & _inertia_fn
Moment of inertia as a function of shaft speed.
VariableValueTempl< true > ADVariableValue