ningshuxia
2025-03-20 a84a83d842f4fa220a8cf1b704e6ed6573684eef
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
namespace HStation.Revit
{
    /// <summary>
    /// 阀门类型
    /// </summary>
    public class ValveType
    {
        /// <summary>
        /// 减压阀 压强,m
        /// </summary>
        public const string PRV = "PRV";
 
        /// <summary>
        /// 稳压阀 压强,m
        /// </summary>
        public const string PSV = "PSV";
 
        /// <summary>
        /// 压力制动阀 压强,m
        /// </summary>
        public const string PBV = "PBV";
 
        /// <summary>
        /// 流量控制阀 流量(m³/h)
        /// </summary>
        public const string FCV = "FCV";
 
        /// <summary>
        /// 节流控制阀 阀门开度损失系数曲线
        /// </summary>
        public const string TCV = "TCV";
 
        /// <summary>
        /// 常规阀门 水头损失曲线
        /// </summary>
        public const string GPV = "GPV";
 
        /// <summary>
        /// 止回阀
        /// </summary>
        public const string CV = "CV";
 
        /// <summary>
        /// 包含
        /// </summary>
        public static bool Contains(string type)
        {
            if (string.IsNullOrEmpty(type))
            {
                return false;
            }
            if (type == PRV)
            {
                return true;
            }
            if (type == PSV)
            {
                return true;
            }
            if (type == PBV)
            {
                return true;
            }
            if (type == FCV)
            {
                return true;
            }
            if (type == TCV)
            {
                return true;
            }
            if (type == GPV)
            {
                return true;
            }
            if (type == CV)
            {
                return true;
            }
            return false;
        }
 
 
    }
}