AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
PumpUnit.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#ifndef AGXHYDRAULICS_PUMP_UNIT_H
18#define AGXHYDRAULICS_PUMP_UNIT_H
19
21#include <agxHydraulics/Pump.h>
22
23namespace agxPowerLine
24{
25 class RotationalDimension;
26 AGX_DECLARE_POINTER_TYPES(RotationalDimension);
27}
28
29namespace agxHydraulics
30{
31 class Pump;
33
34 namespace deprecated
35 {
36
38
47 {
48 public:
52 PumpUnit(agx::Real pipeLength, agx::Real pipeArea, agx::Real fluidDensity);
53
59
66
67
68 // Methods called by the rest of the PowerLine/Hydraulics frame work.
69 public:
72
75
77
82 virtual bool store(agxStream::StorageStream& str) const override;
83
89 virtual bool restore(agxStream::StorageStream& str) override;
91
93
94 protected:
96 virtual ~PumpUnit() {}
97
98 private:
99 agxHydraulics::PumpRef m_pumpConnector;
100 agxPowerLine::RotationalDimensionRef m_rotationalDimension;
101 };
102 }
103}
104
105#endif
#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
FlowUnit is the base class for Units that contains a FlowDimension.
Definition FlowUnit.h:67
A PowerLine Connector that connects to a rotational input and a flow output.
Definition Pump.h:39
PumpUnit(agx::Real pipeLength, agx::Real pipeArea, agx::Real fluidDensity)
Create a new PumpUnit with the given fluid chamber properties.
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
agxPowerLine::RotationalDimension * getRotationalDimension()
Provides access to the RotationalDimension.
const agxPowerLine::RotationalDimension * getRotationalDimension() const
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
Pump * getPumpConnector()
Provides access to the Pump.
The rotational has one rotational degree of freedom.
Abstract base class for storing/restoring a line/drums with version control.
Templated vector class.
Definition agx/Vector.h:53
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
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
double Real
Definition Real.h:42