From 1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Tue, 13 Jun 2017 20:58:18 +0300 Subject: enet update --- .../chemistry/FractionatorBottomTileEntity.java | 59 +--------------------- 1 file changed, 1 insertion(+), 58 deletions(-) (limited to 'ihl/processing/chemistry/FractionatorBottomTileEntity.java') diff --git a/ihl/processing/chemistry/FractionatorBottomTileEntity.java b/ihl/processing/chemistry/FractionatorBottomTileEntity.java index eeabf61..3d9e95e 100644 --- a/ihl/processing/chemistry/FractionatorBottomTileEntity.java +++ b/ihl/processing/chemistry/FractionatorBottomTileEntity.java @@ -130,11 +130,7 @@ public class FractionatorBottomTileEntity extends TileEntityInventory implements FluidStack coolant = this.waterTank.getFluid(); if(coolant!=null && coolant.amount>0) { - int t1 = this.waterTank.getTemperature(); - float densityOfCoolant = IHLFluid.getRealDensity(coolant.getFluid()); - float densityOfGas = 17.8f; - int boilingPointOfGas = IHLFluid.getBoilingPoint(result2.getFluid()); - int amountOfGasToCondense = this.getAmountOfCondensedGas(coolant.amount, amountOfVapours, boilingPointOfGas, t1, densityOfGas, densityOfCoolant); + int amountOfGasToCondense = Math.min(coolant.amount*50, amountOfVapours); amountOfGasCondensed += amountOfGasToCondense; amountOfFluidEvaporated -= amountOfGasToCondense/50; } @@ -252,59 +248,6 @@ public class FractionatorBottomTileEntity extends TileEntityInventory implements } return false; } - - private int getAmountOfCondensedGas(int amountOfCoolant, int amountOfGas, int boilingPointOfGas, int temperatureOfCoolant, float densityOfGas, float densityOfCoolant) - { - if(amountOfCoolant<=0 || amountOfGas<=0 || boilingPointOfGas-202*dt2) - { - deltaT = (float) ((dt1-dt2)/Math.log((double)dt2/(double)dt1)); - } - else - { - deltaT = (dt1+dt2)*0.5F; - } - float Q1 = kF*deltaT; - if(Q1>=maxQ) - { - break; - } - else - { - int next_L = (int)(Q1/H/densityOfGas); - if(Math.abs(next_L-L)<4) - { - L=next_L; - break; - } - L=next_L; - } - } - if(t1_1>t1) - { - this.waterTank.setTemperature(t1_1); - } - else - { - this.waterTank.setTemperature(t1+1); - } - return L; - } @Override public String getInventoryName() -- cgit v1.2.3