18 #ifndef AGXHYDRAULICS_INTERNAL_UTILS_H
19 #define AGXHYDRAULICS_INTERNAL_UTILS_H
47 m_cutoffPressure(cutoffPressure),
48 m_deadheadPressure(deadheadPressure),
49 m_internalLeakage(internalLeakage),
50 m_flowRatio(flowRatio),
51 m_compensatorArea(compensatorArea),
53 m_springConstant(force(deadheadPressure) - force(cutoffPressure)),
54 m_noFlowSpringElongation(elongation(deadheadPressure)),
55 m_fullFlowSpringElongation(elongation(cutoffPressure)),
56 m_noFlowPoppetPosition(poppetPosition(deadheadPressure)),
57 m_fullFlowPoppetPosition(poppetPosition(cutoffPressure))
77 return pressure * m_compensatorArea;
82 return force(pressure) / m_springConstant;
87 return m_noFlowSpringElongation - elongation(pressure);
91 void print(std::ostream& stream)
const;
115 const agx::Real m_noFlowSpringElongation;
116 const agx::Real m_fullFlowSpringElongation;
118 const agx::Real m_fullFlowPoppetPosition;
122 std::ostream&
operator<<(std::ostream& stream,
const VariableDisplacementPumpParameters& pumpParameters);