19#ifndef AGXHYDRAULICS_FLOW_CONNECTOR_H
20#define AGXHYDRAULICS_FLOW_CONNECTOR_H
153 void setStoredFluid(
agx::Real storedFluid);
159 virtual
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* createConstraint() override;
165 virtual
agx::RegularizationParameters::VariableType calculateComplianceAndDamping(
166 const
agx::Real timeStep,
agx::Real& compliance,
agx::Real& damping) override;
171 void setIsImpacting(
bool impact);
216 agx::Real m_volumeExpansionPressureRatio;
#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)
A FlowConnector is a junction of a set of FlowUnits.
static void setDefaultDamping(agx::Real damping)
Set the default damping for new flow connectors.
void setDamping(agx::Real damping)
Set the damping of the flow constraint.
virtual agx::Real getPressure() const override
agx::Real getStoredFluid() const
Only valid for holonomic FlowConnectors.
static agx::Real getDefaultCompliance()
void setCompliance(agx::Real volumePerPressure)
Set the compliance of the flow constraint.
FlowConnector(bool holonomic=true)
A flow connector can either be holonomic or nonholonomic.
static agx::Real getDefaultDamping()
agx::Real getVolumeExpansionPressureRatio() const
Alias for getCompliance().
virtual bool connect(agxPowerLine::Unit *inputUnit, agxPowerLine::Side inputUnitSide, agxPowerLine::Side outputUnitSide, agxPowerLine::Unit *outputUnit) override
virtual bool connect(agxPowerLine::Side mySide, agxPowerLine::Side unitSide, agxPowerLine::Unit *unit) override
Connect the given unit to this FlowConnector.
static void setDefaultCompliance(agx::Real compliance)
Set the default compliance for new flow connectors.
agx::Real getCompliance() const
void setVolumeExpansionPressureRatio(agx::Real ratio)
Alias for setCompliance(agx::Real).
agx::Real getDamping() const
The PressureConnector is an abstract base class for all Connectors that has a pressure.
virtual bool connect(agxPowerLine::Unit *unit)
Connect a unit to this Connector.
Abstract base class for storing/restoring a line/drums with version control.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
agxPowerLine contains a collection of connected components that transport power across a system.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.