AGX Dynamics
2.37.3.2
Pump.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_PUMP_H
19
#define AGXHYDRAULICS_PUMP_H
20
21
#include <
agxHydraulics/FlowUnit.h
>
22
#include <
agxHydraulics/RotationalFlowConnector.h
>
23
24
namespace
agxHydraulics
25
{
26
27
AGX_DECLARE_POINTER_TYPES
(Pump);
28
38
class
AGXHYDRAULICS_EXPORT
Pump
:
public
agxHydraulics::RotationalFlowConnector
39
{
40
public
:
44
Pump
();
45
50
explicit
Pump
(
agx::Real
displacement);
51
52
53
// Methods called by the rest of the PowerLine/Hydraulics frame work.
54
public
:
55
DOXYGEN_START_INTERNAL_BLOCK
()
59
virtual
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
* createConstraint()
override
;
60
61
#ifndef SWIG
62
69
virtual
bool
store(
agxStream::StorageStream
& str)
const override
;
70
77
virtual
bool
restore(
agxStream::StorageStream
& str)
override
;
78
79
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxHydraulics::Pump
);
80
#endif
81
DOXYGEN_END_INTERNAL_BLOCK
()
82
83
84
protected
:
85
virtual
~Pump
() {}
86
87
DOXYGEN_START_INTERNAL_BLOCK
()
91
virtual
agx::Real
displacementToRatio(
agx::Real
displacement)
override
;
92
96
virtual
agx::Real
constraintForceToPressure(
agx::Real
constraintForce,
agx::Real
displacement)
const override
;
97
101
virtual
agx::Real
pressureToConstraintForce(
agx::Real
pressure,
agx::Real
displacement)
const override
;
102
DOXYGEN_END_INTERNAL_BLOCK
()
103
104
private
:
105
void
init
();
106
};
107
108
}
109
110
#endif
RotationalFlowConnector.h
agx::init
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type...
Definition:
PowerLineConstraints.h:150
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxHydraulics::RotationalFlowConnector
Abstract base class containing overlapping functionality for pump and motor.
Definition:
RotationalFlowConnector.h:31
AGXHYDRAULICS_EXPORT
#define AGXHYDRAULICS_EXPORT
Definition:
agxHydraulics/export.h:39
agxHydraulics::Pump::~Pump
virtual ~Pump()
Definition:
Pump.h:85
agxHydraulics
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition:
Accumulator.h:27
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
FlowUnit.h
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
agx::Real
double Real
Definition:
Real.h:42
agxHydraulics::Pump
A PowerLine Connector that connects to a rotational input and a flow output.
Definition:
Pump.h:38
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
Object.h:98
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
Object.h:97
include
agxHydraulics
Pump.h
Generated on Fri Apr 12 2024 12:40:25 for AGX Dynamics by
1.8.13