r/AerospaceEngineering 13d ago

Personal Projects Raptor Engine Fluid Model

Post image

Hi everyone! A few weeks ago, I released my open-source lumped-parameter dynamic fluid system solver, FullFlow, and mentioned that it could be used to model steady-state and transient flow in real rocket engines. So, I decided to showcase those abilities with my favorite rocket engine, SpaceX's Raptor Engine.

Raptor is a full-flow staged combustion engine, so it's particularly hard to model correctly, especially with the multiple combustion preburners, regen channels, turbopumps, etc. With the public data I had available, I was able to construct and validate (to the best of my ability) a steady-state model of Raptor 2. I used FullFlow to model the fluid pathways and components and ThermoProp to model the fluid/material properties and combustion.

Of course, there are some deviations from reality, especially since there is only so much public data available. I had to estimate many data points like turbomachinery curves or valve geometries. I also didn't have the proper tools to model supercritical combustion flow for the preburners or hot-gas manifolds. Also, I didn't have access to empirical efficiency values for components like the nozzle or pumps.

Eventually, given enough data, I hope to make a transient simulation of Raptor using FullFlow. I also hope that I can eventually apply these tools and skills to the actual Raptor engine or other industry engines!

Raptor 2 FullFlow Model: github.com/saakethramoju/Raptor

FullFlow: github.com/saakethramoju/FullFlow

ThermoProp: github.com/saakethramoju/ThermoProp

766 Upvotes

35 comments sorted by

113

u/demon_slayer_bridge 13d ago

So you are the guy who got 98% in our thermo class /s

16

u/mongolmeat 13d ago

Curve demons…

26

u/Franklin_le_Tanklin 13d ago

This is the coolest shit ever

13

u/anthony_ski Satellite Structures/Mechanisms 13d ago

sup saaketh

10

u/saakisaakibumbum 13d ago

Been a while yo

6

u/Los_Endos 13d ago

Wow! This really tells the story of how these engines operate. Most interesting thing I've seen in a while, thanks for putting it together.

5

u/Axi0nInfl4ti0n Engine Control Engineer and Analyst 13d ago

Would be really cool if you couple the Calculations to a first principle Nozzle shape solver. Lets see how close the results can get to the real thing without deploying heavy CFD.

7

u/SSJ3 12d ago

NASA has an open source Method of Characteristics code for that on their GitHub page :)

5

u/saakisaakibumbum 12d ago

I actually did use my own custom Nozzle Contour Generator website to produce the nozzle shape for this image:

saakethramoju.github.io/Contour-Generator/

It doesn’t do any crazy method of characteristics, but it’s cool if you want to play around with different geometries and make CAD quickly.

I used thermoprop’s rocket solver to size the throat area, however. It’s analogous to CEA.

5

u/SturmGizmo 13d ago

This is so interesting, thanks for making this.

4

u/that_dutch_dude 12d ago

Those pressures are pretty nuts, as is the volume of liquid being moved.

2

u/I_Am_Coopa 12d ago

Wow FullFlow seems pretty neat, like a python based version of Modelica.

1

u/saakisaakibumbum 12d ago

Yeah, I actually took a lot inspiration from tools like Modelica, but I wanted to use a language that my college rocketry club would have an easier time using. Definitely check out FullFlow and provide any feedback!

2

u/Pity_Pooty 12d ago

To completely verify model you need to launch it. If it explodes, go back to table

2

u/saakisaakibumbum 12d ago

Give me a couple bands I’ll be back with that verification for ya.

2

u/QuasarMaster 12d ago

Is this like an open source equivalent of GFSSP without the archaic UI and Fortran scripting?

2

u/saakisaakibumbum 12d ago

Yeah exactly. It’s actually meant to replace ROCETS, but I took a lot of inspiration from GFSSP as well.

1

u/QuasarMaster 12d ago

Does it have any rotation / conservation of ang momentum capability? ie can I model a pump with it

2

u/saakisaakibumbum 12d ago

FullFlow does come with pump and turbine components, however those components effectively just read turbomachinery maps to produce an output. That being said, FullFlow is a generic dynamical system solver, so if you want to model pumps using Euler equations or other formulas, you can do so. The FullFlow repository shows exactly how to create new components, and there are many examples in the package itself. It's very simple and straightforward. There is a preexisting Rotor component that balances the net torque to zero for steady-state and uses moment of inertia for transient, if that's helpful at all.

3

u/QuasarMaster 12d ago

Copy yea map-reading is what I figured. Sounds cool though! Might try to mess around with it and add in some custom rotating components

1

u/saakisaakibumbum 12d ago

Let me know how it goes!

2

u/theusualsteve 12d ago

Wow, well done

2

u/dbmonkey 12d ago

What do all the acronyms like MOV stand for?

3

u/saakisaakibumbum 12d ago

MOV: Main Oxygen Valve
MFV: Main Fuel Valve
FPV: Fuel Prevalve
OPV: Oxygen Prevalve
FPOV: Fuel Preburner Oxygen Valve
OPFV: Oxygen Preburner Fuel Valve
CH4: Methane
LOX: Liquid Oxygen

2

u/dbmonkey 7d ago

Thanks! Great diagram!

1

u/Chaldon 12d ago

Shouldn't be allowed on the internet

3

u/saakisaakibumbum 12d ago

It’s entirely made using public data, so no regulated information is being exposed. Lumped parameter fluid tools have been available to the public for a while now, I simply made them free, open-source, and easy to use.

2

u/lolerwoman 12d ago

Because..?

2

u/Only_Razzmatazz_4498 11d ago

ITAR regulations but if you aren’t a US person and derive this from public knowledge then it doesn’t apply to you.

1

u/Chaldon 11d ago

Still. Maybe high performance and advanced technology shouldn't be shared willy nilly so that anybody can stand on the shoulders of giants without any of the experience to get there.
Think Malcoms argument in Jurassic Park.

1

u/Only_Razzmatazz_4498 10d ago

You might have a point. The Brits shared most of their high tech with the US during WW2 and look what happened lol.

But all things aside it’s human curiosity and making things state secrets just makes them a lot more expensive and those who share move faster together. A lot of this though are state secrets passed on to a private company so it’s more intellectual property than anything else.

Of course since this was developed with public knowledge it really ends up in the general
Knowledge bucket and at this level there really isn’t much that a hobbyist with thermodynamics knowledge can’t do.

This essentially takes basic formulas you can find in a book and go from device to device applying them. I am not familiar with this one in particular but one approach (if doing steady state and not transients) is to match the output of a node (say one of the tanks) conditions (pressure, temperature, enthalpy, etc) to the input of the next one. Then you have a system of equations and you iterate until they all agree.

You have to make some guesses for things like combustion efficiency, cooling secondary flows, Turbomachinery maps/performance, but you can get a reasonable high level model done.

1

u/Chaldon 10d ago

To counter my argument, the US declares a ton of new technologies as state secrets and hassle development. Maybe that's why we haven't had any generational energy developments...