18 #ifndef AGXHYDRAULICS_NEEDLE_VALVE_H
19 #define AGXHYDRAULICS_NEEDLE_VALVE_H
121 virtual
agx::
Real computeFrictionLoss(
agx::
Real flowRate) override;
141 agx::Real m_minFlowRateForLossCalculation;
#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
FlowUnit is the base class for Units that contains a FlowDimension.
A needle valve represents a controllable orifice opening.
agx::Real getMaxOpeningArea() const
agx::Real getFlowCoefficient() const
void setOpeningDiameterFraction(agx::Real fractionOfMax)
Set the orifice opening diameter using an argument in the range [0..1] that represents diameters betw...
void setCutoffArea(agx::Real cutoff)
Set smallest area that the needle valve is allowed to have.
void setOpeningArea(agx::Real area)
Set the area of the valve directly.
agx::Real getOpeningDiameterFraction() const
agx::Real getCutoffArea() const
void setFlowCoefficient(agx::Real coefficient)
Set the flow coefficient of the valve.
agx::Real getOpeningArea() const
NeedleValve(agx::Real maxOpeningArea, agx::Real fluidDensity)
Create a new needle valve with the given area and fluid density.
agx::Real getOpeningFraction() const
NeedleValve & operator=(const NeedleValve &)
void setOpeningFraction(agx::Real fractionOfMax)
Set the orifice opening area using an argument in the range [0..1] that repsents areas between 0 and ...
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
#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 agx namespace contains the dynamics/math part of the AGX Dynamics API.