1
1
package neqsim .process .processmodel ;
2
2
3
- import static org .junit .jupiter .api .Assertions .assertAll ;
4
3
import java .io .File ;
5
4
import org .junit .jupiter .api .Assertions ;
6
5
import org .junit .jupiter .api .Test ;
7
6
import neqsim .process .equipment .compressor .Compressor ;
7
+ import neqsim .process .equipment .expander .Expander ;
8
8
import neqsim .process .equipment .heatexchanger .Cooler ;
9
9
import neqsim .process .equipment .heatexchanger .Heater ;
10
10
import neqsim .process .equipment .mixer .Mixer ;
11
11
import neqsim .process .equipment .pump .Pump ;
12
12
import neqsim .process .equipment .separator .Separator ;
13
13
import neqsim .process .equipment .separator .ThreePhaseSeparator ;
14
14
import neqsim .process .equipment .stream .Stream ;
15
+ import neqsim .process .equipment .util .Recycle ;
15
16
import neqsim .process .equipment .valve .ThrottlingValve ;
16
17
import neqsim .thermo .system .SystemInterface ;
17
18
@@ -235,10 +236,10 @@ public void testProcess2() {
235
236
236
237
Cooler dewPointControlCooler2 = new neqsim .process .equipment .heatexchanger .Cooler (
237
238
"dew point cooler 2" , dewPointScrubber .getGasOutStream ());
238
- dewPointControlCooler2 .setOutTemperature (-5 .0 , "C" );
239
+ dewPointControlCooler2 .setOutTemperature (-15 .0 , "C" );
239
240
dewPointControlCooler2 .setOutPressure (59.5 , "bara" );
240
241
dewPointControlCooler2 .run ();
241
- Assertions .assertEquals (0.9808118997528 ,
242
+ Assertions .assertEquals (0.967383748675644 ,
242
243
dewPointControlCooler2 .getOutStream ().getFluid ().getBeta (), 1e-6 );
243
244
Separator dewPointScrubber2 = new neqsim .process .equipment .separator .Separator (
244
245
"dew point scrubber 2" , dewPointControlCooler2 .getOutStream ());
@@ -259,6 +260,36 @@ public void testProcess2() {
259
260
lpLiqmixer .addStream (firstStageScrubber2 .getLiquidOutStream ());
260
261
lpLiqmixer .run ();
261
262
263
+ Recycle hpResycle = new neqsim .process .equipment .util .Recycle ("HP liq resycle" );
264
+ hpResycle .addStream (hpLiqmixer .getOutStream ());
265
+ hpResycle .setOutletStream (oilFirstStage );
266
+ hpResycle .setTolerance (1e-2 );
267
+ hpResycle .run ();
268
+
269
+ Recycle mpResycle = new neqsim .process .equipment .util .Recycle ("MP liq resycle" );
270
+ mpResycle .addStream (mpLiqmixer .getOutStream ());
271
+ mpResycle .setOutletStream (oilSeccondStage );
272
+ mpResycle .setTolerance (1e-2 );
273
+ mpResycle .run ();
274
+
275
+ Recycle lpResycle = new neqsim .process .equipment .util .Recycle ("LP liq resycle" );
276
+ lpResycle .addStream (lpLiqmixer .getOutStream ());
277
+ lpResycle .setOutletStream (oilThirdStage );
278
+ lpResycle .setTolerance (1e-2 );
279
+ lpResycle .run ();
280
+
281
+ Expander turboexpander =
282
+ new neqsim .process .equipment .expander .Expander ("TEX" , dewPointScrubber2 .getGasOutStream ());
283
+ turboexpander .setIsentropicEfficiency (0.80 );
284
+ turboexpander .setOutletPressure (50.0 );
285
+ turboexpander .run ();
286
+ // turboexpander.getFluid().prettyPrint();
287
+
288
+ Separator DPCUScrubber = new neqsim .process .equipment .separator .Separator ("TEX LT scrubber" ,
289
+ turboexpander .getOutStream ());
290
+ DPCUScrubber .run ();
291
+
292
+ // DPCUScrubber.getFluid().prettyPrint();
262
293
// richGasMixer.getOutStream().getFluid().prettyPrint();
263
294
264
295
0 commit comments