AGX Dynamics  2.37.3.2
agxHydraulics::VariableDisplacementPump Class Reference

The VariableDisplacementPump is a pressure regulated pump that automatically alters its own displacement in order to maintain a target pressure. More...

#include <VariableDisplacementPump.h>

+ Inheritance diagram for agxHydraulics::VariableDisplacementPump:

Public Member Functions

 VariableDisplacementPump (agx::Real cutoffPressure, agx::Real deadheadPressure, agx::Real internalLeakage, agx::Real displacement, agx::Real regulatorArea)
 
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping (const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
 Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..) More...
 
agx::Real getCompensatorArea () const
 
agx::Real getDeadheadPressure () const
 
agx::Real getDisplacement () const
 
agx::Real getFlowRatio () const
 
agx::Real getMaximumPressure () const
 
virtual agx::Real getPressure () const override
 
agx::Real getRegulatorArea () const
 
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 shaft, while the pressure is less than the cutoff pressure. More...
 
void setFlowRatio (agx::Real ratio)
 
- Public Member Functions inherited from agxHydraulics::PressureConnector
virtual bool restore (agxStream::StorageStream &str)
 Restores internal data from stream. More...
 
virtual bool store (agxStream::StorageStream &str) const
 Stores internal data into stream. More...
 
- Public Member Functions inherited from agxPowerLine::Connector
 Connector ()
 create a connector More...
 
virtual bool addNotification (agxSDK::Simulation *simulation) override
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::Connector)
 
agx::Real calculateEfficiency () const
 calculate simulated efficiency More...
 
virtual agx::Real calculateViolation () const
 calculate violation for constraint More...
 
bool compareWithInputTypes (PhysicalDimensionRefVector &dimensions) const
 
bool compareWithOutputTypes (PhysicalDimensionRefVector &dimensions) const
 
virtual bool connect (agxPowerLine::Unit *unit)
 Connect a unit to this Connector. More...
 
virtual bool connect (agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit)
 
bool connect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 Connect on the physical dimension level only. More...
 
virtual bool connect (agxPowerLine::PhysicalDimension *inputDimension, agxPowerLine::Side inputSide, agxPowerLine::Side outputSide, agxPowerLine::PhysicalDimension *outputDimension)
 
bool connectDimensions (Unit *unit, agxPowerLine::Side mySide, agxPowerLine::Side unitSide)
 
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint ()=0
 Create the constraint (implement this to create whatever constraint you need) More...
 
virtual bool disconnect (agxPowerLine::Unit *unit)
 Disconnect the given unit from this Connector. More...
 
virtual bool disconnect ()
 
bool disconnect (agxPowerLine::PhysicalDimension *dimension, agxPowerLine::Side connectorSide, agxPowerLine::Side dimensionSide)
 
agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side)
 
const agxPowerLine::Connection * findConnection (const agxPowerLine::Unit *unit, agxPowerLine::Side side) const
 
agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findInputConnection (const agxPowerLine::Unit *unit) const
 
agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit)
 
const agxPowerLine::Connection * findOutputConnection (const agxPowerLine::Unit *unit) const
 
const agxPowerLine::ConnectionRefVector & getConnections (agxPowerLine::Side side) const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getConstraint () const
 
agx::Real getDamping () const
 
agxPowerLine::ElementaryPhysicalDimensionConstraint * getElementaryConstraint () const
 
bool getIgnoreForStoreRestoreStream () const
 
const agxPowerLine::Connection * getInputConnection (size_t index) const
 return a specific output connection More...
 
agxPowerLine::Connection * getInputConnection (size_t index)
 return a specific input connection More...
 
const agxPowerLine::ConnectionRefVector & getInputConnections () const
 return vector to all input connections from this connector More...
 
agxPowerLine::ConnectionRefVector & getInputConnections ()
 return vector to all input connections from this connector More...
 
PhysicalDimension * getInputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getInputTypes () const
 
bool getInputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getInputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
int getNumConnections (agxPowerLine::Side side) const
 
int getNumConnections () const
 
