EngineCard型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One engine type: what it burns, how hard it pushes and how it runs. The numbers agree: thrust (newtons) is massFlow (kg/s) times isp (seconds) times g0, and exhaust is isp times g0.
インポート
import type { EngineCard } from "@johnmorrisdotca/uchusen-rockets";
定義
interface EngineCard {
id: string;
name: string;
role: EngineRole;
module: string;
count: number;
code?: "FTD" | "DCD";
thrust: number;
isp: number;
massFlow: number;
exhaust: number;
exhaustOfC: number;
fuel: string;
fuelCapacity: number;
operation: "continuous" | "pulsed";
pulseHz?: number;
jetPower: number;
note: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
name | string | |
role | EngineRole | |
module | string | The kit module that carries it, and how many engines that module has. |
count | number | |
code (省略可) | "FTD" | "DCD" | undefined | The fleet's code for the drive, where it has one: FTD, the Fusion Torch Drive. |
thrust | number | Thrust of one engine in newtons. |
isp | number | Specific impulse in seconds. |
massFlow | number | Propellant used by one engine at full thrust, kg/s. |
exhaust | number | Exhaust speed in m/s, and as a fraction of the speed of light. |
exhaustOfC | number | |
fuel | string | What it burns and how much its module holds, in tonnes, when full. |
fuelCapacity | number | |
operation | "continuous" | "pulsed" | |
pulseHz (省略可) | number | undefined | Pulses a second, for a pulsed engine. |
jetPower | number | Power in the jet, watts. |
note | string | What it is and what its limits are. |
例
import { ENGINE_CARDS, type EngineCard } from "@johnmorrisdotca/uchusen-rockets";
const card: EngineCard = ENGINE_CARDS["fusion-main"];
console.log(card.name, card.thrust / 1e6, "MN", card.exhaustOfC);Magnetic-nozzle fusion drive, main 30 MN 0.03925375601009949出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。