Commit 658d17f 1 parent cd064bd commit 658d17f Copy full SHA for 658d17f
File tree 2 files changed +14
-3
lines changed
main/java/neqsim/processSimulation/processSystem
test/java/neqsim/processSimulation/processSystem
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ public boolean hasUnitName(String name) {
203
203
* </p>
204
204
*
205
205
* @param name a {@link java.lang.String} object
206
- * @return a {@link java.lang.Object } object
206
+ * @return a {@link MeasurementDeviceInterface } object
207
207
*/
208
- public Object getMeasurementDevice (String name ) {
208
+ public MeasurementDeviceInterface getMeasurementDevice (String name ) {
209
209
for (int i = 0 ; i < measurementDevices .size (); i ++) {
210
210
if (measurementDevices .get (i ).getName ().equals (name )) {
211
211
return measurementDevices .get (i );
Original file line number Diff line number Diff line change 1
1
package neqsim .processSimulation .processSystem ;
2
2
3
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
3
4
import org .apache .logging .log4j .LogManager ;
4
5
import org .apache .logging .log4j .Logger ;
5
6
import org .junit .jupiter .api .Test ;
21
22
import neqsim .processSimulation .processEquipment .valve .ThrottlingValve ;
22
23
import neqsim .thermo .system .SystemInterface ;
23
24
import neqsim .thermo .system .SystemSrkCPA ;
25
+ import neqsim .thermo .util .empiric .BukacekWaterInGas ;
24
26
25
27
public class MLA_bug_test extends neqsim .NeqSimTest {
26
28
Logger logger = LogManager .getLogger (MLA_bug_test .class );
@@ -348,6 +350,15 @@ public void runProcessTEG() throws InterruptedException {
348
350
} catch (Exception ex ) {
349
351
logger .error ("Something failed" );
350
352
}
351
- System .out .println ("water in gas " + dehydratedGas .getFluid ().getComponent ("water" ).getx ());
353
+ // System.out.println("water in gas " + dehydratedGas.getFluid().getComponent("water").getx());
354
+
355
+ assertEquals (-19.1886678 ,
356
+ p .getMeasurementDevice ("water dew point analyser3" ).getMeasuredValue ("C" ), 1e-2 );
357
+ }
358
+
359
+ @ Test
360
+ public void testBukacekWaterInGas () {
361
+ assertEquals (-36.485388110 ,
362
+ BukacekWaterInGas .waterDewPointTemperature (8.2504356945e-6 , 70.0 ) - 273.15 , 1e-2 );
352
363
}
353
364
}
You can’t perform that action at this time.
0 commit comments