Many improvments + install script

This commit is contained in:
2026-03-03 18:11:00 +00:00
parent 03452517b5
commit 386f6fe928
12 changed files with 710 additions and 44 deletions

View File

@@ -96,10 +96,7 @@ export function calcCooling(thermo, cooling, chamberGeom) {
const { Dt, Dc, Lc } = chamberGeom
// Simplified Bartz heat flux [W/m²] using typical exhaust gas properties
const mu = 6e-5 // Pa·s — typical rocket exhaust dynamic viscosity
const cp = 2000 // J/(kg·K)
const Pr = 0.7
const T_wall = 800 // K — assumed hot-gas-side wall temperature
const { mu = 6e-5, cp = 2000, Pr = 0.7, T_wall = 800 } = cooling
const q_est = (0.026 / Math.pow(Dt, 0.2)) *
(Math.pow(mu, 0.2) * cp / Math.pow(Pr, 0.6)) *
@@ -110,9 +107,9 @@ export function calcCooling(thermo, cooling, chamberGeom) {
const q_total = q_est * chamberArea
const { channelCount } = cooling
const channelArea = channelCount > 0 ? q_total / channelCount : 0
const q_perChannel = channelCount > 0 ? q_total / channelCount : 0
return { method, q_est, q_total, channelCount, channelArea }
return { method, q_est, q_total, channelCount, q_perChannel }
}
if (method === 'film') {