Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialhedgehog committed Jun 24, 2015
2 parents 6862295 + bb8a7f2 commit e896d27
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Binary file modified doc/uml/suave code example/class_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/uml/suave code example/class_diagram.xmind
Binary file not shown.
Binary file modified doc/uml/suave code example/code example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions doc/uml/suave code example/code_example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Build a Wing
main_wing = Components.Wings.Wing(
tag = 'main_wing',
ref_area = 1344.0 , #[sq-ft]
aspect_ratio = 10.19 , #[-]
ref_area = 1344.0 * Units['sq-ft'],
aspect_ratio = 10.19,
# <...>
)

Expand All @@ -16,15 +16,16 @@
config.Wings.Main_Wing.flaps = 'down'

# Plan a Segment
climb = Missions.Segments.ClimbDescent(
climb = Segments.Climb.Constant_Speed_Constant_Rate(
tag = 'Climb',
altitude = [0.0, 3.0], # [km]
config = climb_config,
altitude_start = 0.0 * Units.km,
altitude_end = 5.2 * Units.km,
analyses = climb_analyses
#<...>
)

# Create a Mission
mission = Missions.Mission()
mission = Analyses.Missions.Mission()
mission.add_segment(climb)
# <...>

Expand Down
Binary file modified doc/uml/suave code example/code_example.xmind
Binary file not shown.
3 changes: 3 additions & 0 deletions trunk/SUAVE/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@

# the vehicle class
from Vehicle import Vehicle

from warnings import simplefilter
simplefilter('ignore')

0 comments on commit e896d27

Please sign in to comment.