AGX Dynamics  2.35.0.1
MotorUnit.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 
18 #ifndef AGXHYDRAULICS_MOTOR_UNIT_H
19 #define AGXHYDRAULICS_MOTOR_UNIT_H
20 
21 #include <agxHydraulics/FlowUnit.h>
22 
23 namespace agxPowerLine
24 {
25  class RotationalDimension;
27 }
28 
29 namespace agxHydraulics
30 {
31  class Motor;
33 
34  namespace deprecated
35  {
37 
46  {
47  public:
51  MotorUnit(agx::Real pipeLength, agx::Real pipeArea, agx::Real fluidDensity);
52 
58 
65 
66 
67  // Methods called by the rest of the PowerLine/Hydraulics frame work.
68  public:
71 
74 
76 
81  virtual bool store(agxStream::StorageStream& str) const override;
82 
88  virtual bool restore(agxStream::StorageStream& str) override;
90 
92 
93  protected:
95  virtual ~MotorUnit() {}
96 
97  private:
98  agxHydraulics::MotorRef m_motorConnector;
99  agxPowerLine::RotationalDimensionRef m_rotationalDimension;
100  };
101  }
102 }
103 
104 #endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXHYDRAULICS_EXPORT
FlowUnit is the base class for Units that contains a FlowDimension.
Definition: FlowUnit.h:67
A PowerLine Connector that connects a flow input to a rotational output.
Definition: Motor.h:41
agxPowerLine::RotationalDimension * getRotationalDimension()
Provides access to the RotationalDimension.
Motor * getMotorConnector()
Provides access to the MotorConnector.
MotorUnit(agx::Real pipeLength, agx::Real pipeArea, agx::Real fluidDensity)
Create a new MotorUnit with the given fluid chamber properties.
const agxPowerLine::RotationalDimension * getRotationalDimension() const
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
The rotational has one rotational degree of freedom.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
Templated vector class.
Definition: agx/Vector.h:53
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition: Accumulator.h:28
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:24
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
double Real
Definition: Real.h:42