reilleya / openMotor

An open-source internal ballistics simulator for rocket motor experimenters
GNU General Public License v3.0
395 stars 77 forks source link

Negative and tabular propellant data #84

Closed mariohm1311 closed 5 years ago

mariohm1311 commented 5 years ago

For most propellants, burn rate cannot be modelled correctly by Vieille's Law. Prime examples of these non-ideal behaviors are potassium nitrate/sugar formulations such as KNSB, which forms a plateau.

image Credit to Richard Nakka.

It would be a very nice addition to have the ability to characterize any propellant curve as a piecewise power law (as defined by Vieille's Law). This includes negative exponents, which currently make openMotor crash.

reilleya commented 5 years ago

Good suggestion! I saw this plot while perusing Nakka at some point and decided I would add this functionality if someone asked for it. I'll add this in the release after the one I am currently developing unless you have some Python experience and enough time to hash it out yourself. I would excitedly accept a PR with this functionality!

reilleya commented 5 years ago

This feature is now on staging if you want to check it out @mariohm1311