Actions

Talk

Difference between revisions of "Furnace temperature and pressure math"

From Unofficial Stationeers Wiki

Line 11: Line 11:
  
 
===Improved experiment===
 
===Improved experiment===
#An advanced furnace with connected LED consoles to accurately track temperature and pressure was prepared, a MIPS program was written to calculate the released energy
+
#An advanced furnace with two connected LED consoles and an IC housing to accurately track the data was prepared. A MIPS program was written to calculate and display the released energy. The script runs only once, immediately after being inserted into its housing, and it will ignite the furnace automatically. Both the 95% combustion efficiency value and the full 100% combustion efficiency value are displayed. The 5 J added by the ignite is not subtracted.
 +
<div class="mw-collapsible mw-collapsed" data-expandtext="{{int:EXPAND - a MIPS script for calculating the energy released from 1 mol O2 + 2 mol H2 combusting}}" data-collapsetext="{{int:COLLAPSE - a MIPS script for calculating the energy released from 1 mol O2 + 2 mol H2 combusting}}">
 +
<pre>
 +
#a script that calculates the energy of combustion
 +
#obs! this script runs once and automatically ignites the furnace
 +
#the 5 J added by ignite is not accounted for
 +
#E = s(Ta-Tb)/f + Ta*172.615
 +
#s = specific heat of the gas mix = sum(specificHeat * gasRatio)
 +
#Ta = temp before ignition
 +
#Tb = temp after ignition
 +
#f = fuel = min(RatioOxygen, RatioVolatiles / 2)
 +
 
 +
alias furnace d0
 +
alias consoleOne d1    #small LED display
 +
alias consoleTwo d2    #small LED display
 +
 
 +
alias ratioOx r5
 +
alias ratioVol r6
 +
alias specificHeat r12
 +
alias fuel r13
 +
alias tempBefore r14
 +
alias tempAfter r15
 +
 
 +
#calculate the specific heat of the gas mix
 +
l r5 furnace RatioOxygen
 +
l r6 furnace RatioVolatiles
 +
l r7 furnace RatioCarbonDioxide
 +
l r8 furnace RatioPollutant
 +
l r9 furnace RatioNitrogen
 +
l r10 furnace RatioNitrousOxide
 +
l r11 furnace RatioWater
 +
mul r0 r5 21.1
 +
mul r1 r6 20.4
 +
add r0 r0 r1
 +
mul r1 r7 28.2
 +
add r0 r0 r1
 +
mul r1 r8 24.8
 +
add r0 r0 r1
 +
mul r1 r9 20.6
 +
add r0 r0 r1
 +
mul r1 r10 23
 +
add r0 r0 r1
 +
mul r1 r11 72
 +
add specificHeat r0 r1
 +
#calculate the fuel amount
 +
div ratioVol ratioVol 2
 +
min fuel ratioOx ratioVol
 +
#save temperature before
 +
l tempBefore furnace Temperature
 +
#ignite and wait a little
 +
s furnace Activate 1
 +
sleep 2
 +
#save temperature after
 +
l tempAfter furnace Temperature
 +
#check mol amount after combustion
 +
#l r4 furnace TotalMoles
 +
#calculate released energy
 +
mul r0 172.615 tempAfter
 +
sub r2 tempAfter tempBefore
 +
mul r1 specificHeat r2
 +
div r1 r1 fuel
 +
add r0 r0 r1
 +
#display released energy from chemical reaction (95%)
 +
s consoleOne Setting r0
 +
#display the 100% released energy value
 +
div r0 r0 0.95
 +
s consoleTwo Setting r0
 +
 
 +
### End Script ###
 +
</pre>
 +
</div>
 +
 
  
 
===Spark energy experiment===
 
===Spark energy experiment===

Revision as of 15:58, 16 October 2021

