OpenRocket center of Mass

The Rocketry Forum

Help Support The Rocketry Forum:

itb7

New Member
Joined
Mar 8, 2020
Messages
1
Reaction score
0
Hello everybody,
I'm pretty new here, and looking for some advice on using OpenRocket to run a sim of a custom motor.
I'm not certain how OpenRocket is supposed to do this, but I'd like to control the center of gravity for the motor, which will change for the first couple seconds of flight as the propellant burns. My first thought was to write an equation to describe the motor's mass over time, but it would have to be a piecewise function to work during the coast phase as well. I've added a simple mass component, but when I type the equation into the 'mass' box, it just disappears after closing the component window. What I'm looking for is if anyone else has encountered this issue, or has ideas for a solution.
Thanks very much!
 

afadeev

Well-Known Member
TRF Supporter
Joined
Sep 21, 2017
Messages
1,227
Reaction score
506
I'm not certain how OpenRocket is supposed to do this, but I'd like to control the center of gravity for the motor, which will change for the first couple seconds of flight as the propellant burns. My first thought was to write an equation to describe the motor's mass over time, but it would have to be a piecewise function to work during the coast phase as well.
Completely unnecessary complexity.
CG (center of gravity) matters primary for the initial rocket stability off the pad. At that point, you want to have CG to be ahead of CP (center of pressure) by 1+ calibers (airframe diameters).
As the motor burns, the CG moves forward, increasing stability. By how much, exactly, is not all that material.


HTH,
a

P.S.: There is such a thing as over-stable rocket that can become over-sensitive to cross winds during coasting phase, but based on the nature of the question you are asking, we don't need to go into that.
 

manixFan

Not a rocket scientist
Joined
Feb 15, 2009
Messages
1,676
Reaction score
687
Location
TX
Unless I am misunderstanding what you want, OpenRocket already has this feature built in. Just make a .eng file for you motor and run a sim. Then choose the "Plot / export" button, and from the presets choose "Stability vs time". That will produce a plot showing 'dynamic' stability, although ideally you would be able to plot a variety of angles of attack as well. During flight, both the CG and the CP move, so stability changes over time. The location of the CP moves rearward during flight, but the CG of course moves forward, so for most rockets it balances out. One big thing you'll notice is that the margin of stability shifts far more for longer, skinner rockets than for shorter, fat rockets.

The first chart is of a Mongoose 54mm on a L935, the stability margin changes by 4 calibers during flight, the second one is of a LOC Bullet, the margin changes by only 1 caliber during flight.


Tony

See this thread for info on custom motor files:


LOC Bullet on an I540:
Bullet.png


54mm Mongoose on an L935:
Mongoose.png
 
Last edited:

Buckeye

Well-Known Member
Joined
Sep 6, 2009
Messages
2,405
Reaction score
300
The OP did not ask how to make a rocket stable nor snarky comments on the necessity of his question. He asked how to move the CG of a custom motor as it burns. Yes, this is a real thing, and it was an important consideration in the days of hybrid motors, or when you want moment of inertia information.

I don't think OpenRocket can do it without some user subroutine plugins, which are not easy. As dhbarr mentioned, the RockSim .rse engine format has a field for motor CG over time.
 
Last edited:

manixFan

Not a rocket scientist
Joined
Feb 15, 2009
Messages
1,676
Reaction score
687
Location
TX
The OP did not ask how to make a rocket stable nor your 2 cents on the necessity of his question. He asked how to move the CG of a custom motor as it burns. Yes, this is a real thing, and it was an important consideration in the days of hybrid motors, or when you want moment of inertia information.

I don't think OpenRocket can do it without some user subroutine plugins, which are not easy. As dhbarr mentioned, the RockSim .rse engine format has a field for motor CG over time.
Hmm, how are the graphs produced by OpenRocket (linked above) not what the OP wanted? It is clearly showing the shift in CG due to the motor burn. I assume it's just using linear consumption of the propellant, which might not be completely accurate, but close enough. (The green line is not completely linear but pretty close.) The .eng file includes the propellant and motor weight, so it has the information needed. The graph shows the CG of the Mongoose moving from 50" behind the nosecone to just over 42" during the motor burn, and then it is static after that. For the Bullet, the CG moves from 27.75" to just under 26".

What am I missing here regarding the OPs request?


Tony
 
Last edited:

dhbarr

Amateur Professional
Joined
Jan 30, 2016
Messages
6,381
Reaction score
1,036
Hmm, how is the graph produced by OpenRocket not what the OP wanted? It is clearly showing the shift in CG due to the motor burn. I assume it's just using linear consumption of the propellant, which might not be completely accurate, but close enough. (The green line is not completely linear but pretty close.) The .eng file includes the propellant and motor weight, so it has the information needed. The graph shows the CG of the Mongoose moving from 50" behind the nosecone to just over 42" during the motor burn, and then it is static after that. For the Bullet, the CG moves from 27.75" to just under 26".

