18#ifndef AGXHYDRAULICS_PISTON_ACTUATOR_H
19#define AGXHYDRAULICS_PISTON_ACTUATOR_H
191 virtual
bool preUpdate(
agx::Real timeStep) override;
200 virtual
agx::Real calculateChamberLength(
agxPowerLine::Side side) const;
#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.
agxHydraulics::PistonActuatorConnector * getChamberConnector(agxPowerLine::Side side)
agx::Real getPistonPosition() const
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agxHydraulics::FlowUnit * getFrontChamber()
agxHydraulics::PistonActuatorConnector * getFrontChamberConnector()
agxHydraulics::FlowUnit * getRearChamber()
const agxHydraulics::FlowUnit * getInputChamber() const
agxHydraulics::PistonActuatorConnector * getInputChamberConnector()
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.
PistonActuator(agx::Constraint *constraint, agxPowerLine::ConstraintGeometry *constraintGeometry, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
agxHydraulics::PistonActuatorConnector * getRearChamberConnector()
const agxHydraulics::PistonActuatorConnector * getInputChamberConnector() const
agxHydraulics::PistonActuatorConnector * getOutputChamberConnector()
bool connect(agxPowerLine::ActuatorBodyUnit *flowSideBody, agxPowerLine::ActuatorBodyUnit *oppositeSideBody, agxPowerLine::Side index)
const agxHydraulics::FlowUnit * getFrontChamber() const
agxHydraulics::FlowUnit * getInputChamber()
virtual void getConnectableDimensionTypes(agxPowerLine::PhysicalDimension::TypeVector &types, agxPowerLine::Side side) const override
PistonActuator(agx::Prismatic *prismatic, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
Create a PistonActuator from the given prismatic.
agxHydraulics::FlowUnit * getChamber(agxPowerLine::Side side)
Get one of the cylinder chambers.
const agxHydraulics::FlowUnit * getOutputChamber() const
virtual agxPowerLine::DimensionAndSide getConnectableDimension(agxPowerLine::PhysicalDimension::Type type, agxPowerLine::Side side) override
const agxHydraulics::PistonActuatorConnector * getOutputChamberConnector() const
virtual ~PistonActuator()
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
const agxHydraulics::FlowUnit * getRearChamber() const
agxHydraulics::FlowUnit * getOutputChamber()
void create(agx::Constraint *constraint, agx::Real inputChamberArea, agx::Real outputChamberArea, agx::Real fluidDensity)
An ActuatorBodyUnit forms a connection between the power line world and the rest of the simulation.
Description of how an Actuator is allowed to apply forces and torques on the body or bodies attached ...
virtual bool connect(agxPowerLine::Connector *connector)
Connect the unit to a connector.
Abstract base class for storing/restoring a line/drums with version control.
The base class for a constraint.
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...
Smart pointer for handling referenced counted objects.
#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.