Skip to content

Commit

Permalink
added actualCompressionRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Sep 7, 2024
1 parent 275b5d4 commit 5bd1572
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class Compressor extends TwoPortEquipment implements CompressorInterface
private double outTemperature = 298.15;
private boolean useOutTemperature = false;
private double compressionRatio = 2.0;
private double actualCompressionRatio = 2.0;
private boolean useCompressionRatio = false;
private double maxOutletPressure = 10000.0;

Expand Down Expand Up @@ -666,7 +667,7 @@ public void run(UUID id) {
polytropicFluidHead =
getPower() / getThermoSystem().getFlowRate("kg/sec") / 1000.0 * getPolytropicEfficiency();
polytropicHeadMeter = polytropicFluidHead * 1000.0 / 9.81;
compressionRatio = getOutletPressure() / presinn;
actualCompressionRatio = getOutletPressure() / presinn;
setCalculationIdentifier(id);
}

Expand Down Expand Up @@ -1456,4 +1457,8 @@ public void setSetMaxOutletPressure(boolean isSetMaxOutletPressure) {
this.isSetMaxOutletPressure = isSetMaxOutletPressure;
}

public double getActualCompressionRatio() {
return actualCompressionRatio;
}

}

0 comments on commit 5bd1572

Please sign in to comment.