AGX Dynamics  2.37.3.2
VariableDisplacementPump.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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_VARIABLE_DISPLACEMENT_PUMP_H
19 #define AGXHYDRAULICS_VARIABLE_DISPLACEMENT_PUMP_H
20 
23 
24 
25 namespace agxPowerLine
26 {
27  class RotationalDimension;
28 }
29 
30 namespace agxHydraulics
31 {
33 
34 
56  {
57  public:
67  agx::Real cutoffPressure, agx::Real deadheadPressure,
68  agx::Real internalLeakage, agx::Real displacement,
69  agx::Real regulatorArea);
70 
71 
77  void setDisplacement(agx::Real displacement);
78 
83  agx::Real getDisplacement() const;
84 
85 
89  agx::Real getRegulatorArea() const;
90 
91 
95  agx::Real getDeadheadPressure() const;
96 
97 
101  virtual agx::Real getPressure() const override;
102 
103 
104 
105 
106 
107  // Deprecated methods.
108  public:
114  agx::Real getMaximumPressure() const;
115 
121  agx::Real getFlowRatio() const;
122 
128  void setFlowRatio(agx::Real ratio);
129 
130 
136  agx::Real getCompensatorArea() const;
137 
138 
139 
140  // Methods called by the rest of the PowerLine/Hydraulics frame work.
141  public:
143 #ifndef SWIG
144 
147  virtual bool store(agxStream::StorageStream& str) const override;
148 
152  virtual bool restore(agxStream::StorageStream& str) override;
153 
156 #endif
157 
160  agx::ElementaryConstraint* getSpringForceConstraint() const;
161 
164  agx::ElementaryConstraint* getUpperSpringStopperConstraint() const;
165 
168  agx::ElementaryConstraint* getLowerSpringStopperConstraint() const;
169 
170 
176  void setRotationalDimension(agxPowerLine::RotationalDimension* rotationalDimension);
177 
181  agxPowerLine::RotationalDimension* getRotationalDimension();
182 
187  agxPowerLine::TranslationalDimension* getPoppetDimension();
188 
194  virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* createConstraint() override;
195 
197 
198  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(
199  const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
200 
202 
203 
208  virtual bool addNotification(agxSDK::Simulation* simulation) override;
209 
210 #ifndef SWIG
211  virtual bool removeNotification(agxUtil::ConstraintHolder* holder, agxSDK::Simulation* simulation) override;
212 #endif
214 
215 
216 
217  private:
220 
222  agx::ConstraintRef m_springConstraint;
223 
224  // The rotational dimension that is driving the pump. Owned by some Unit.
225  agxPowerLine::RotationalDimension* m_rotationalDimension;
226 
227  agx::Real m_springRestPosition;
228  agx::Real m_springConstant;
229 
230  agx::Real m_deadheadPressure;
231 
232  agx::Real m_internalLeakage;
233  agx::Real m_regulatorArea;
234  };
235 }
236 
237 #endif
238 
Utility class to hold custom implementations of constraints.
Definition: agxUtil.h:463
Elementary constraint base class with interface and global constraint functionality.
Constraint implementation for constraining a number of physical dimensions of the same type...
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agxPowerLine contains a collection of connected components that transport power across a system...
Definition: MotorUnit.h:23
The rotational has one rotational degree of freedom.
#define AGXHYDRAULICS_EXPORT
The VariableDisplacementPump is a pressure regulated pump that automatically alters its own displacem...
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition: Accumulator.h:27
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
#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
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
The PressureConnector is an abstract base class for all Connectors that has a pressure.
double Real
Definition: Real.h:42
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97