Skip to content

Commit

Permalink
added j2
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Jan 19, 2025
1 parent c5e877d commit 7fed45a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/allEngines.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type Engine from '../types/Engine';
import BE4 from './engines/BE4';
import F1 from './engines/F1';
import J2 from './engines/J2';
import MERLIN from './engines/MERLIN';
import RAPTOR from './engines/RAPTOR';
import RD180 from './engines/RD180';
Expand All @@ -25,7 +26,8 @@ export const getAllEngines = (): Engine[] => {
MERLIN,
RUTHERFORD,
VULCAIN,
VIKING
VIKING,
J2
];

all.sort((a, b) => a.stats.name.localeCompare(b.stats.name));
Expand Down
37 changes: 37 additions & 0 deletions src/data/engines/J2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import Engine from '../../types/Engine';
import type EngineStats from '../../types/EngineStats';
import { Propellant } from '../../types/state/Propellant';
import { Weight } from '../../types/units/Weight';
import { ISP } from '../../types/units/ISP';
import { Size } from '../../types/units/Size';
import Country from '../../types/state/Country';
import Status from '../../types/state/Status';
import EngineCycle from '../../types/state/EngineCycle';
import Rocket from '../../types/state/Rocket';

/**
* The j-2 rocket engine.
* @author cophilot
* @date 2025-1-19
*/
const J2: EngineStats = {
name: 'J-2',
url: 'https://en.wikipedia.org/wiki/Rocketdyne_J-2',
imageUrl:
'https://lh3.googleusercontent.com/proxy/Lfj3lErPJKINWSYisxgnafg3LVHKLH4bz2MNS3rzDH_b8nFT7MaQt18OJasu2Nt6UcTYvQW-Hy-K5pX6Xui6euAvicj1iWZEhlZL7oIM4-STSvuzWPkcBRwDNxYLxqBj',
schemanticUrl:
'https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/J-2_engine_schematic.png/400px-J-2_engine_schematic.png',
country: Country.USA,
status: Status.RETIRED,
firstFlight: '1966',
rockets: [Rocket.SATURN_IB, Rocket.SATURN_V],
propellant: Propellant.HYDRO_LOX,
cycle: EngineCycle.GAS_GENERATOR,
specificImpulseSeaLevel: new ISP(200),
specificImpulseVacuum: new ISP(421),
height: new Size(3.4),
diameter: new Size(2.1),
massDry: new Weight(1788)
};

export default new Engine(J2);
1 change: 1 addition & 0 deletions src/types/state/Rocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import State from './State';
export default class Rocket extends State {
public static readonly SATURN_V: State = new State('Saturn V');
public static readonly SATURN_I: State = new State('Saturn I');
public static readonly SATURN_IB: State = new State('Saturn IB');
public static readonly ATLAS_III: State = new State('Atlas III');
public static readonly ATLAS_V: State = new State('Atlas V');
public static readonly SLS: State = new State('SLS');
Expand Down

0 comments on commit 7fed45a

Please sign in to comment.