|
1 |
| -from aerosandbox.common import ExplicitAnalysis |
2 |
| -import aerosandbox.numpy as np |
3 | 1 | import subprocess
|
4 |
| -from pathlib import Path |
5 |
| -from aerosandbox.geometry import Airplane, Wing, WingXSec, Fuselage, ControlSurface |
6 |
| -from aerosandbox.performance import OperatingPoint |
7 |
| -from typing import Union, List, Dict |
8 | 2 | import tempfile
|
9 | 3 | import warnings
|
| 4 | +from pathlib import Path |
| 5 | +from typing import Dict, List, Union |
| 6 | + |
| 7 | +import aerosandbox.numpy as np |
| 8 | +from aerosandbox.common import ExplicitAnalysis |
| 9 | +from aerosandbox.geometry import Airplane, ControlSurface, Fuselage, Wing, WingXSec |
| 10 | +from aerosandbox.performance import OperatingPoint |
10 | 11 |
|
11 | 12 |
|
12 | 13 | class AVL(ExplicitAnalysis):
|
@@ -341,7 +342,6 @@ def run(
|
341 | 342 | return res
|
342 | 343 |
|
343 | 344 | def _default_keystroke_file_contents(self) -> List[str]:
|
344 |
| - |
345 | 345 | run_file_contents = []
|
346 | 346 |
|
347 | 347 | # Disable graphics
|
@@ -441,7 +441,6 @@ def clean(s):
|
441 | 441 | airfoil_counter = 0
|
442 | 442 |
|
443 | 443 | for wing in airplane.wings:
|
444 |
| - |
445 | 444 | wing_options = self.get_options(wing)
|
446 | 445 |
|
447 | 446 | spacing_line = f"{wing_options['chordwise_resolution']} {self.AVL_spacing_parameters[wing_options['chordwise_spacing']]}"
|
@@ -533,7 +532,6 @@ def clean(s):
|
533 | 532 |
|
534 | 533 | ### Write the commands for each wing section
|
535 | 534 | for i, xsec in enumerate(wing.xsecs):
|
536 |
| - |
537 | 535 | xsec_options = self.get_options(xsec)
|
538 | 536 |
|
539 | 537 | xsec_def_line = f"{xsec.xyz_le[0]:.8g} {xsec.xyz_le[1]:.8g} {xsec.xyz_le[2]:.8g} {xsec.chord:.8g} {xsec.twist:.8g}"
|
@@ -743,7 +741,6 @@ def parse_unformatted_data_output(
|
743 | 741 | index = s.find(data_identifier)
|
744 | 742 |
|
745 | 743 | while index != -1: # While there are still data identifiers:
|
746 |
| - |
747 | 744 | key = "" # start with a blank key, which we will build up as we read
|
748 | 745 |
|
749 | 746 | i = index - 1 # Starting from the left of the identifier
|
@@ -804,10 +801,8 @@ def parse_unformatted_data_output(
|
804 | 801 |
|
805 | 802 |
|
806 | 803 | if __name__ == "__main__":
|
807 |
| - |
808 | 804 | ### Import Vanilla Airplane
|
809 | 805 | import aerosandbox as asb
|
810 |
| - |
811 | 806 | from aerosandbox.aerodynamics.aero_3D.test_aero_3D.geometries.vanilla import (
|
812 | 807 | airplane as vanilla,
|
813 | 808 | )
|
|
0 commit comments