ningshuxia
2022-11-09 a7dc1069c4b0e9347337258f0a818b8e92c42bb6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.EtaCalculation
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class EtaAnalyCalculatorBase
    {
        /// <summary>
        /// 重力加速度
        /// </summary>
        protected const double g = 9.81;
 
        /// <summary>
        /// 水密度
        /// </summary>
        protected const double WaterDensity = 1000;
 
        /// <summary>
        /// m=>Mpa
        /// </summary>
        public double UnitConvert_M2MPa(double h)
        {
            return h * g / 1000;
        }
        /// <summary>
        /// Mpa=>m
        /// </summary>
        public double UnitConvert_MPa2M(double mpa)
        {
            return mpa * 1000 / g;
        }
    }
}