-
Notifications
You must be signed in to change notification settings - Fork 11
/
wing_core.py
37 lines (28 loc) · 930 Bytes
/
wing_core.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
" wing interior "
from gpkit import Model, parse_variables
#pylint: disable=exec-used, no-member, undefined-variable
class WingCore(Model):
""" Wing Core Model
Variables
---------
W [lbf] wing core weight
rhocore 0.036 [g/cm^3] core density
Abar 0.0753449 [-] normalized cross section area
g 9.81 [m/s^2] graviataional constant
Upper Unbounded
---------------
W
Lower Unbounded
---------------
cave, b
LaTex Strings
-------------
rhocore \\rho_{\\mathrm{core}}
Abar \\bar{A}
"""
def setup(self, surface):
exec parse_variables(WingCore.__doc__)
cave = self.cave = surface.cave
b = self.b = surface.b
deta = surface.deta
return [W >= 2*(g*rhocore*Abar*cave**2*b/2*deta).sum()]