|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +Title: Boeing 737-800 Using AVL |
| 4 | +date: 2018-03-14 13:25:00 |
| 5 | +categories: blog |
| 6 | +description: Setup and analyze an aircraft using Athena Vortex Lattice (AVL) |
| 7 | + |
| 8 | +permalink: /guides/Boeing_737-800_AVL.html |
| 9 | +--- |
| 10 | + |
| 11 | +<link rel="stylesheet" href="//cdn.jsdelivr.net/highlight.js/8.6/styles/default.min.css"> |
| 12 | +<script src="//cdn.jsdelivr.net/highlight.js/8.6/highlight.min.js"></script> |
| 13 | +<script>hljs.initHighlightingOnLoad();</script> |
| 14 | + |
| 15 | +## Boeing 737 Using AVL |
| 16 | + |
| 17 | +SUAVE was built upon the philosophy of creating a conceptualizing space that enables the user to have maximum design, |
| 18 | +analysis and optimization flexibility. In SUAVE, the aerodynamics and stability module is set up to permit multiple fidelity |
| 19 | +levels of analysis. The addition of Athena Vortex Lattice (AVL), a vortex lattice method (VLM) code developed by Professor |
| 20 | +Mark Drela at MIT, extends SUAVE aerodynamic and stability analysis of aircraft configurations whose geometry have prior |
| 21 | +posed difficulty in obtaining accurate results. Examples include oblique wings, joined wings, canard configurations and |
| 22 | +blended-wing-bodies (BWB). For this example we use the Boeing 737-800 used in the Boeing 737-800 Tutorial. |
| 23 | + |
| 24 | +### Downloading AVL |
| 25 | +The tutorial assumes that AVL is available on your machine and can be called using just “avl” in the command line. AVL can be downloaded [here](http://web.mit.edu/drela/Public/web/avl/) for all platforms. |
| 26 | + |
| 27 | +### Steps to simulate the aircraft's performance over a mission |
| 28 | +1. Locate the folder where you have the tutorial repository. If using the command line, cd to this directory. |
| 29 | +2. Open the tut_mission_B737_AVL.py script in your favorite editor or IDE. The script is setup to run the B737 on its design |
| 30 | +mission. Run it in your IDE. If using the command line use the command. |
| 31 | + |
| 32 | +<pre><code class="python"> python tut_mission_B737_800_AVL.py </code></pre> |
| 33 | + |
| 34 | +It is very simple to interchange analysis tools in SUAVE. AVL is no exception. To study an aircraft in SUAVE using AVL, simply change the two lines in the analysis_set up shown below form Fidelity_Zero (SUAVE’s first order approximation method) to AVL. |
| 35 | + |
| 36 | +Replace line 109 |
| 37 | +<pre><code class="python"> aerodynamics = SUAVE.Analyses.Aerodynamics.Fidelity_Zero() </code></pre> |
| 38 | +with |
| 39 | +<pre><code class="python"> aerodynamics = SUAVE.Analyses.Aerodynamics.AVL() </code></pre> |
| 40 | + |
| 41 | +SUAVE launches AVL from the command line, runs analyses and then reads in the files. This process is done automatically. All |
| 42 | +subroutines described later in this tutorial are done in the background. Since running a full stability analysis at each |
| 43 | +point in the mission can be extremely expensive, a surrogate model is built for the aerodynamic coefficients, stability |
| 44 | +derivatives, and neutral point locations by running through a set of representative angles of attack and mach numbers. |
| 45 | + |
| 46 | +3. A few plots depicting the variation of the different aircraft performance parameters over the course of the mission are shown. |
| 47 | + |
| 48 | +### Important Functions: |
| 49 | +The important functions used in this tutorial are exactly the same as the ones used in the Boeing Boeing 737-800 Analysis |
| 50 | +Tutorial. Refer to this section in this tutorial [here](http://suave.stanford.edu/guides/boeing_737-800.html). |
| 51 | +### Subroutines Unique to SUAVE-AVL |
| 52 | +*Excluding the functions **tut_mission_B737_AVL.py** script, all of the subroutine python scripts described below are located |
| 53 | +in the SUAVE/Methods/Aerodynamics/AVL repository*. |
| 54 | +#### Geometry Creation - Wing |
| 55 | +Parameters defining the aircraft geometry in the in the vehicle_setup() are translated to an AVL file format using embedded |
| 56 | +subroutines. Shown below is an example of the translation of the wing geometry from the vehicle-setup() function to AVL file |
| 57 | +format. |
| 58 | +1. Firstly, if the wing defined by segments, a data structure is created to store the geometry parameters (chord length,twist,span location) of the beginning and end of each segment. For example the 737-800 wing below will be divided into three segments - yehudi, inboard and outboard wing). |
| 59 | +2. Secondly, if control surfaces are defined either the full wing or its segments, the data structure created in step 1 is |
| 60 | +further divided into sections at instances where the control surfaces begin and end. This is shown images below. |
| 61 | + |
| 62 | +INSERT IMAGE |
| 63 | +The above steps describing wing geometry parameterization are found in **create_avl_datasturcture.py** script. Along with |
| 64 | +the creation of wing geometry, the SAUVE-AVL wrapper allows the user to refine the accuracy of the analysis by modifying the |
| 65 | +vortex spacing placed on the wings. The number of chordwise/spanwise horseshoe vertices can also be modified. This is located in the Analyses/Aerodynamics/**AVL_Inviscid.py** (for Aerodynamics) and Analyses/Stability/**AVL.py** (for Stability) scripts below. |
| 66 | +<pre><code class="python"> # Default spanwise vortex density |
| 67 | + self.settings.spanwise_vortex_density = 1.5 |
| 68 | +</code></pre> |
| 69 | + |
| 70 | +#### Geometry Creation - Fuselage |
| 71 | +Despite AVL having the capability of modelling bodies, a decision was made to model the fuselage as a wake-producing, lifting surface. The entire body is defined by a series of vertical and horizontal chords that create a cross when viewed from the front. |
| 72 | + |
| 73 | +#### Defining Flight Conditions |
| 74 | +This is done in the **translate_data.py** script which translates flight conditions parameters defined in the |
| 75 | +**mission_setup()** to an AVL data structure to be used in run cases. This script also stores AVL results into SUAVE’s |
| 76 | +results data structures. |
| 77 | +#### Writing Run Cases |
| 78 | +Uses information in the AVL run case data structure created in **translate_data.py** to write an AVL format run case to be |
| 79 | +used by the AVL executable. This is done in **write_run_cases.py** script. |
| 80 | +#### Writing Commend Instructions for AVL executable |
| 81 | +This is a sequence of commands used to load AVL files into the executable, perform aerodynamic and stability analyses, and |
| 82 | +save results. This is done in **write_input_deck.py** script. |
| 83 | +#### Reading Results |
| 84 | +Opens saved AVL result files and stores data in a data structure used to create aerodynamic and stability surrogate models. |
| 85 | +This is done in **read_results.py** script. |
| 86 | + |
| 87 | +### Results |
| 88 | +The plots shown below should be generated if the mission analysis executes correctly. The results show the aerodynamic, propulsion and mission properties of the B737-800 for the defined mission. |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
0 commit comments