https://mooseframework.inl.gov
ADShaftConnectedMotorUserObject.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "GeneralUserObject.h"
14 
20 {
21 public:
23 
24  virtual ADReal getTorque() const override;
25  virtual ADReal getMomentOfInertia() const override;
26  virtual void initialize() override;
27  virtual void execute() override;
28  virtual void finalize() override;
29 
30 protected:
37 
38 public:
40 };
const Function & _inertia_fn
Moment of inertia as a function of shaft speed.
virtual ADReal getTorque() const override
const Function & _torque_fn
Torque as a function of shaft speed.
User object to provide data for a shaft-connected motor.
const ADVariableValue & _shaft_speed
Shaft speed.
ADShaftConnectedMotorUserObject(const InputParameters &params)
virtual ADReal getMomentOfInertia() const override
Interface class for user objects that are connected to a shaft.