Skip to content

Commit

Permalink
try again: replace 'tr' by Aircraft.HorizontalTail.TAPER_RATIO in emp…
Browse files Browse the repository at this point in the history
…ennage.py
  • Loading branch information
xjjiang committed Dec 31, 2024
1 parent 71dcb32 commit 6ecc24c
Showing 1 changed file with 23 additions and 35 deletions.
58 changes: 23 additions & 35 deletions aviary/subsystems/geometry/gasp_based/empennage.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,18 @@ def setup(self):
else:
self.k = [0.43, 0.38, 0.85]

add_aviary_input(self, Aircraft.HorizontalTail.VERTICAL_TAIL_FRACTION, val=0)
add_aviary_input(self, Aircraft.HorizontalTail.VERTICAL_TAIL_FRACTION)

add_aviary_input(self, Aircraft.Fuselage.LENGTH, val=129.4)
add_aviary_input(self, Aircraft.Fuselage.LENGTH)

self.add_input("cab_w", 13.1, units="ft", desc="SWF: Cabin width")

add_aviary_input(self, Aircraft.Wing.AREA, val=1370)
add_aviary_input(self, Aircraft.Wing.AREA)

self.add_input(
"wing_ref",
12.615,
units="ft",
desc=(
"CBARW | B: Wing reference parameter. Wing chord for a "
"horizontal tail. Wing span for a vertical tail."
),
)
self.add_input("wing_ref", 12.615, units="ft", desc=(
"CBARW | B: Wing reference parameter. Wing chord for a "
"horizontal tail. Wing span for a vertical tail."),
)

self.add_output(
"vol_coef", units="unitless", desc="VBARH | VBARV: Tail volume coefficient")
Expand Down Expand Up @@ -107,32 +102,23 @@ def setup(self):
desc="VBARH | VBARV: Horizontal tail volume coefficient"
)

add_aviary_input(self, Aircraft.Wing.AREA, val=1370)

self.add_input(
"r_arm",
0.2307,
units="unitless",
desc=(
"COELTH | BOELTV: For a horizontal tail, the ratio of "
"wing chord to tail moment arm. For a vertical tail, the "
"ratio of wing span to vertical tail moment arm."
),
)
self.add_input(
"wing_ref",
12.615,
units="ft",
desc=(
"CBARW | B: Reference wing parameter for tail moment arm. "
"For a horizontal tail, the mean wing chord. For a "
"vertical tail, the wing span."
),
)
add_aviary_input(self, Aircraft.Wing.AREA)

self.add_input("r_arm", 0.2307, units="unitless",
desc=("COELTH | BOELTV: For a horizontal tail, the ratio of "
"wing chord to tail moment arm. For a vertical tail, the "
"ratio of wing span to vertical tail moment arm."),
)
self.add_input("wing_ref", 12.615, units="ft",
desc=("CBARW | B: Reference wing parameter for tail moment arm. "
"For a horizontal tail, the mean wing chord. For a "
"vertical tail, the wing span."),
)
self.add_input(
"ar", 4.75, units="unitless", desc="ARHT | ARVT: Tail aspect ratio.")
self.add_input(
Aircraft.HorizontalTail.TAPER_RATIO, 0.352, units="unitless", desc="SLMH | SLMV: Tail taper ratio.")
Aircraft.HorizontalTail.TAPER_RATIO, 0.352, units="unitless",
desc="SLMH | SLMV: Tail taper ratio.")

self.add_output("area", units="ft**2", desc="SHT | SVT: Tail area")
self.add_output("span", units="ft", desc="BHT | BVT: Tail span")
Expand Down Expand Up @@ -238,6 +224,7 @@ def setup(self):
higher_level_inputs_htail = [
("wing_ref", Aircraft.Wing.AVERAGE_CHORD),
# ("tr", Aircraft.HorizontalTail.TAPER_RATIO),
Aircraft.HorizontalTail.TAPER_RATIO,
]
higher_level_inputs_vtail = [
("wing_ref", Aircraft.Wing.SPAN),
Expand All @@ -252,6 +239,7 @@ def setup(self):
rename_inputs_vtail = [
("r_arm", Aircraft.VerticalTail.MOMENT_RATIO),
# ("tr", Aircraft.VerticalTail.TAPER_RATIO),
Aircraft.HorizontalTail.TAPER_RATIO,
]

# outputs that are used in groups other than this one
Expand Down

0 comments on commit 6ecc24c

Please sign in to comment.