int getNumFreeConnections (agxPowerLine::Side side) const
 
int getNumFreeConnections () const
 
int getNumFreeInputConnections () const
 
int getNumFreeOutputConnections () const
 
int getNumInputConnections () const
 
int getNumOutputConnections () const
 
int getNumPossibleInputConnections () const
 
int getNumPossibleOutputConnections () const
 
const agxPowerLine::Connection * getOutputConnection (size_t index) const
 return a specific output connection More...
 
agxPowerLine::Connection * getOutputConnection (size_t index)
 return a specific input connection More...
 
const agxPowerLine::ConnectionRefVector & getOutputConnections () const
 return vector to all output connections from this connector More...
 
agxPowerLine::ConnectionRefVector & getOutputConnections ()
 return vector to all output connections from this connector More...
 
PhysicalDimension * getOutputDimension (const PhysicalDimension::Type dimensionType) const
 
const DimensionTypeVector & getOutputTypes () const
 
bool getOutputUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getOutputUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
agx::Real getPowerIn () const
 
agxPowerLine::PowerLine * getPowerLine () const
 
agx::Real getPowerOut () const
 
agx::Real getRatio () const
 
virtual agx::Real getRatio (agx::Real x) const
 
agx::Real getRatioDerivative () const
 
virtual agx::Real getRatioDerivative (agx::Real x) const
 
virtual agxPowerLine::Side getSide (const agxPowerLine::Unit *unit) const
 
const DimensionTypeVector & getTypes (agxPowerLine::Side side) const
 
bool getUnits (UnitPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitPtrSetVector &units, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitConstPtrSetVector &units, agxPowerLine::Side side, const bool startFromCleanUnitSet=true) const
 
bool getUnits (UnitConstPtrSetVector &units, const bool startFromCleanUnitSet=true) const
 
virtual agx::Real getViolation () const
 Returns the constraint violation for connectors with holonomic constraints. More...
 
bool hasFreeConnection (agxPowerLine::Side side) const
 
bool hasFreeConnection () const
 
bool hasFreeInputConnection () const
 
bool hasFreeOutputConnection () const
 
bool hasInputConnection (Connection *connection)
 Find out if the connection belongs to this connector. More...
 
bool hasOutputConnection (Connection *connection)
 
virtual void initConstraint ()
 
bool isConstraintValid () const
 
virtual bool isInput (const agxPowerLine::PhysicalDimension *dimension) const
 Determine if the given dimension is part of any of the input connections of this Connector. More...
 
virtual bool isOutput (Connection *connection) const
 Find out if a connection is output from this connector. More...
 
virtual bool isOutput (const agxPowerLine::PhysicalDimension *dimension) const
 Find out if the given dimension is part of any of the output connections. More...
 
virtual bool postRestore (agxStream::StorageStream &str)
 
virtual bool postStore (agxStream::StorageStream &str) const
 Set values of constraints. More...
 
virtual bool removeNotification (agxUtil::ConstraintHolder *holder, agxSDK::Simulation *simulation) override
 remove connector and constraint from simulation More...
 
virtual void restore (agxStream::InputArchive &in) override
 
void setConstraint (agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation *constraint)
 set the constraint that represents this connector in the solver. More...
 
void setDamping (agx::Real damping)
 Set the damping of the constraint. More...
 
void setIgnoreForStoreRestoreStream (bool ignore)
 
void setNumPossibleInputConnections (int num)
 Define number of input dimensions the constraint should handle. More...
 
void setNumPossibleOutputConnections (int num)
 Define number of output dimensions the constraint should handle. More...
 
void setPowerLine (agxPowerLine::PowerLine *powerLine)
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual bool vetoConnect (agxPowerLine::Unit *unit) const
 
- Public Member Functions inherited from agxPowerLine::SubGraph
 SubGraph ()
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::SubGraph)
 
virtual void getConnectorsRecursive (ConnectorPtrVector &connectors)
 Fill the given vector with the Connectors that are held by this SubGraph. More...
 
Connector * getEnclosingConnector ()
 
