tbf/TBF/Rig/GenericDevices/IFlowMeterSingle.cs

26 lines
867 B
C#

///
/// Copyright (c) 2022 Sensus Slovensko a.s.
///
namespace TBF.Rig.GenericDevices
{
public interface IFlowMeterSingle : IFlowMeter
{
/// <summary>
/// Determine flow meter range
/// </summary>
/// <param name="tempRngLo">Lower boundary of temperature</param>
/// <param name="tempRngHi">Upper boundary of temperature</param>
/// <returns>flow meter range (0..5) or -1 if no range fits the specified temperature range</returns>
int GetRange(float tempRngLo, float tempRngHi);
/// <summary>
/// Apply flow measurement correction
/// </summary>
/// <param name="flow">Measured flow in [m3/h]</param>
/// <param name="rng">Tange 0..5</param>
/// <returns>Corrected flow in [m3/h]</returns>
double CorrectedFlow(double flow, int rng);
}
}