Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set geom default #638

Open
wants to merge 60 commits into
base: main
Choose a base branch
from
Open

Set geom default #638

wants to merge 60 commits into from

Conversation

xjjiang
Copy link
Contributor

@xjjiang xjjiang commented Dec 30, 2024

Summary

In this PR,

  • Functions add_aviary_input/add_aviary_output set value to 0.0 if there is no metadata default value.
  • Default values are set to 0.0 in variable_meta_data.py for variables used by geometry subsystems.
  • In all components of geometry subsystem, val argument is removed from add_aviary_input/add_aviary_output calls.
    • Example: add_aviary_input(self, Aircraft.Canard.AREA)
  • Exceptions for now:
    • Aircraft.Fuselage.AVG_DIAMETER is still default to inch.
    • In Group classes, set_input_defaults() still take non-default values.

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

…raft.Canard.WETTED_AREA_SCALER to default in metadata. output Aircraft.Canard.WETTED_AREA to default in metadata.
…ft.Canard.THICKNESS_TO_CHORD, Aircraft.Fuselage.AVG_DIAMETER, Aircraft.Fuselage.LENGTH, Aircraft.HorizontalTail.AREA, Aircraft.HorizontalTail.THICKNESS_TO_CHORD, Aircraft.VerticalTail.AREA, Aircraft.VerticalTail.ASPECT_RATIO, Aircraft.VerticalTail.THICKNESS_TO_CHORD, Aircraft.Wing.AREA, Aircraft.Wing.ASPECT_RATIO, Aircraft.Wing.GLOVE_AND_BAT, Aircraft.Wing.TAPER_RATIO, Aircraft.Wing.THICKNESS_TO_CHORD, Aircraft.Canard.CHARACTERISTIC_LENGTH, Aircraft.Canard.FINENESS, Aircraft.Fuselage.CHARACTERISTIC_LENGTH, Aircraft.Fuselage.FINENESS, Aircraft.HorizontalTail.CHARACTERISTIC_LENGTH, Aircraft.HorizontalTail.FINENESS to metadata values (0.0). Set inputs Aircraft.Nacelle.AVG_DIAMETER, Aircraft.Nacelle.AVG_LENGTH to metadata values ([0.0]) with shape (num_engine_type). Set input Aircraft.HorizontalTail.ASPECT_RATIO to to metadata values (4.75) for now. Set outputs Aircraft.VerticalTail.CHARACTERISTIC_LENGTH, Aircraft.Nacelle.FINENESS to metadata values ([0.0]) with shape (num_engine_type). Set outputs Aircraft.VerticalTail.CHARACTERISTIC_LENGTH, Aircraft.Wing.CHARACTERISTIC_LENGTH, Aircraft.Wing.FINENESS to metadata values (0.0).
…rcraft.Fuselage.MAX_WIDTH to metadata value (0.0). Set outputs Aircraft.Fuselage.AVG_DIAMETER, Aircraft.Fuselage.PLANFORM_AREA to metadata value (0.0).
…, Aircraft.Nacelle.WETTED_AREA_SCALER to metadata values ([0.0]) with shape (num_engine_type). Set Aircraft.Nacelle.TOTAL_WETTED_AREA to metadata values (0.0). Set Aircraft.Nacelle.WETTED_AREA to metadata values ([0.0]) with shape (num_engine_type).
…H, Aircraft.HorizontalTail.AREA, Aircraft.HorizontalTail.ASPECT_RATIO, Aircraft.HorizontalTail.THICKNESS_TO_CHORD, Aircraft.VerticalTail.AREA, Aircraft.VerticalTail.ASPECT_RATIO, Aircraft.VerticalTail.THICKNESS_TO_CHORD, Aircraft.Wing.AREA, Aircraft.Wing.GLOVE_AND_BAT, Aircraft.Wing.SPAN, Aircraft.Wing.TAPER_RATIO, Aircraft.Wing.THICKNESS_TO_CHORD to metadata values (0.0). Keep input Aircraft.HorizontalTail.TAPER_RATIO to 0.352 for now because in gasp based empennage, 'tr' is set to 0.352.
…, Aircraft.HorizontalTail.WETTED_AREA, Aircraft.Nacelle.TOTAL_WETTED_AREA, Aircraft.VerticalTail.WETTED_AREA, Aircraft.Wing.WETTED_AREA to metadata values (0.0). Set output Aircraft.Design.TOTAL_WETTED_AREA to to metadata values (0.0).
…Wing.SPAN to metadata values (0.0). Set output Aircraft.Wing.ASPECT_RATIO to metadata values (0.0).
…s [0.35]) with shape total_num_wing_engines/2. Set input Aircraft.Wing.SPAN to metadata values (0.0) (was 128). Set input Fuselage.AVG_DIAMETER to metadata values (0.0) (was 10). Set output Aircraft.Electrical.HYBRID_CABLE_LENGTH to metadata values (0.0).
…values (0.0). Set Aircraft.Fuselage.LENGTH to metadata values (0.0) (was 129.4). Set Aircraft.Wing.AREA to metadata values (0.0) (was 1370).
…]) (was 5.8) with shape (num_engine_type). Set input Aircraft.Engine.SCALE_FACTOR to metadata values ([0.0]) with shape (num_engine_type). Set input Aircraft.Nacelle.CORE_DIAMETER_RATIO to metadata values ([0.0]) (was 1.25) with shape (num_engine_type). Set input Aircraft.Nacelle.FINENESS to metadata values ([0.0]) (was 2) with shape (num_engine_type). Set ouputs Aircraft.Nacelle.AVG_DIAMETER, Aircraft.Nacelle.AVG_LENGTH, and Aircraft.Nacelle.SURFACE_AREA with shape (num_engine_type).
…was 4.5). Set input Aircraft.Fuselage.PILOT_COMPARTMENT_LENGTH to metadata values (0.0) (was 9.5). Set output Aircraft.Fuselage.AVG_DIAMETER to default 0.0 with units='inch' for now.
…TTACHMENT_LOCATION_DIMENSIONLESS to metadata values (0.0). Set input Aircraft.Wing.FOLDED_SPAN to metadata values (0.0) (was 25). Set input add_aviary_input(self, Aircraft.Wing.FOLDED_SPAN_DIMENSIONLESS to metadata values (0.0).
…input Aircraft.Strut.AREA_RATIO to metadata values (0.0) (was .2). Set input to metadata values (0.0). Set input Aircraft.Fuselage.AVG_DIAMETER to metadata values (0.0) (was 10.0). Set outputs Aircraft.Strut.LENGTH, Aircraft.Strut.AREA, and Aircraft.Strut.CHORD to metadata values (0.0).
…000). Set input Aircraft.Wing.LOADING to metadata values (0.0) (was 128). Set input Aircraft.Wing.ASPECT_RATIO to metadata values (0.0) (was 10.13). Set input Aircraft.Wing.AREA to metadata values (0.0) (was 2). Set input Aircraft.Wing.SPAN to metadata values (0.0) (was 2). Set input Aircraft.Wing.TAPER_RATIO to metadata values (0.0) (was 0.33). Set input Aircraft.Wing.SWEEP to metadata values (0.0) (was 25). Set input Aircraft.Wing.THICKNESS_TO_CHORD_ROOT to metadata values (0.0) (was 0.11). Set input Aircraft.Fuselage.AVG_DIAMETER to metadata values (0.0) (was 10). Set input Aircraft.Wing.THICKNESS_TO_CHORD_TIP to metadata values (0.0) (was 0.1). Set input Aircraft.Fuel.WING_FUEL_FRACTION to metadata values (0.0) (was 0.6). Set input Aircraft.Fuel.WING_VOLUME_GEOMETRIC_MAX to metadata values (0.0). Set input Aircraft.Wing.FOLDED_SPAN to metadata values (0.0) (was 25). Set input Aircraft.Wing.AREA to metadata values (0.0) (was 200). Set input Aircraft.Wing.SPAN to metadata values (0.0) (was 118). Set outputs to metadata values (0.0).
@xjjiang xjjiang marked this pull request as draft December 30, 2024 22:33
xjjiang and others added 23 commits January 2, 2025 11:23
…hanged Aircraft.Fuselage.TAIL_FINENESS from 3 to default(1).
…nput_defaults(Aircraft.VerticalTail.TAPER_RATIO, 0.0)
@xjjiang xjjiang marked this pull request as ready for review January 13, 2025 17:44
@jkirk5 jkirk5 self-requested a review January 13, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants