AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
Motor.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
18#ifndef AGXHYDRAULICS_MOTOR_H
19#define AGXHYDRAULICS_MOTOR_H
20
23
25
26namespace agxHydraulics
27{
29
41 {
42 public:
47
52 explicit Motor(agx::Real displacement);
53
54 // Methods called by the rest of the PowerLine/Hydraulics frame work.
55 public:
57
59#ifndef SWIG
66 virtual bool store(agxStream::StorageStream& str) const override;
67
74 virtual bool restore(agxStream::StorageStream& str) override;
75
77#endif
79
80 protected:
81 virtual ~Motor() {}
82
83 virtual agx::Real displacementToRatio(agx::Real displacement) override;
84 virtual agx::Real constraintForceToPressure(agx::Real constraintForce, agx::Real displacement) const override;
85 virtual agx::Real pressureToConstraintForce(agx::Real pressure, agx::Real displacement) const override;
86 };
87
88
89
90}
91
92#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
A PowerLine Connector that connects a flow input to a rotational output.
Definition Motor.h:41
virtual agx::Real displacementToRatio(agx::Real displacement) override
Motor(agx::Real displacement)
Create a new MotorConnector with the specified displacement.
virtual agx::Real pressureToConstraintForce(agx::Real pressure, agx::Real displacement) const override
Motor()
Create a new MotorConnector with displacement 1.
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint() override
Create the constraint (implement this to create whatever constraint you need)
virtual agx::Real constraintForceToPressure(agx::Real constraintForce, agx::Real displacement) const override
Abstract base class containing overlapping functionality for pump and motor.
Constraint implementation for constraining a number of physical dimensions of the same type.
Abstract base class for storing/restoring a line/drums with version control.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition Accumulator.h:28
double Real
Definition Real.h:42