const Connector * getEnclosingConnector () const
 
SubGraph * getEnclosingGraph ()
 
const SubGraph * getEnclosingGraph () const
 
Unit * getEnclosingUnit ()
 
const Unit * getEnclosingUnit () const
 
const agxPowerLine::ConnectorRefVector & getInternalConnectors () const
 
const agxPowerLine::UnitRefVector & getInternalUnits () const
 
const agx::Name & getName () const
 
SubGraph * getRootEnclosingGraph ()
 
const SubGraph * getRootEnclosingGraph () const
 
virtual void getUnitsRecursive (UnitPtrVector &units)
 Fill the given vector with the Units that are held by this SubGraph. More...
 
bool isEnclosedWithin (const SubGraph *component) const
 
virtual bool postUpdate (agx::Real timeStep)
 
virtual void prepareForRestore ()
 
virtual void prepareForStore ()
 
virtual bool preUpdate (agx::Real timeStep)
 
void setName (const agx::Name &name)
 Set the name of this power line component. More...
 
void spreadPowerLineToGraph ()
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
- Public Member Functions inherited from agxStream::Serializable
virtual ~Serializable ()
 Destructor for normal C++ use but hidden from SWIG bindings. More...
 
virtual const char * getClassName () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
virtual StorageAgent * getStorageAgent () const =0
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from agxPowerLine::Connector
static PhysicalDimension * getDimension (const ConnectionRefVector &connections, const PhysicalDimension::Type dimensionType)
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Public Member Functions inherited from agxStream::Serializable
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 
- Protected Member Functions inherited from agxHydraulics::PressureConnector
 PressureConnector ()
 
virtual ~PressureConnector ()
 
- Protected Member Functions inherited from agxPowerLine::Connector
virtual ~Connector ()
 
virtual bool connect (agxPowerLine::Unit *inputUnit, agxPowerLine::Side inputUnitSide, agxPowerLine::Side outputUnitSide, agxPowerLine::Unit *outputUnit)
 
bool getUnits (UnitPtrSetVector &units, ConnectionRefVector &connections, const bool startFromCleanUnitSet=true)
 
bool getUnits (UnitConstPtrSetVector &units, const ConnectionRefVector &connections, const bool startFromCleanUnitSet=true) const
 
bool hasNonValidInputConnection () const
 
bool hasNonValidOutputConnection () const
 
void setRatio (agx::Real ratio)
 set/get the ratio (scaling of load through the constraint). More...
 
void setRatioDerivative (agx::Real ratioDerivative)
 
void uninitialize ()
 
- Protected Member Functions inherited from agxPowerLine::SubGraph
virtual ~SubGraph ()
 
void addInternalConnector (agxPowerLine::Connector *connector)
 
void addInternalUnit (agxPowerLine::Unit *unit)
 
void removeInternalConnector (agxPowerLine::Connector *connector)
 
void removeInternalUnit (agxPowerLine::Unit *unit)
 
