-
Notifications
You must be signed in to change notification settings - Fork 11
/
horizontal_tail.py
53 lines (43 loc) · 1.67 KB
/
horizontal_tail.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
" horizontal tail "
import numpy as np
from gpkit import parse_variables
from .tail_aero import TailAero
from gpkitmodels.GP.aircraft.wing.wing import Wing
from gpkitmodels.GP.aircraft.wing.wing_skin import WingSkin
from gpkitmodels.GP.aircraft.wing.wing_core import WingCore
#pylint: disable=attribute-defined-outside-init, no-member
#pylint: disable=exec-used, undefined-variable
class HorizontalTail(Wing):
""" Horizontal Tail Model
Variables
---------
Vh [-] horizontal tail volume coefficient
lh [ft] horizontal tail moment arm
CLhmin 0.75 [-] max downlift coefficient
mh [-] horizontal tail span effectiveness
Upper Unbounded
---------------
lh, Vh, W, planform.tau (if not sparModel)
Lower Unbounded
---------------
lh, Vh, planform.b, mh, planform.tau (if not sparModel)
spar.Sy (if sparModel), spar.J (if sparJ)
LaTex Strings
-------------
Vh V_{\\mathrm{h}}
lh l_{\\mathrm{h}}
CLmin C_{L_{\\mathrm{min}}}
mh m_{\\mathrm{h}}
"""
flight_model = TailAero
fillModel = WingCore
sparModel = None
def setup(self, N=3):
exec parse_variables(HorizontalTail.__doc__)
self.ascs = Wing.setup(self, N)
self.planform.substitutions.update(
{self.planform.AR: 4, self.planform.lam: 0.8})
if self.fillModel:
self.foam.substitutions.update({self.foam.Abar: 0.0548,
self.foam.material.rho: 0.024})
return self.ascs, mh*(1+2.0/self.planform["AR"]) <= 2*np.pi