Many improvments + install script
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user