7
7
8
8
public class Orifice extends TwoPortEquipment {
9
9
private static final long serialVersionUID = 1L ;
10
- private String name ;
11
10
private StreamInterface inputstream ;
12
11
private StreamInterface outputstream ;
13
12
private Double dp ;
@@ -33,15 +32,6 @@ public Orifice(String name, double diameter, double orificeDiameter, double pres
33
32
this .dischargeCoefficient = dischargeCoefficient ;
34
33
}
35
34
36
- public void setInputStream (StreamInterface stream ) {
37
- this .inputstream = stream ;
38
- this .outputstream = (StreamInterface ) stream .clone ();
39
- }
40
-
41
- public StreamInterface getOutputStream () {
42
- return outputstream ;
43
- }
44
-
45
35
public void setOrificeParameters (Double diameter , Double diameter_outer , Double C ) {
46
36
this .diameter = diameter ;
47
37
this .diameter_outer = diameter_outer ;
@@ -65,7 +55,7 @@ public Double calc_dp() {
65
55
66
56
/**
67
57
* Calculates the orifice discharge coefficient using the Reader-Harris Gallagher method.
68
- *
58
+ *
69
59
* @param D Upstream internal pipe diameter, in meters.
70
60
* @param Do Diameter of orifice at flow conditions, in meters.
71
61
* @param rho Density of fluid at P1, in kg/m^3.
@@ -84,7 +74,8 @@ public static double calculateDischargeCoefficient(double D, double Do, double r
84
74
double beta4 = beta2 * beta2 ;
85
75
double beta8 = beta4 * beta4 ;
86
76
87
- double L1 , L2_prime ;
77
+ double L1 ;
78
+ double L2_prime ;
88
79
if ("corner" .equalsIgnoreCase (taps )) {
89
80
L1 = 0.0 ;
90
81
L2_prime = 0.0 ;
@@ -114,7 +105,7 @@ public static double calculateDischargeCoefficient(double D, double Do, double r
114
105
115
106
/**
116
107
* Calculates the expansibility factor for orifice plate calculations.
117
- *
108
+ *
118
109
* @param D Upstream internal pipe diameter, in meters.
119
110
* @param Do Diameter of orifice at flow conditions, in meters.
120
111
* @param P1 Static pressure of fluid upstream, in Pa.
@@ -130,7 +121,7 @@ public static double calculateExpansibility(double D, double Do, double P1, doub
130
121
131
122
/**
132
123
* Calculates the non-recoverable pressure drop across the orifice plate.
133
- *
124
+ *
134
125
* @param D Upstream internal pipe diameter, in meters.
135
126
* @param Do Diameter of orifice at flow conditions, in meters.
136
127
* @param P1 Static pressure of fluid upstream, in Pa.
@@ -150,7 +141,7 @@ public static double calculatePressureDrop(double D, double Do, double P1, doubl
150
141
151
142
/**
152
143
* Calculates the diameter ratio (beta) of the orifice plate.
153
- *
144
+ *
154
145
* @param D Upstream internal pipe diameter, in meters.
155
146
* @param Do Diameter of orifice at flow conditions, in meters.
156
147
* @return Diameter ratio (beta).
@@ -169,5 +160,4 @@ public void run(UUID uuid) {
169
160
outStream .run ();
170
161
}
171
162
}
172
-
173
163
}
0 commit comments