AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
VariableDisplacementPump.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18#ifndef AGXHYDRAULICS_VARIABLE_DISPLACEMENT_PUMP_H
19#define AGXHYDRAULICS_VARIABLE_DISPLACEMENT_PUMP_H
20
23
24
25namespace agxPowerLine
26{
27 class RotationalDimension;
28}
29
30namespace 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
84
85
90
91
96
97
101 virtual agx::Real getPressure() const override;
102
103
104
105
106
107 // Deprecated methods.
108 public:
115
122
129
130
137
138
139
140 // Methods called by the rest of the PowerLine/Hydraulics frame work.
141 public:
143#ifndef SWIG
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
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:
219 agxPowerLine::TranslationalUnitRef m_poppetUnit;
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
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXHYDRAULICS_EXPORT
The PressureConnector is an abstract base class for all Connectors that has a pressure.
The VariableDisplacementPump is a pressure regulated pump that automatically alters its own displacem...
void setDisplacement(agx::Real displacement)
Set displacement of the pump, i.e., the volume of fluid moved for every unit of rotation of the input...
virtual agx::Real getPressure() const override
VariableDisplacementPump(agx::Real cutoffPressure, agx::Real deadheadPressure, agx::Real internalLeakage, agx::Real displacement, agx::Real regulatorArea)
Constraint implementation for constraining a number of physical dimensions of the same type.
The rotational has one rotational degree of freedom.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
Abstract base class for storing/restoring a line/drums with version control.
Utility class to hold custom implementations of constraints.
Definition agxUtil.h:464
Elementary constraint base class with interface and global constraint functionality.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
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
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition Real.h:42