AGX Dynamics
2.41.0.0
Loading...
Searching...
No Matches
Pipe.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2025. 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
#ifndef AGXHYDRAULICS_PIPE_H
18
#define AGXHYDRAULICS_PIPE_H
19
20
21
#include <
agxHydraulics/FlowUnit.h
>
22
23
namespace
agxHydraulics
24
{
25
31
class
AGXHYDRAULICS_EXPORT
Pipe
:
public
agxHydraulics::FlowUnit
32
{
33
public
:
40
Pipe
(
agx::Real
length,
agx::Real
area,
agx::Real
density);
41
42
Pipe
(
agx::Real
length,
agx::Real
area,
agx::Real
density,
agx::UInt8
elementIndex,
agx::RigidBody
* body);
43
44
// Methods called by the rest of the PowerLine/Hydraulics frame work.
45
public
:
46
47
DOXYGEN_START_INTERNAL_BLOCK
()
48
#ifndef SWIG
53
virtual
bool
postStore(
agxStream::StorageStream
& str)
const override
;
54
60
virtual
bool
postRestore(
agxStream::StorageStream
& str)
override
;
61
66
virtual
bool
store(
agxStream::StorageStream
& str)
const override
;
67
71
virtual
bool
restore(
agxStream::StorageStream
& str)
override
;
72
73
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxHydraulics::Pipe
);
74
#endif
75
DOXYGEN_END_INTERNAL_BLOCK
()
76
77
protected:
78
Pipe
();
79
virtual ~
Pipe
();
80
};
81
82
AGX_DECLARE_POINTER_TYPES
(
Pipe
);
83
AGX_DECLARE_VECTOR_TYPES
(
Pipe
);
84
}
85
86
#endif
FlowUnit.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
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_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition:
agx/Vector.h:34
agxHydraulics::FlowUnit
FlowUnit is the base class for Units that contains a FlowDimension.
Definition:
FlowUnit.h:59
agxHydraulics::Pipe
A pipe carries fluid flow through the hydraulics system.
Definition:
Pipe.h:32
agxHydraulics::Pipe::Pipe
Pipe(agx::Real length, agx::Real area, agx::Real density, agx::UInt8 elementIndex, agx::RigidBody *body)
agxHydraulics::Pipe::Pipe
Pipe(agx::Real length, agx::Real area, agx::Real density)
Create a new pipe.
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:49
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:49
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
macros.h:89
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
macros.h:88
agxHydraulics
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition:
Accumulator.h:28
agx::Real
double Real
Definition:
Real.h:41
agx::UInt8
uint8_t UInt8
Definition:
Integer.h:30
include
agxHydraulics
Pipe.h
Generated by
1.9.6