Jump to content

Had an idea but I need some help


jab136

Recommended Posts

I am trying to write a matlab script to create optimal ascent profiles for launch vehicles and I was wondering if anyone knew if there was a way to get thrust curves for every engine as a function of pressure (for rocket engines)  and the total thrust curves for jet engines.  I also need a method of exporting Cd and Cl curves from the game for FAR, and as a note, I am using AJE which affects the thrust curves for the jet engines.

Edited by jab136
Link to comment
Share on other sites

From Wikipedia:

F = I_\text{sp}(\text{vac}) g_\text{o} \dot{m} - A_\text{e} p_\text{o},

F thrust, Isp specific impulse in vacuum (s), go standard gravitational acceleration, m mass flow rate, Ae cross sectional area of nozzle exit and po external ambient pressure (Pa)

You are not given Ae but you can work it out fairly easily using given asl stats.

I'm not sure KSP calculates atmospheric thrusts like this though, you should probably check that this works.

 

For jet engines, you have to account for speed as well. I don't know the exact equations, but several thrust curves with speed have been made. You can find them searching a bit on the forums.

Edited by Gaarst
Link to comment
Share on other sites

1 minute ago, Gaarst said:

From Wikipedia:

F = I_\text{sp}(\text{vac}) g_\text{o} \dot{m} - A_\text{e} p_\text{o},

F thrust, Isp specific impulse in vacuum (s), go standard gravitational acceleration, m mass flow rate, Ae cross sectional area of nozzle exit and po external ambient pressure (Pa)

You are not given Ae but you can work it out fairly easily using given asl stats.

I'm not sure KSP calculates atmospheric thrusts like this though, you should probably check that this works.

 

For jet engines, you have to account for speed as well. I don't know the exact equations, but several thrust curves with speed have been made. You can find them searching a bit on the forums.

I know the real relations (I am currently working on my graduate AE degree and it looks like my thesis will be on propulsion), I was just trying to figure out if anyone knew how squad programmed it, since it may not actually follow that curve very well.

Link to comment
Share on other sites

The best answer to that is to do the experiment.

Calculate predicted thrusts using the formula. Measure the thrust of an engine at different pressures/altitudes in KSP. Compare.

If the two are the same, then great. If not, well, at least you have experimental measurements, try to work out the formula using them.

Edited by Gaarst
Link to comment
Share on other sites

I pulled up the config file for the skipper and found a bit that is 

atmosphereCurve
{
	key=0 320
	key=1 280
	key=6 .001
]

I assume this is the thrust curve, but I wasn't sure how they interpolate between the points, I also assume the first number is the number of atmospheres where this is true, and the second number is the Isp at that pressure

8 minutes ago, Gaarst said:

The best answer to that is to do the experiment.

Calculate predicted thrusts using the formula. Measure the thrust of an engine at different pressures/altitudes in KSP. Compare.

yah, I will probably end up doing that, I was just kind of hoping I could find someone who knew how it was actually coded

Edited by jab136
Link to comment
Share on other sites

1 minute ago, jab136 said:

yah, I will probably end up doing that, I was just kind of hoping I could find someone who knew how it was actually coded

Or you can wait a bit, I'm not the only one here on the forums, and there are probably even users that know how this works :P

Link to comment
Share on other sites

yah, I did the test with the "swivel"  so I guess they didn't model it completely properly since technically the exit conditions are dependent on the outside conditions (v_e and P_e aren't actually necessarily constant since you can have issues if P_e and P_a have a large difference).  Oh well, that makes it easier for me.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...