What am I missing here regarding the OPs request?


Tony
CG of the motor itself through the burn -- OR assumes the motor CG stays put and only modifies the overall CG
 

manixFan

Not a rocket scientist
Joined
Feb 15, 2009
Messages
1,676
Reaction score
687
Location
TX
CG of the motor itself through the burn -- OR assumes the motor CG stays put and only modifies the overall CG
Unless the OP is using something other than a solid propellant motor, what is the functional difference? As the motor burns propellent, the CG of the rocket shifts forward as the propellant is burned. Typically the propellent burns along the entire length of the motor in a very nearly linear fashion. I suppose if it is a 'dual-thrust' motor with a mix of fast and slow burning grains it could vary, as of course would an end-burner, but those are unique cases.

I would be very interested in any real-world examples of motors that have substantially different CGs before and during burning, as well as after. And in hearing more from the OP what kind of motor he is using.


Tony
 
Last edited:

dhbarr

Amateur Professional
Joined
Jan 30, 2016
Messages
6,381
Reaction score
1,036
Unless the OP is using something other than a solid propellant motor, what is the functional difference? As the motor burns propellent, the CG of the rocket shifts forward as the propellant is burned. Typically the propellent burns along the entire length of the motor in a very nearly linear fashion. I suppose if it is a 'dual-thrust' motor with a mix of fast and slow burning grains it could vary, as of course would an end-burner, but those are unique cases.

I would be very interested in any real-world examples of motors that have substantially different CGs before and during burning, as well as after. And in hearing more from the OP what kind of motor he is using.
Every hybrid ever made, for one.
 

manixFan

Not a rocket scientist
Joined
Feb 15, 2009
Messages
1,676
Reaction score
687
Location
TX
Every hybrid ever made, for one.
Hence my point “unless the OP is using something other than a solid propellant motor”. Already accounted for that option. That’s why I wanted to hear from the OP about his motor, he’s the only who can shed more light on his goals.


Tony
 

rklapp

NAR# 109557
TRF Supporter
Joined
May 8, 2020
Messages
401
Reaction score
226
Location
Oahu, Hawaii
For example, by custom motor does he mean experimental that doesn’t burn linearly?
 

JoePfeiffer

Well-Known Member
Joined
Jun 15, 2013
Messages
46
Reaction score
26
It's pretty straightforward. You need to create a custom motor in .rse file format (unlike .eng files, .rse can include the motor's CG at every point along the thrust curve). The best documentation I've found for the format is at http://wiki.openrocket.info/RSE_File#:~:text=Also called "RockSim XML format,the new RockSim XML format . From within OR, it's possible to set a directory for custom motors; of course you need to put the .rse file in that directory. There doesn't appear to be any support for CG changes during the coast phase; you could model that by simply having an absurdly low thrust for that time.

I am curious as to what you're doing that requires modeling motor CG changes, though!
 
Last edited:

kbRocket

Well-Known Member
TRF Supporter
Joined
Nov 14, 2017
Messages
61
Reaction score
42
Location
Portland, OR
There are valid reasons to want to know the CG shift on all motors, including composite. Most of my flights go supersonic. I use RASAero II to assess the shift in CG during the flight to verify 2 calibers of stability by the time I hit about M0.9. Sometimes I am less than 2 calibers at launch and plan on the shift.
 

mikec

Well-Known Member
Joined
May 9, 2009
Messages
2,379
Reaction score
314
Others said this, but for clarity: Unless you are using an end-burner, a hybrid, or a weird mix of grain geometry, the default OR behavior already does exactly what you want.
 

Kelly

Usually remembers to get the pointy end up
Joined
Apr 26, 2010
Messages
253
Reaction score
126
Location
Oregon
Every hybrid ever made, for one.
Every end burner ever made, for two. (Cg moves forward during burn.)
Or a core burner with unsecured grains (Cg moves rearward during burn.)
Could be important if your rocket is mostly propellant.
 

Buckeye

Well-Known Member
Joined
Sep 6, 2009
Messages
2,405
Reaction score
300
It's pretty straightforward. You need to create a custom motor in .rse file format (unlike .eng files, .rse can include the motor's CG at every point along the thrust curve). The best documentation I've found for the format is at http://wiki.openrocket.info/RSE_File#:~:text=Also called "RockSim XML format,the new RockSim XML format . From within OR, it's possible to set a directory for custom motors; of course you need to put the .rse file in that directory. There doesn't appear to be any support for CG changes during the coast phase; you could model that by simply having an absurdly low thrust for that time.

I am curious as to what you're doing that requires modeling motor CG changes, though!
Yes, but does OR actually read and calculate with the motor CG data found in the .rse file? Or, does it just ignore it? I could run a simple test in OR and find out, but I am lazy.
 
Top