agx::Bool replaceInternalUnit (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from agxStream::Serializable
 Serializable ()
 Default constructor. More...
 
 Serializable (const Serializable &other)
 Copy constructor. More...
 
void generateUuid ()
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 
- Protected Attributes inherited from agxPowerLine::Connector
PhysicalDimensionMultiBodyConstraintImplementation * m_constraint
 
agx::Real m_damping
 
bool m_ignoreMeForStoreRestoreStream
 
ConnectionRefVector m_inputConnections
 
DimensionTypeVector m_inputTypes
 
int m_numPossibleInputs
 
int m_numPossibleOutputs
 
ConnectionRefVector m_outputConnections
 
DimensionTypeVector m_outputTypes
 
agx::Real m_ratio
 
agx::Real m_ratioDerivative
 
- Protected Attributes inherited from agxPowerLine::SubGraph
SubGraphObserver m_enclosingGraph
 
ConnectorRefVector m_internalConnectors
 
UnitRefVector m_internalUnits
 
agx::Name m_name
 
PowerLine * m_powerLine
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

The VariableDisplacementPump is a pressure regulated pump that automatically alters its own displacement in order to maintain a target pressure.

As the pressure increases above the cutoff pressure the displacement is reduced in order to maintain the target pressure.

The pressure at which the displacement starts to decrease is called the cutoff pressure and the pressure at which the displacement reaches zero is called the deadhead pressure. The pump is then completely passive.

The pressure regulation is realized using a poppet called the regulator. The regulator is pushed on by the fluid in the pump, but held in place by a spring. The larger the area the larger the force on the poppet and the quicker the pump will respond to changes in the pressure. However, a too quickly responding regulator may start to oscilate after a sudden pressure change.

The pump has an internal leakage parameter that defines the leakage in the pump as the pressure increases.

Definition at line 55 of file VariableDisplacementPump.h.

Constructor & Destructor Documentation

◆ VariableDisplacementPump()

agxHydraulics::VariableDisplacementPump::VariableDisplacementPump ( agx::Real  cutoffPressure,
agx::Real  deadheadPressure,
agx::Real  internalLeakage,
agx::Real  displacement,
agx::Real  regulatorArea 
)
Parameters
cutoffPressure- The pressure at which displacement starts to decrease rapidly with increasing pressure.
deadheadPressure- The pressure above which the pump produces no flow.
internalLeakage- Leakage-per-pressure parameter.
displacement- Fluid volume displaced per radian of rotation at the input.
regulatorArea- The responsiveness of the regulator.

Member Function Documentation

◆ calculateComplianceAndDamping()

virtual agx::RegularizationParameters::VariableType agxHydraulics::VariableDisplacementPump::calculateComplianceAndDamping ( const agx::Real  ,
agx::Real &  ,
agx::Real &   
)
overridevirtual

Calculate the compliance and damping according to the connector properties (efficiency, ratio, ..)

Reimplemented from agxPowerLine::Connector.

◆ getCompensatorArea()

agx::Real agxHydraulics::VariableDisplacementPump::getCompensatorArea ( ) const
Deprecated:
Use getRegulatorArea instead.
See also
getRegulatorArea
Returns
The area of the regulator.

◆ getDeadheadPressure()

agx::Real agxHydraulics::VariableDisplacementPump::getDeadheadPressure ( ) const
Returns
The pressure at which the pump reaches zero displacement.

◆ getDisplacement()

agx::Real agxHydraulics::VariableDisplacementPump::getDisplacement ( ) const
Returns
The volume of fluid moved for every unit of rotation of the input shaft for pressures less than the cutoff pressure.

◆ getFlowRatio()

agx::Real agxHydraulics::VariableDisplacementPump::getFlowRatio ( ) const
Deprecated:
Uset getDisplacement instead.
See also
getDisplacement
Returns
The volume of fluid moved for every unit of rotation of the input shaft.

◆ getMaximumPressure()

agx::Real agxHydraulics::VariableDisplacementPump::getMaximumPressure ( ) const
Deprecated:
Use getDeadheadPressure instead.
See also
getDeadheadPressure
Returns
The deadhead pressure.

◆ getPressure()

virtual agx::Real agxHydraulics::VariableDisplacementPump::getPressure ( ) const
overridevirtual
Returns
The pressure currently generated by the pump.

Implements agxHydraulics::PressureConnector.

◆ getRegulatorArea()

agx::Real agxHydraulics::VariableDisplacementPump::getRegulatorArea ( ) const
Returns
The area of the contact surface between the fluid and the regulator.

◆ setDisplacement()

void agxHydraulics::VariableDisplacementPump::setDisplacement ( agx::Real  displacement)

Set displacement of the pump, i.e., the volume of fluid moved for every unit of rotation of the input shaft, while the pressure is less than the cutoff pressure.

◆ setFlowRatio()

void agxHydraulics::VariableDisplacementPump::setFlowRatio ( agx::Real  ratio)
Deprecated:
Use setDisplacement instead.
See also
setDisplacement Set the volume of fluid that is moved for every unit of rotation of the input shaft.

The documentation for this class was generated from the following file: