using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.EtaCalculation
{
///
///
///
public abstract class EtaAnalyCalculatorBase
{
///
/// 重力加速度
///
protected const double g = 9.81;
///
/// 水密度
///
protected const double WaterDensity = 1000;
///
/// m=>Mpa
///
public double UnitConvert_M2MPa(double h)
{
return h * g / 1000;
}
///
/// Mpa=>m
///
public double UnitConvert_MPa2M(double mpa)
{
return mpa * 1000 / g;
}
}
}