Skip to content

Commit

Permalink
remove val= from individual components
Browse files Browse the repository at this point in the history
  • Loading branch information
xjjiang committed Jan 10, 2025
1 parent 97f19bb commit 159b81c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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 @@ -90,7 +90,7 @@ def setup(self):
desc="VBARH | VBARV: Horizontal tail volume coefficient"
)

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

self.add_input("r_arm", 0.2307, units="unitless",
desc=(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(self):
add_aviary_option(self, Aircraft.Wing.HAS_STRUT)

def setup(self):
add_aviary_input(self, Aircraft.Wing.SPAN, val=0)
add_aviary_input(self, Aircraft.Wing.SPAN)

if self.options[Aircraft.Strut.DIMENSIONAL_LOCATION_SPECIFIED]:
add_aviary_input(self, Aircraft.Strut.ATTACHMENT_LOCATION)
Expand Down Expand Up @@ -70,7 +70,7 @@ def initialize(self):
add_aviary_option(self, Aircraft.Wing.FOLD_DIMENSIONAL_LOCATION_SPECIFIED)

def setup(self):
add_aviary_input(self, Aircraft.Wing.SPAN, val=0)
add_aviary_input(self, Aircraft.Wing.SPAN)

if self.options[Aircraft.Wing.FOLD_DIMENSIONAL_LOCATION_SPECIFIED]:
add_aviary_input(self, Aircraft.Wing.FOLDED_SPAN)
Expand Down
4 changes: 2 additions & 2 deletions aviary/subsystems/geometry/gasp_based/wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def setup(self):
desc="SLM_NF: taper ratio between wing root and fold location",
)

add_aviary_output(self, Aircraft.Wing.FOLDING_AREA, val=50)
add_aviary_output(self, Aircraft.Wing.FOLDING_AREA)

self.add_output("nonfolded_wing_area", val=150, units="ft**2",
desc="SW_NF: wing area of part of wings that does not fold",
Expand All @@ -560,7 +560,7 @@ def setup(self):
desc="AR_NF: aspect ratio of non-folding part of wing",
)

add_aviary_output(self, Aircraft.Fuel.WING_VOLUME_GEOMETRIC_MAX, val=0)
add_aviary_output(self, Aircraft.Fuel.WING_VOLUME_GEOMETRIC_MAX)

self.declare_partials(
"nonfolded_taper_ratio",
Expand Down

0 comments on commit 159b81c

Please sign in to comment.