Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Dec 30, 2024
1 parent 5ad3ead commit d73b75e
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import neqsim.process.equipment.compressor.Compressor;
import neqsim.process.equipment.separator.ThreePhaseSeparator;
import neqsim.process.equipment.stream.Stream;
import neqsim.process.equipment.stream.StreamInterface;
import neqsim.thermo.system.SystemInterface;

/**
Expand Down Expand Up @@ -68,10 +69,7 @@ public ProcessSystem getinletModel() {
return process1;
};

public ProcessSystem getCompressorProcess() {

neqsim.process.equipment.stream.Stream gasFeedStream =
new neqsim.process.equipment.stream.Stream("compressor feed stream");
public ProcessSystem getCompressorProcess(StreamInterface gasFeedStream) {

neqsim.process.equipment.compressor.Compressor compressor1 =
new neqsim.process.equipment.compressor.Compressor("Compressor1", gasFeedStream);
Expand All @@ -87,8 +85,7 @@ public ProcessSystem getCompressorProcess() {

public ProcessModel getCombinedModel() {
ProcessSystem inletProcess = getinletModel();
ProcessSystem compressorProcess = getCompressorProcess();
((Compressor) compressorProcess.getUnit("Compressor1")).setInletStream(
ProcessSystem compressorProcess = getCompressorProcess(
((ThreePhaseSeparator) inletProcess.getUnit("1st stage separator")).getGasOutStream());


Expand Down

0 comments on commit d73b75e

Please sign in to comment.