Peak of Flight #11: Adding New Motor Files to RickSim
Apogee Components' Peak of Flight newsletter, issue 11. Date: undated; published between 2000 and 2005 (from the neighbouring dated issues).
I S S U E
N
E
W
S
L
E
1 1
T
T
E
R
Loading New Engine Files Into RockSim
By Tim Van Milligan
I was recently requested by a reader of this e-zine to write
a how-to article about loading new engine files into RockSim.
So that is where the inspiration for this issue comes from.
For those of you who don't own a copy of RockSim, I
apologize for presenting information that may not be of use to
you. The free demo version of the program is fixed, and can't
be modified to accept new motors.
First, why is it necessary to input new motors into the
program? Simple; new motors are constantly becoming available to modelers, and they'll want to try them out in RockSim
first before putting good models at risk. A case in point is the
new Cesaroni from Black Sky. These are brand new, and already there is interest among modelers for the data.
There are two ways to put new motors into RockSim.
The first is to download the files directly from the internet
Step 1: When you download engine files from the internet
sites, be sure to store them in RockSim’s “DATA” folder.
They MUST be in this folder!
(look at the web site: www.thrustcurve.org), and the second
way is to input the data manually into RockSim using the engine editor (called "EngEdit") program that comes bundled
with RockSim. Downloading from the internet is the preferred
way for most modelers, as most people feel more confident
that the data files created by others is somehow more correct.
The files that RockSim uses are in the standard rasp.eng
format. This is a text format that has been around for at least
10 years. It is easy to decipher with a text editor program too.
If you want additional information about the format, please
read accomanying article (click here).
If you choose to download files from the web site http://
www.thrustcurve.org, or from www.RocketReviews.com. be
sure to select the RockSim format. But the most important
Step 2: You can find the Engine Database Compiler program from the START menu button.
1130 Elkton Drive, Suite A
Colorado Springs, CO 80907 USA
www.ApogeeRockets.com
orders @ApogeeRockets.com
phone 719-535-9335 fax 719-534-9050
Page
1
P
E
A
K
O
F
Step 3: When you run the engine compiler program, all
the motor files that were stored in the data folder will be
shown on the left side of the screen. Scroll down to make
sure your new file is listed. If it isn’t listed, you either
didn’t store it in the “DATA” folder, or the file has been
corrupted, and the compiler doesn’t recognize it as a
engine file.
thing you must do is to put the downloaded file into the
"DATA" folder of RockSim.
After the files are placed into the "DATA" folder, the next
step is to run the engine compiler program (called
"CompEng"). The compiler does two things. First, it merges
all your motor data files into one big file, and second, it cre-
Step 4: Click the ADD ALL button in the middle. You must
compile all the motors, not just the new ones.
A P O G E E
Page 2
F
L
I
G
H
T
Step 5: When you’re done compiling, you’ll get an alert
message like the one listed above. You can now quit the
compiler program, and re-start RockSim. You’re now
done!
ates a mass depletion curve for each of the motors. Also, it
stores the file in a place where RockSim knows to look for it.
When running the engine compiler, it is important to compile all your motors, not just the new ones. If you don't, only
the new motors will show up when you go to load a motor
into a rocket. The old ones will have disappeared. But you can
always go back and recompile your engine database again to
get them back.
The final step is to restart RockSim. This will load the
new compiled engine data file into the program. If the program was running, instead of quitting and restarting the program, you can go into the "File" pull-down menu, and select
"RELOAD ENGINE DATA."
That's it! You should now be up and running with your
new motor files.
If you choose to enter the data manually, you'll be using
the EngEdit program in a step prior to compiling the new motor
files. This program is pretty basic to use, but it does come
with its own help manual. You'll find that manual in the same
folder as the EngEdit program.
Ok, this all sounds pretty simple. So what could possibly
go wrong?
First, you may be trying to put in a motor diameter that
isn't recognized by RockSim. I found out this week that the
Hypertek L460 motor as listed on www.thrustcurve.org has a
oddball diameter of 110mm. How do you get RockSim to recognize that size?
There is a file in your hard drive called "RockSim.ini"
R O C K E T S
PAGE 2
P
E
A
K
O
F
You may need to use windows explorer to find it.
Open it using a text editor program. Then scroll down
through the list to find the following entry:
ShoulderClearance= 0.508000
EngineSizes=105,130,240,290,320,380,540,750,980
Change the Engine Size entry to:
EngineSizes=105,130,240,290,320,380,540,750,980,1100
The units are 1/10mm -- just in case you want to add another motor size too; like the 6mm Quest MicroMaxx motors.
Save the file, and then restart RockSim. You'll now have
support for 1100mm motors.
Another problem that often occurs is when you have two
motors in the database with the same designation. For example,
you can buy a Estes C6, Quest C6, and Apogee Components'
C6 motor. They can't be all named "C6" or it will confuse the
RockSim program. So what you need to do is to change the
title of the motor. For example: ESTC6, QUESTC6, and
APOC6. The name does not affect the RockSim program at
all, so don't worry about using odd names. RockSim calculates the performance of the rocket based on the thrust curve
and the weight of the propellant.
Another problem that often occurs is that users open the
rasp.eng files in a text editor program, and forget to save the
file as "TXT" when done. If you do this, the compiler program will give you an error message. If you can't open the file
in EngEdit, that might be the case too. Just go back into the
text editor, and resave the file as text. If you use the extension
.eng, that helps you to recognize the file as a motor thrust
curve.
For those people that like to enter the data manually into
EngEdit, a potential problem that arises is that they forget to
use NEWTONS on the thrust curve. The data sheets that come
with Aerotech motors are listed in pounds, and this unit conversion process is often overlooked.
A similar problem is entering the mass of the propellant
in grams, instead of Kilograms. This usually shows up later
F
L
I
G
H
T
when the motor won't lift the rocket from the pad.
The 75mm motors from Ellis Mountain and all the hybrid motors are unique in the aspect that they do not have
delays. So if you download the files from www.thrustcurve.org,
and go directly to the engine compiler; you may not pick up
on this.
Usually the first indication that something is wrong is
when the user loads the engine into a rocket design, and the
only delays available are 0 and "ALL." The new user to
RockSim (that doesn't read the users manual in the help file)
doesn't realize that "ALL" in the engine delay selector means
to calculate and indicate on the graphs where each of the other
delays listed take place. Since the only "other" delay above
"ALL" is zero; RockSim stops immediately at motor burnout,
because it assumes the motor is a booster. There is no coast
phase.
This is easily corrected in RockSim. The program will
allow you to enter a delay directly into the text box when loading a motor. For your big rockets, I always tell users to enter
something big, like 30 seconds. Afterwards, you can use the
flight summary to find out the correct delay time to use.
The biggest problem that I see by far is that users forget
to place or save the engine files into the "DATA" folder. If you
don't do this, the compiler program won't find the new motor.
It only looks in the "DATA" folder for motor files.
If you avoid the few pitfalls, loading a new motor into
RockSim is straightforward. If you want to give it a try, you
can find engine data files at: www.RocketReviews.com
About the Author:
Tim Van Milligan is the owner of Apogee Components
(http://www.apogeerockets.com) and the curator of the rocketry education web site: http://www.apogeerockets.com/education. He is also the author of the books: "Model Rocket Design and Construction," "69 Simple Science Fair Projects with
Model Rockets: Aeronautics" and publisher of the FREE ezine newsletter about model rockets. You can subscribe to the
e-zine at the Apogee Components web site, or sending an email
to: [email protected] with "SUBSCRIBE" as the subject line of the message.
About this Newsletter
You can subscribe “FREE” to receive this e-zine at the Apogee Components web
site (www.ApogeeRockets.com), or sending an email to: [email protected]
with "SUBSCRIBE" as the subject line of the message.
A P O G E E
R O C K E T S
Page
3
P
E
A
K
O
F
F
L
I
G
H
T
What is the RASP Engine Format?
The RASP file format was chosen for EngEdit due to the
fact that RASP engine files are readily available on the internet
and other on line services. Each RASP style engine file can
contain definitions for one or more engines. A description of
the file layout follows.
General file features:
1. The files are standard ASCII text files consisting of
printable ASCII data lines followed by DOS or UNIX style
line terminators. (<CR><LF> or <LF>).
2. Any data line preceded by a semi-colon is treated as
a comment line and ignored.
3. Text strings cannot contain embedded spaces.
4. Data points (time & Thrust) can only have two digits
after the decimal point.
The file layout:
Engine 0
Engine 1
..
Engine n
thrust of 0.0 mark the end of the list.
EngEdit supports a maximum of 30
data points.
A sample engine definition is shown here:
;This is a comment
D12 24 70 0-3-5-7 0.0211 0.0438 Estes
0.04
1.00
0.08
3.00
0.12
5.00
0.16
10.00
0.20
15.00
0.24
22.70
0.28
22.70
0.30
15.00
0.36
13.00
0.50
10.50
1.50
9.44
1.55
0.00
The Engine description layout:
Engine field name
Format
Code
NAR style engine code. (Example: C6)
Diameter
The casing diameter in mm.
Length
The casing length in mm.
Ejection delays
This is a list of available ejection delays. Each delay time is deilimited by a
dash ('-') character. ( Example: 2-4-6 )
Propellant weight
The mass of the propellant in kg.
Initial weight
The total weight of the engine including the propellant. This is the pre launch
weight.
Manufacturer name
This is a text string indicating the manufacturer of the engine. This can be any
contiguous string of text w/o spaces.
Thrust data
The thrust data points for the engine.
This consists of Time Thrust pairs,
where time is in seconds and thrust is
in newtons. A time of n seconds and a
A P O G E E
Page 4
If you open the Engine file up in the Engine Editor program, it will look like this screen.
R O C K E T S