AGXDynamics
2.35.0.3
VariableDisplacementPump.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_VARIABLE_DISPLACEMENT_PUMP_H
19
#define AGXHYDRAULICS_VARIABLE_DISPLACEMENT_PUMP_H
20
21
#include <
agxPowerLine/TranslationalUnit.h
>
22
#include <
agxHydraulics/PressureConnector.h
>
23
24
25
namespace
agxPowerLine
26
{
27
class
RotationalDimension;
28
}
29
30
namespace
agxHydraulics
31
{
32
AGX_DECLARE_POINTER_TYPES
(
VariableDisplacementPump
);
33
34
55
class
AGXHYDRAULICS_EXPORT
VariableDisplacementPump
:
public
agxHydraulics::PressureConnector
56
{
57
public
:
66
VariableDisplacementPump
(
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
:
142
DOXYGEN_START_INTERNAL_BLOCK
()
143
#ifndef SWIG
144
147
virtual
bool
store(
agxStream::StorageStream
& str)
const override
;
148
152
virtual
bool
restore(
agxStream::StorageStream
& str)
override
;
153
154
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxHydraulics::VariableDisplacementPump
);
155
VariableDisplacementPump
() {}
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
196
DOXYGEN_END_INTERNAL_BLOCK
()
197
198
virtual
agx::RegularizationParameters::VariableType
calculateComplianceAndDamping(
199
const
agx::Real
timeStep,
agx::Real
& compliance,
agx::Real
& damping)
override
;
200
201
DOXYGEN_START_INTERNAL_BLOCK
()
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
213
DOXYGEN_END_INTERNAL_BLOCK
()
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
agx::ElementaryConstraint
Elementary constraint base class with interface and global constraint functionality.
Definition:
ElementaryConstraint.h:53
agx::Real
double Real
Definition:
Real.h:42
agx::RegularizationParameters::VariableType
VariableType
Definition:
RegularizationParameters.h:32
agxHydraulics::VariableDisplacementPump
The VariableDisplacementPump is a pressure regulated pump that automatically alters its own displacem...
Definition:
VariableDisplacementPump.h:55
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
macros.h:97
agxUtil::ConstraintHolder
Utility class to hold custom implementations of constraints.
Definition:
agxUtil.h:463
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type.
Definition:
PowerLineConstraints.h:150
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
macros.h:96
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
AGXSTREAM_DECLARE_SERIALIZABLE
#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
AGXHYDRAULICS_EXPORT
#define AGXHYDRAULICS_EXPORT
Definition:
agxHydraulics/export.h:39
agx::ref_ptr< TranslationalUnit >
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:126
agxHydraulics::PressureConnector
The PressureConnector is an abstract base class for all Connectors that has a pressure.
Definition:
PressureConnector.h:36
agxPowerLine::RotationalDimension
The rotational has one rotational degree of freedom.
Definition:
RotationalDimension.h:45
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition:
MotorUnit.h:23
agxHydraulics
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition:
Accumulator.h:27
PressureConnector.h
TranslationalUnit.h
include
agxHydraulics
VariableDisplacementPump.h
Generated on Fri Feb 10 2023 14:06:19 for AGXDynamics by
1.8.17