18 #ifndef AGXHYDRAULICS_CONSTANT_FLOW_VALVE_H
19 #define AGXHYDRAULICS_CONSTANT_FLOW_VALVE_H
53 agx::Real targetFlowRate,
bool allowPumping =
false);
106 virtual
bool preUpdate(
agx::
Real timeStep) override;
112 virtual
bool addNotification(
agxSDK::Simulation* simulation) override;
151 void createFlowRateConstraint();
152 void destroyFlowRateConstraint();
155 agxHydraulics::detail::FlowRateConstraintData m_constraintData;
156 agxHydraulics::detail::FlowRateConstraintRef m_flowRateConstraint;
#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
A constant flow valve is a valve that acts to limit the flow rate through a pipe to some maximum valu...
ConstantFlowValve(agx::Real length, agx::Real area, agx::Real fluidDensity, agx::Real targetFlowRate, bool allowPumping=false)
Create a new constant flow valve with the given geometry and target flow rate.
const agx::Constraint * getConstraint() const
agx::Constraint * getConstraint()
Provides access to the constraint that regulates the flow rate.
bool getAllowPumping() const
void setTargetFlowRate(agx::Real targetFlowRate)
Set the target flow rate of the constant flow valve.
void setEnable(bool enable)
Enable or disable the constant flow valve.
agx::Real getTargetFlowRate() const
void setAllowPumping(bool allowPumping)
Set to true to allow the constant flow valve to accelerate the fluid.
FlowUnit is the base class for Units that contains a FlowDimension.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Abstract base class for storing/restoring a line/drums with version control.
Utility class to hold custom implementations of constraints.
The base class for a constraint.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.