Openrocket Data Iterations

The Rocketry Forum

Help Support The Rocketry Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

blackbrandt

That Darn College Student
Joined
Mar 18, 2012
Messages
9,281
Reaction score
60
OK, so this is gonna sound confusing, but hear me out.

I am getting data out of Openrocket to run through a program called R. The data I am trying to get out of OR looks like this:

The rocket in this simulation is powered by 3 different hypothetical motors (I made the thrust curves myself, they are basically constant thrust motors with equal weights and stuff) that cause the rocket to go subsonic, transonic, and supersonic speeds.

The length is the length of the nose cone.
The L/W ratio is the length to width ratio of the nose cone.
The Max Vel C_D is the coefficient of drag at the maximum velocity obtained during flight.
The final altitude is self explanatory.


How I have been getting this data is editing the nose cone length, and running 3 simulations (1 with each motor), copying down the altitude, and then estimating the Cd using the graph from the simulation.

Is there any way I can have openrocket do this automatically? Essentially, I want it to say
Nose cone length: 3.1 --> Max altitude: x feet
Nose cone length: 4.1 --> Max altitude: y feet
Nose cone length: 5.1 --> Max altitude: z feet



Here is what I have done so far.

Does this make any sense or am I just confusing everyone?
LengthL/W RatioMax Vel C_D SubsonicFinal Altitude SubsonicMax Vel C_D TransonicFinal Altitude TransonicMax Vel C_D SupersonicFinal Altitude Supersonic
3.11.000.84390401.03275571.1986798
4.11.320.78593870.95979370.9977223
5.11.650.75395610.90881420.8687480
6.11.970.72697280.86983190.7837696
7.12.290.70498680.83784770.7277887
8.12.610.68999410.81385710.6908007
9.12.940.677100060.79586740.6598125
10.13.260.666100750.77987540.6388219
11.13.580.659100790.76787980.6318276
12.13.900.650101310.75788470.6198336
13.14.230.644101580.74988920.6118389
14.14.550.639101490.74289300.6048428
15.14.870.635102140.73789580.5988461
16.15.190.633101510.73289700.5938477
17.15.520.630101600.72889870.5898500
18.15.840.627101980.72589990.5878519
19.16.160.625101400.72290150.5848532
 
So what's the question? Can you iterate parameters and retrieve results automatically in a batch mode? I doubt it.

You have the source code. Write a program to call the solver while looping through your parameters. There is support for something called a "simulation listener", which is mentioned in the documentation.
 
The fact that I got a 65 in a Java class I took should tell you why I didn't do that :)
 
Back
Top