Experiment used to determine the amount of released energy from combustion (if things change in the future)

  1. Place a frame, build a furnace partially inside the frame, complete the frame. The furnace is now perfectly insulated and will no longer loose temperature (unless ore is added) nor explode from high pressure
  2. Add fuel (perfect 2:1 is not required) via a pipe, use over 1000 mol of O2, remove the pipe attached to the furnace
  3. Record all mol amounts and temp with a tablet (atmos cartridge), convert temp to K (add +273)
  4. Ignite furnace, record all mol amounts and temp with tablet, convert temp to K
  5. Calculate moles of combusted O2 (= moles before - moles after)
  6. Calculate the Thermal energy in the gas, before and after (Thermal energy = Temp * sum(mol of each gas * specific heat)
  7. Calculate energy released per mol of combusted O2 (= TE.after - TE.before) / moles of combusted O2)
  8. Deconstruct the furnace completely to disarm it safely, or connect a single pipe so it can burst and act as a vent
  9. Alternatively: A circuit could maybe also be used to capture the temperature and pressure at the point of ignition... before the furnace explodes (the pressure will be around 200MPa)

Improved experiment

  1. An advanced furnace with two connected LED consoles and an IC housing to accurately track the data was prepared. A MIPS program was written to calculate and display the released energy. The script runs only once, immediately after being inserted into its housing, and it will ignite the furnace automatically. Both the 95% combustion efficiency value and the full 100% combustion efficiency value are displayed. The 5 J added by the ignite is not subtracted.
#a script that calculates the energy of combustion
#obs! this script runs once and automatically ignites the furnace
#the 5 J added by ignite is not accounted for
#E = s(Ta-Tb)/f + Ta*172.615
#s = specific heat of the gas mix = sum(specificHeat * gasRatio)
#Ta = temp before ignition
#Tb = temp after ignition
#f = fuel = min(RatioOxygen, RatioVolatiles / 2)

alias furnace d0
alias consoleOne d1    #small LED display
alias consoleTwo d2    #small LED display

alias ratioOx r5
alias ratioVol r6
alias specificHeat r12
alias fuel r13
alias tempBefore r14
alias tempAfter r15

#calculate the specific heat of the gas mix
l r5 furnace RatioOxygen
l r6 furnace RatioVolatiles
l r7 furnace RatioCarbonDioxide
l r8 furnace RatioPollutant
l r9 furnace RatioNitrogen
l r10 furnace RatioNitrousOxide
l r11 furnace RatioWater
mul r0 r5 21.1
mul r1 r6 20.4
add r0 r0 r1
mul r1 r7 28.2
add r0 r0 r1
mul r1 r8 24.8
add r0 r0 r1
mul r1 r9 20.6
add r0 r0 r1
mul r1 r10 23
add r0 r0 r1
mul r1 r11 72
add specificHeat r0 r1
#calculate the fuel amount
div ratioVol ratioVol 2
min fuel ratioOx ratioVol
#save temperature before
l tempBefore furnace Temperature
#ignite and wait a little
s furnace Activate 1
sleep 2
#save temperature after
l tempAfter furnace Temperature
#check mol amount after combustion
#l r4 furnace TotalMoles
#calculate released energy
mul r0 172.615 tempAfter
sub r2 tempAfter tempBefore
mul r1 specificHeat r2
div r1 r1 fuel
add r0 r0 r1
#display released energy from chemical reaction (95%)
s consoleOne Setting r0
#display the 100% released energy value
div r0 r0 0.95
s consoleTwo Setting r0

### End Script ###


Spark energy experiment

  1. A small amount of N2 was placed in an advanced furnace. The TotalMoles and Temperature values were recorded, the specific heat was looked up in game and found to be 20.6
  2. Ignite was pressed 2 times, each time the new Temperature was recorded, the increase was the same
  3. The energy added per ignite was calculated as: EnergyChange = moles * specificHeat * TemperatureChange
  4. The obtained value was 4.99999 J per ignite.
  5. The experiment was repeated with a larger amount of N2. The obtained value was 5.0126 J per ignite.