Skip to content

Commit 89f5f64

Browse files
authored
fix: HEX (#1055)
1 parent 8365c56 commit 89f5f64

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/neqsim/processSimulation/processEquipment/heatExchanger/HeatExchanger.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public void runSpecifiedStream(UUID id) {
260260
/** {@inheritDoc} */
261261
@Override
262262
public void run(UUID id) {
263+
263264
if (getSpecification().equals("out stream")) {
264265
runSpecifiedStream(id);
265266
} else if (firstTime) {
@@ -278,6 +279,11 @@ public void run(UUID id) {
278279
// streamToCalculate = 1;
279280
// streamToSet = 0;
280281
// }
282+
283+
// Make sure these streams to run because of the issues with enthalpy calculations if not run
284+
for (StreamInterface stream : inStream) {
285+
stream.run();
286+
}
281287

282288
int streamToSet = 1;
283289
SystemInterface systemOut0 = inStream[streamToSet].getThermoSystem().clone();

0 commit comments

Comments
 (0)