Skip to content

Commit

Permalink
set Aircraft.HorizontalTail.TAPER_RATIO = 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xjjiang committed Jan 13, 2025
1 parent a1d6fd6 commit 7d36dd0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions aviary/subsystems/geometry/flops_based/prep_geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ def setup(self):
add_aviary_input(self, Aircraft.HorizontalTail.AREA, 0.0)
add_aviary_input(self, Aircraft.HorizontalTail.ASPECT_RATIO,
4.75, units="unitless")
add_aviary_input(self, Aircraft.HorizontalTail.TAPER_RATIO,
0.352, units="unitless")
add_aviary_input(self, Aircraft.HorizontalTail.TAPER_RATIO)
add_aviary_input(self, Aircraft.HorizontalTail.THICKNESS_TO_CHORD, 0.0)

add_aviary_input(self, Aircraft.VerticalTail.AREA, 0.0)
Expand Down
2 changes: 1 addition & 1 deletion aviary/subsystems/geometry/gasp_based/empennage.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def setup(self):
self.add_input(
"ar", 4.75, units="unitless", desc="ARHT | ARVT: Tail aspect ratio.")
self.add_input(
"tr", 0.352, units="unitless", desc="SLMH | SLMV: Tail taper ratio.")
"tr", 0.0, 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
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def setUp(self):
self.prob.model.set_input_defaults("tr", val=0.352, units="unitless")

def test_large_sinle_aisle_1_htail(self):
self.prob.set_val("tr", 0.352, units="unitless")
self.prob.run_model()

assert_near_equal(self.prob["area"], 375.9, tol)
Expand Down
3 changes: 3 additions & 0 deletions aviary/subsystems/geometry/gasp_based/test/test_size_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def setUp(self):
self.prob.model.set_input_defaults(
Aircraft.Wing.TAPER_RATIO, val=0.33, units="unitless"
)
self.prob.model.set_input_defaults(
Aircraft.HorizontalTail.TAPER_RATIO, val=0.352, units="unitless"
)
self.prob.model.set_input_defaults(Aircraft.Wing.SWEEP, val=25, units="deg")
self.prob.model.set_input_defaults(
Aircraft.Wing.THICKNESS_TO_CHORD_ROOT, val=0.15, units="unitless"
Expand Down
2 changes: 1 addition & 1 deletion aviary/subsystems/mass/flops_based/horizontal_tail.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class HorizontalTailMass(om.ExplicitComponent):

def setup(self):
add_aviary_input(self, Aircraft.HorizontalTail.AREA)
add_aviary_input(self, Aircraft.HorizontalTail.TAPER_RATIO, val=0.352)
add_aviary_input(self, Aircraft.HorizontalTail.TAPER_RATIO)
add_aviary_input(self, Mission.Design.GROSS_MASS)
add_aviary_input(self, Aircraft.HorizontalTail.MASS_SCALER)

Expand Down

0 comments on commit 7d36dd0

Please sign in to comment.