18 #ifndef AGXHYDRAULICS_PISTON_ACTUATOR_H
19 #define AGXHYDRAULICS_PISTON_ACTUATOR_H
184 virtual
bool preUpdate(
agx::
Real timeStep) override;
#define AGX_DECLARE_POINTER_TYPES(type)
#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
#define AGX_DECLARE_VECTOR_TYPES(type)
FlowUnit is the base class for Units that contains a FlowDimension.
The PistonChamberConnector is an internal Connector to the PistonActuator.
A PistonActuator is a model of a hydraulic cylinder.
void create(agx::Constraint1DOF *constraint1DOF, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
agxHydraulics::PistonActuatorConnector * getInputChamberConnector()
const agxHydraulics::FlowUnit * getOutputChamber() const
agx::Real getPistonPosition() const
agxHydraulics::PistonActuatorConnector * getRearChamberConnector()
agxHydraulics::PistonActuatorConnector * getFrontChamberConnector()
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agxHydraulics::FlowUnit * getRearChamber()
agxHydraulics::PistonActuatorConnector * getChamberConnector(agxPowerLine::Side side)
agxHydraulics::FlowUnit * getChamber(agxPowerLine::Side side)
Get one of the cylinder chambers.
agxHydraulics::FlowUnit * getInputChamber()
PistonActuator(agx::DistanceJoint *distancejoint, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
Same as the constructor taking a agx::Prismatic, but with a agx::DistanceJoint instead.
agxHydraulics::FlowUnit * getFrontChamber()
const agxHydraulics::FlowUnit * getRearChamber() const
bool connect(agxPowerLine::ActuatorBodyUnit *flowSideBody, agxPowerLine::ActuatorBodyUnit *oppositeSideBody, agxPowerLine::Side index)
const agxHydraulics::PistonActuatorConnector * getInputChamberConnector() const
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
const agxHydraulics::PistonActuatorConnector * getOutputChamberConnector() const
PistonActuator(agx::Prismatic *prismatic, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
Create a PistonActuator from the given prismatic.
agxHydraulics::PistonActuatorConnector * getOutputChamberConnector()
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
Stores internal data into stream.
const agxHydraulics::FlowUnit * getFrontChamber() const
virtual ~PistonActuator()
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
const agxHydraulics::FlowUnit * getInputChamber() const
agxHydraulics::FlowUnit * getOutputChamber()
An ActuatorBodyUnit forms a connection between the power line world and the rest of the simulation.
virtual bool connect(agxPowerLine::Connector *connector)
Connect the unit to a connector.
Abstract base class for storing/restoring a line/drums with version control.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
This joint will preserve the initial distance between a body and a point in world coordinate or betwe...
A prismatic joint keeps a fixed relative orientation between the attached bodies but allows them to s...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
agxPowerLine contains a collection of connected components that transport power across a system.
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
The agx namespace contains the dynamics/math part of the AGX Dynamics API.