Skip to content

Commit

Permalink
feat: ok that was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
bruberu committed Jul 7, 2024
1 parent 491b064 commit 7c00bfb
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,9 @@ protected double coolantBoilingPoint(Material coolant) {
}

public void updateTemperature(int flowRate) {
double temp = this.temperature;
double heatRemoved = this.makeCoolantFlow(flowRate, false);
this.temperature = responseFunctionTemperature(envTemperature, this.temperature, this.power * 1000000,
heatRemoved);
heatRemoved = (heatRemoved + this.makeCoolantFlow(flowRate, true)) / 2; // It's an approximation, but it'll have to do.
this.temperature = responseFunctionTemperature(envTemperature, temp, this.power * 1000000,
heatRemoved);
this.temperature = Math.max(this.temperature, this.coolantBaseTemperature);
}

Expand Down

0 comments on commit 7c00bfb

Please sign in to comment.