Jump to content

How to do thrust curves in stock ksp?


Recommended Posts

4 minutes ago, Kartoffelkuchen said:

Thanks @heliobyte, that was what I was looking for. There unfortunately isn't an example yet - could somebody make a small tutorial? I am not sure if I understood this all correctly. :/

If there is indeed an actual thrust curve feature  in 1.1.+ I think summoning @NathanKell would be your best bet for answers.

Link to comment
Share on other sites

thrustCurve keys ratio of fuel remaining to control flow rate, in turn controlling actual thrust. easiest example is SRBs

thrustCurve
        {
            key = 1 1           // full fuel, full flow rate.
            key = 0 0           // 0 fuel remaining, 0 flow rate
        }

fuel ratio should never be more than 1, as your tanks can't hold more than maximum amount. setting flow rate to values higher than 1 will produce initial spike in thrust (and heat production and the rest), which Jeb will leverage for unintended uses I'm sure.

There's a lot more to this I'm sure... the above is just from experimenting with an SRB in game. Using the simple curve above never burns all the fuel, the engine flames out when flow rate hits ~1% of max. NathanKell will hopefully explain in clearer terms.

Edited by nli2work
Link to comment
Share on other sites

 

If I'm understanding correctly, then the normal behavior for an SRB without a thrust curve would behave the same as:

 

thrustCurve
        {
            key = 1 1           // full fuel, full flow rate.
            key = 0 1           // 0 fuel remaining, full flow rate
        }

.. Since it would be 100% flow rate from beginning to end. And then something like this would allow a tapering off of thrust in the last 10% of fuel:

 

thrustCurve
        {
            key = 1 1           // full fuel, full flow rate.

            key = 0.1 1         // 10% fuel remaining, still full flow rate
            key = 0 0.1         // 0 fuel remaining, 10% flow rate.
        }

 

Do I have this right? I'm thinking of using something like this in my packs, like SpaceY. A flat thrust curve, tapering off at the end is something reasonably easy for people to understand, and slightly more realistic than the hard cutoff we get now. I'd probably change the actual values though. Maybe last 5% of the fuel for the tapering range, or something.

 

 

Link to comment
Share on other sites

That's a good starting point. I'd run it through the curve editor to make sure there's no unintended spline overshoots. A big dip/spike in thrust is much more noticeable than a dip/spike in ISP. Multi-propellant engines with big variance in fuel ratio like air engines will take more tinkering. I still don't understand why there would be fuel remaining with a simple 1-0 curve.

A tweakable thrust curve in Editor would be really useful especially for SRBs where it burns just fast enough for TWR>1 for lower atmosphere, then faster burn rate for higher thrust in upper atmosphere.

Link to comment
Share on other sites

On 5/1/2016 at 8:01 PM, heliobyte said:

Is this what you are looking for? 

 

No permission to see it. I've had this happen on several quoted threads lately.

Is there a problem with the forum software, or is NDA information being discussed in public sections?

Link to comment
Share on other sites

51 minutes ago, swjr-swis said:

No permission to see it. I've had this happen on several quoted threads lately.

Is there a problem with the forum software, or is NDA information being discussed in public sections?

It's fine, Kartoffelkuchen saw the link before it spazed out.

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