convexengineering / gplibrary

Useful subsystem models
MIT License
10 stars 11 forks source link

Air density as a function of elevation #4

Closed bqpd closed 8 years ago

bqpd commented 8 years ago

This would lead to more-meaningful sensitivities for aircraft.

bqpd commented 8 years ago

Concave (i.e. works if rho and h are good) to 27.4km:

image

(model from https://en.wikipedia.org/wiki/Density_of_air#Altitude)

pgkirsch commented 8 years ago

wait i did this already!

bqpd commented 8 years ago

woot!

bqpd commented 8 years ago

And here I was looking forward to using gpfit

pgkirsch commented 8 years ago

https://github.mit.edu/convex/GPjet/blob/master/standard_atmosphere.py

pgkirsch commented 8 years ago

I tried using GPfit but it failed me for some reason and I haven't had time to figure out why

bqpd commented 8 years ago

I'll mess around a bit some other time, then :D

It doesn't look like it'll need Signomials...

whoburg commented 8 years ago

wait that only goes to 15km, a bit higher would help my current application

also, a GP, not SP, model seems achievable from the plot above, assuming that the application is putting upward pressure on h and rho

bqpd commented 8 years ago

In such a model I'd be tempted to bake gravity in as a EQ constraint just so it'd stop showing up in sensitivities :p

pgkirsch commented 8 years ago

Hmmm that was just my first take at a working solution, will look into it some more.

whoburg commented 8 years ago

great! awesome.

pgkirsch commented 8 years ago

Addressed in #45