Jump to content

Reverse engineering Jet Engines - how do velCurve and atmCurve work?


Recommended Posts

In the code for the new 1.0 jetEngineTurbo.cfg part, we find this:

// Jet params
atmChangeFlow = True
useVelCurve = True
useAtmCurve = True
machLimit = 2.5
machHeatMult = 6.0
velCurve
{
key = 0 1 0 0
key = 0.2 0.98 0 0
key = 0.8395604 1.716071 1.051736 1.051736
key = 1.617582 3.022408 1.986082 1.986082
key = 2.327472 4.626338 1.452677 1.452677
key = 3.00 5.3 0.0005786046 0.0005786046
key = 4.25422 2.495532 -4.279616 -4.279616
key = 6 0 -0.02420209 0
}
atmCurve
{
// definite 'kink' to the curve at high altitude, compared to flatter BJE curve
key = 0 0 0 0
key = 0.045 0.166 4.304647 4.304647
key = 0.16 0.5 0.5779132 0.5779132
key = 0.5 0.6 0.4809403 0.4809403
key = 1 1 1.013946 0
}

Iffn posted a great analysis of the old jet performance, and Ferram chimed in here. Anyone want to take a crack at the same analysis for the 1.0 New Aero?

Edited by antbin
Link to comment
Share on other sites

The velocity curve looks like the value is Mach number and the second is thrust in kN.

For the atmosphere curve, the first should be pressure (relative Kerbin Sea Level) and the second is Isp multiplier.

I don't know this for a fact, and I have no idea what the other values are.

Best,

-Slashy

Link to comment
Share on other sites

Atmospheric pressure is a thing when it comes to planes now. So is air density. Engines perform better in the cold night because the air is denser and so there is more air to combust.

AFAIK temperature has nothing to do with it, in ksp.

Link to comment
Share on other sites

Radam: This is 1.0, not .90 :P

Please see this thread on how floatcurve tangents work or here if you want the math behind evaluating them. tl;dr the numbers are time, value, intangent, outtangent.

atmCurve relates density (in atmospheres, so density/1.225) to a flow multiplier. velCurve relates mach to a flow multiplier. Final thrust is based on the requested flow (from throttle) times the flow multipliers times Isp times g0 (9.80665m/s^2).

Link to comment
Share on other sites

Kosmo-not: it was never linear interpolation, it was interpolation of a Unity AnimationCurve without tangents specified (i.e. autotangents). Look at that first link I gave. ;)

Also, again, atmosphereCurve uses pressure, and is for Isp. atmCurve uses density, and is for flow (i.e. thrust).

Link to comment
Share on other sites

Thanks for the insight Nathan. Pressure and mach make sense, but what pilots could really use is a thrust multiplier chart in terms of m/s and altitude. Does it take many assumptions to recalculate the curves for those measures?

Link to comment
Share on other sites

Radam: This is 1.0, not .90 :P

Please see this thread on how floatcurve tangents work or here if you want the math behind evaluating them. tl;dr the numbers are time, value, intangent, outtangent.

atmCurve relates density (in atmospheres, so density/1.225) to a flow multiplier. velCurve relates mach to a flow multiplier. Final thrust is based on the requested flow (from throttle) times the flow multipliers times Isp times g0 (9.80665m/s^2).

I know it is 1.0 and I have been assuming its a curve. Thanks for the link to what it actually is. But even without exact tangents I have been able to get reasonably close. As jet seems to have constant isp figure, flow is directly proportional to thrust.

I have also been assuming its basing the thrust off of stationary thrust value and multiplying it by both atmospheric pressure curve and velocity curve.

Thanks for the insight Nathan. Pressure and mach make sense, but what pilots could really use is a thrust multiplier chart in terms of m/s and altitude. Does it take many assumptions to recalculate the curves for those measures?

3D graph I posted is reasonably close to the actual thrust vs both speed and altitude.

Link to comment
Share on other sites

Thrust/Pressure relation instead of ISP/Pressure? It would be really great in terms of atmospheric engines.

Now I will be able to release experimental impeller part.

If your isp is constant, your thrust/pressure is also directly related.

What would your impeller do?

I think Nathan is saying that, yes, Temperature DOES affect Density :P

It does in real life, while in ksp density is just directly modeled to altitude.

Link to comment
Share on other sites

Radam: Two things. one, atmCurve uses density, not pressure. Jet thrust (and you're right with constant Isp thrust is a linear function of flow) is related to density and mach, not pressure and mach. Two, density most certainly does take temperature into account. I invite you to grab AeroGUI and turn it on, and check how density changes between day and night.

Link to comment
Share on other sites

Radam: Two things. one, atmCurve uses density, not pressure. Jet thrust (and you're right with constant Isp thrust is a linear function of flow) is related to density and mach, not pressure and mach. Two, density most certainly does take temperature into account. I invite you to grab AeroGUI and turn it on, and check how density changes between day and night.

That would explain thrust increase in upper layers, now I remember someone plotting temperature vs height a few versions back.

Link to comment
Share on other sites

Nathan, could you post the math relating altitude to density at the equator? And day/night if you like.

Also need the relationship between speed, altitude and mach.

340m/s = mach

Relationship of speed altitude and thrust is a 3d graph. Like the one I made a few posts back. Might be slightly off but close enough.

Seems like the SSTO ascent is now: ascent to 5km, break the sound barrier, pitch up if heat becomes too excessive. Switch to rocket mode at 1300ms...

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...