9a5260a9f48c3d4846910d6878282d083dd31b82,tutorials/tut_mission_Cessna_172_ic.py,,define_mission,#Any#,124

Before Change


    mission.tag = "Cessna 172 Test Mission"
    
    // initial mass
    mission.m0 = vehicle.Mass_Props.linked_copy("m_full") // linked copy updates if parent changes
    
    // atmospheric model
    atmosphere = SUAVE.Attributes.Atmospheres.Earth.US_Standard_1976()

After Change


    segment.atmosphere     = atmosphere
    segment.planet         = planet    
    
    segment.altitude_start = 0.0  * Units.km
    segment.altitude_end   = 10.0 * Units.km
    
    segment.mach_number    = 0.15
    segment.climb_angle    = 15.0 * Units.degrees

    // add to mission
    mission.append_segment(segment)


    // ------------------------------------------------------------------
    //   Cruise Segment: constant speed, constant altitude
    // ------------------------------------------------------------------
    
    segment = SUAVE.Attributes.Missions.Segments.Cruise.Constant_Speed_Constant_Altitude()
    segment.tag = "Cruise"
    
    // connect vehicle configuration
    segment.config = vehicle.Configs.cruise
    
    // segment attributes
    segment.atmosphere = atmosphere
    segment.planet     = planet        
    
    //segment.altitude   = 10.0   * Units.km     // Optional
    segment.air_speed  = 62.0   * Units["m/s"]
    segment.distance   = 1000.0 * Units.km
    
    // add to mission
    mission.append_segment(segment)


    // ------------------------------------------------------------------
    //   Descent Segment: consant speed, constant descent rate
    // ------------------------------------------------------------------
    
    segment = SUAVE.Attributes.Missions.Segments.Descent.Constant_Speed_Constant_Rate()
    segment.tag = "Descent"
    
    // connect vehicle configuration
    segment.config = vehicle.Configs.cruise
    
    // segment attributes
    segment.atmosphere = atmosphere
    segment.planet     = planet   
    
    segment.altitude_end = 0.0  * Units.km
    segment.air_speed    = 45.0 * Units["m/s"]
    segment.descent_rate = 5.0  * Units["m/s"]
    
    // add to mission
    mission.append_segment(segment)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 36

Instances


Project Name: suavecode/SUAVE
Commit Name: 9a5260a9f48c3d4846910d6878282d083dd31b82
Time: 2014-04-29
Author: aerialhedgehog@gmail.com
File Name: tutorials/tut_mission_Cessna_172_ic.py
Class Name:
Method Name: define_mission


Project Name: suavecode/SUAVE
Commit Name: 9a5260a9f48c3d4846910d6878282d083dd31b82
Time: 2014-04-29
Author: aerialhedgehog@gmail.com
File Name: tutorials/tut_mission_Cessna_172_ic.py
Class Name:
Method Name: define_mission


Project Name: suavecode/SUAVE
Commit Name: 9a5260a9f48c3d4846910d6878282d083dd31b82
Time: 2014-04-29
Author: aerialhedgehog@gmail.com
File Name: tutorials/tut_mission_Cessna_172_bat.py
Class Name:
Method Name: define_mission


Project Name: suavecode/SUAVE
Commit Name: 9a5260a9f48c3d4846910d6878282d083dd31b82
Time: 2014-04-29
Author: aerialhedgehog@gmail.com
File Name: tutorials/tut_mission_Cessna_172_fc.py
Class Name:
Method Name: define_mission