@@ -2228,6 +2228,50 @@ public double[] getProperties_GERG2008() {
2228
2228
return test .propertiesGERG ();
2229
2229
}
2230
2230
2231
+ /** {@inheritDoc} */
2232
+ @ Override
2233
+ public double getDensity_Leachman (String hydrogenType ) {
2234
+ neqsim .thermo .util .Leachman .NeqSimLeachman test =
2235
+ new neqsim .thermo .util .Leachman .NeqSimLeachman (this , hydrogenType );
2236
+ return test .getDensity ();
2237
+ }
2238
+
2239
+ /**
2240
+ * Gets the density using the default hydrogen type ('normal').
2241
+ * This method prints a warning if no hydrogen type is specified.
2242
+ *
2243
+ * @return the density calculated with the 'normal' hydrogen type.
2244
+ */
2245
+ public double getDensity_Leachman () {
2246
+ // Warn the user that no hydrogen type was specified and use "normal" by default
2247
+ System .out .println ("No hydrogen type specified. Using default type: 'normal'." );
2248
+ return getDensity_Leachman ("normal" );
2249
+ }
2250
+
2251
+
2252
+
2253
+ /** {@inheritDoc} */
2254
+ @ Override
2255
+ public double [] getProperties_Leachman (String hydrogenType ) {
2256
+ neqsim .thermo .util .Leachman .NeqSimLeachman test =
2257
+ new neqsim .thermo .util .Leachman .NeqSimLeachman (this , hydrogenType );
2258
+ return test .propertiesLeachman ();
2259
+ }
2260
+
2261
+
2262
+ /**
2263
+ * Gets the Leachman properties of a phase using the default hydrogen type ('normal').
2264
+ * This method prints a warning if no hydrogen type is specified.
2265
+ *
2266
+ * @return an array of properties of type double.
2267
+ */
2268
+ public double [] getProperties_Leachman () {
2269
+ // Warn the user and use the default hydrogen type
2270
+ System .out .println ("No hydrogen type specified. Using default type: 'normal'." );
2271
+ return getProperties_Leachman ("normal" );
2272
+ }
2273
+
2274
+
2231
2275
/** {@inheritDoc} */
2232
2276
@ Override
2233
2277
public double getDensity_AGA8 () {
0 commit comments