Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Sep 7, 2024
1 parent f702067 commit bfe896a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import neqsim.processSimulation.processEquipment.ProcessEquipmentBaseClass;
import neqsim.processSimulation.processEquipment.stream.Stream;
import neqsim.processSimulation.processEquipment.stream.StreamInterface;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermodynamicOperations.ThermodynamicOperations;
Expand Down Expand Up @@ -196,10 +195,11 @@ public double calcMixStreamEnthalpy() {
for (int k = 0; k < streams.size(); k++) {
streams.get(k).getThermoSystem().init(3);
enthalpy += streams.get(k).getThermoSystem().getEnthalpy();
// System.out.println("total enthalpy k : " + ( ((Stream)
// streams.get(k)).getThermoSystem()).getEnthalpy());
System.out.println("total enthalpy k : "
+ (((neqsim.processSimulation.processEquipment.stream.StreamInterface) streams.get(k))
.getThermoSystem()).getEnthalpy());
}
// System.out.println("total enthalpy of streams: " + enthalpy);
System.out.println("total enthalpy of streams: " + enthalpy);
return enthalpy;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public void testProcess() {
thermoSystem.addPlusFraction("C38_C80", 1.0, 662.0 / 1000.0, 0.92);
thermoSystem.setMixingRule("classic");
thermoSystem.setMultiPhaseCheck(true);
thermoSystem.setMolarComposition(new double[] {0.005269, 0.039189, 0.700553, 0.091154,
0.050908, 0.007751, 0.014665, 0.004249, 0.004878, 0.004541, 0.007189, 0.006904, 0.004355,
0.007658, 0.003861, 0.003301, 0.002624, 0.001857, 0.001320, 0.001426, 0.001164, 0.000916});
thermoSystem.setMolarComposition(new double[] {0.005269, 0.039189, 0.700553, 0.091154, 0.050908,
0.007751, 0.014665, 0.004249, 0.004878, 0.004541, 0.007189, 0.006904, 0.004355, 0.007658,
0.003861, 0.003301, 0.002624, 0.001857, 0.001320, 0.001426, 0.001164, 0.000916});

neqsim.processSimulation.processEquipment.stream.Stream wellStream =
new neqsim.processSimulation.processEquipment.stream.Stream(thermoSystem);
Expand Down Expand Up @@ -113,8 +113,9 @@ public void testProcess() {
oilprocess.add(exportgas);

oilprocess.run();

thirdStageSeparator.getFluid().prettyPrint();
standardStageSeparator.run();
oilprocess.add(gasMixer);

}

Expand Down

0 comments on commit bfe896a

Please sign in to comment.