r/rocketry • • 5d ago

Showcase I built Vector Rocket Lab a browser-based 6 DOF rocket simulator that simulates airframe shredding, fin flutter, and unstable loops.

Hey guys, been working on this browser rocket sim for a bit and wanted to share a quick clip before I open it up to everyone.
I wanted something where you can actually see what happens when a design fails instead of just looking at graphs like dynamic pressure shredding a cardboard tube, fin flutter, or unstable loops, and then hit a button to fix it.
Right now I'm adding more motors.
Before I release it, what's the biggest thing OpenRocket is missing that you'd actually use? Would love to hear any ideas or feedback on what's in the video.

0 Upvotes

14 comments sorted by

11

u/morgans_steam04 4d ago

The biggest thing that open rocket doesn't have is more accurate drag calculations and parachute size to drift distance optimisation

-6

u/Interesting_rocketry 4d ago

That's a super good point having to manually guess chute sizes and re-run sims over and over just to see if you'll stay on the field is super annoying. A Target drift distance / safe landing speed optimizer that auto-picks the right chute size (or dual deploy main altitude) would be awesome to build in.
Out of curiosity, what part of OpenRocket's drag math feels the most off to you transonic wave drag, fin interference, or surface roughness?

4

u/morgans_steam04 4d ago

about the parachute , I have a MATLAB script that does that which is good, and about the drag I'm not sure but from my experience open rocket underestimates drag almost every time

-1

u/Interesting_rocketry 4d ago

Totally makes sense, having to keep a separate MATLAB script just for chute sizing is exactly what I want to replace.

And yeah, OpenRocket underestimating drag happens all the time, especially with rail buttons, shoulder gaps, and rougher finishes like 3D printed parts. Adding better surface roughness drag and a way to calibrate drag from an altimeter CSV would be super useful. Definitely adding both to my list, appreciate the feedback!

1

u/morgans_steam04 4d ago

no worries, good luck!

15

u/w00tleeroyjenkins 4d ago

Please at least bother to disclose that your simulator was at least partially, if not fully, vibe coded. Don’t say “I built this”. Good riddance.

3

u/Accomplished-Lack509 4d ago

Partially 😭😂 ts is all vibe code 

-5

u/Interesting_rocketry 4d ago

Fair enough I used Claude to help speed up the UI and Three.js boilerplate while wiring up the 6 DOF physics and motor curves myself. Either way, just trying to build something useful for rocketeers. Appreciate you checking it out!

2

u/limeishalt 4d ago

Hey, so how do you handle supersonic flight? bending forces? bending & torsional frequency? fin flutter? roll-pitch coupling?

2

u/Interesting_rocketry 4d ago

Good questions. It runs in the browser, so it uses analytical approximations instead of FEA or CFD:

Supersonic / transonic: a Mach-dependent drag rise curve on the drag coefficient (peaks around Mach 1.2), plus Prandtl-Glauert compressibility on fin lift, so the CP shifts a bit with Mach. No shock expansion tables.

Fin flutter: the NACA TN 4197 hobby formula (the Martin approximation), using fin geometry, the material’s shear modulus, and air pressure at altitude.

Bending and torsional frequencies: no modal FEA. Airframe failure is a check of peak dynamic pressure against a fixed limit for each tube material (for example 60 kPa for kraft cardboard), not a stress or buckling calculation.

Roll-pitch coupling: the 6-DOF solver integrates Euler’s rotation equations with the gyroscopic coupling terms and tracks orientation with quaternions. Spin rate is currently capped, so high-roll-rate behaviour with canted fins is still being refined.

Still tuning the high-Mach and structural models. If you have go-to empirical formulas for transonic CP shift or body bending, I’m all ears.

5

u/limeishalt 4d ago

On the supersonic theory:

That is either going to be as accurate or less accurate tha OpenRocket's supersonic handling, and that handling is quite frankly subpar. I'd reference the Missile Datcom whitepaper on actual analytical methods. Additionally, the shock expansion equation is really just a taylor series, so you can newton-raphson your way to joy. Here's an example from a program I have.

TN4197 is incredibly inaccurate for flutter. I'd recommend TR685 for subsonic & Kearns theory for supersonic flutter estimation. There are matlab packages for this.

You... don't really need to do modal FEA. There are empirical equations for bending & torsion values, and they would come with the most basic perusal. You can also use the crossflow component of airflow to estimate bending properties, even in component buildup. In any case, shell buckling can be handled from NASA SP-8019 & SP-8007.

Roll-pitch coupling has a specific ratio wherein it occurs (roll rate/nat. pitching frequency = 1). If spin rate is capped, you're just not gonna find those failure modes.

Transonic CP shift can't really be simmed that well without a table, and quite frankly isn't very relevant for most rocket flight.

4

u/limeishalt 4d ago

Honestly, as someone who's been in a similar position, I'd take a step back and redev a lot of this. As far as I can see, this is just a really glorified video game esque project rather than a useful utility.