Giter Site home page Giter Site logo

tutorials's People

Contributors

aerialhedgehog avatar jmvegh avatar mclarke2 avatar planes avatar rachealerhard avatar tarikorra avatar timdmacdo avatar wallymaier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tutorials's Issues

problem with OpenVSP compgeom file format

Hi all,
First, thank you for this powerful tool and the tutorials.

I am trying to lauch the BWB_CFD tutorial and SUAVE returns an error (installed : VSP 3.11.0).
I am under the impression that in get_vsp_areas (Input_Output/OpenVSP/get_vsp_areas.py) the reading of the file Unnamed_CompGeom.csv crashes. The file format may have changed. Here is the contents of the file :

Name, Theo_Area, Wet_Area, Theo_Vol, Wet_Vol
main_wing0,3124.876446,3124.876446,3801.754585,3801.754585
Totals,3124.876446,3124.876446,3801.754585,3801.754585

Tag_Name, Tag_Theo_Area, Tag_Wet_Area
main_wing0,1562.438223,1562.438223
main_wing1,1562.438223,1562.438223

The subsurfs calculations added (I don't know how to disable this calculation from the python code)

I changed the reading of the file (stop when only one element in split string = '\n') : I supposed that the area is one calculated in the first section and not subsurfs.

With this modification, the result I obtained :

# AoA Mach CL CD
0.00000000 0.30000000 0.00249014 0.00112912
0.00000000 0.50000000 0.00286961 0.00149279
0.00000000 0.70000000 0.00377595 0.00250259
0.00000000 0.85000000 0.00695390 0.00971161
0.05235988 0.30000000 0.20416800 0.00426807
0.05235988 0.50000000 0.21541200 0.00524543
0.05235988 0.70000000 0.24162500 0.00819756
0.05235988 0.85000000 0.29267600 0.02799510
0.10471976 0.30000000 0.40301700 0.01387190
0.10471976 0.50000000 0.42178900 0.01712480
0.10471976 0.70000000 0.45752300 0.02798540
0.10471976 0.85000000 0.50738500 0.06668510

is different from the one provided :

0.00000000 0.30000000 0.00357426 0.00198925
0.00000000 0.50000000 0.00385438 0.00262971
0.00000000 0.70000000 0.00471753 0.00444076
0.00000000 0.85000000 0.00856885 0.01859320
0.05235988 0.30000000 0.20620500 0.00821743
0.05235988 0.50000000 0.21761550 0.01013710
0.05235988 0.70000000 0.24444750 0.01578280
0.05235988 0.85000000 0.29654400 0.05575920
0.10471976 0.30000000 0.40600150 0.02727500
0.10471976 0.50000000 0.42532150 0.03379330
0.10471976 0.70000000 0.46278650 0.05568500
0.10471976 0.85000000 0.51038000 0.13394200

Can you confirm the provided data with the new OpenVSP application ?

Ask a question about running the program

when running "tut_mission_B737_AVL.py",Spyder reported this error :
"
File "C:\Users\01376028\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 942, in _get_handles
errwrite = msvcrt.get_osfhandle(stderr.fileno())

UnsupportedOperation: fileno
"
I don't know if I am not doing the right thing or what kind of problem, please help me.
thanks~๏ผ

AttributeError: 'Config' object has no attribute 'propulsors'

I downloaded and installed SUAVE follow the Developer instructions at https://suave.stanford.edu/download/standard_install.html and downloaded the tutorial
from Github at https://github.com/suavecode/SUAVE. and the SUAVE tutorials from https://github.com/suavecode/Tutorials. When I run either the tut_mission_B737.py or tut_solar_uav.py tutorial examples using Anaconda Spyder from the tutoral folder, I get The following Error:

runfile('E:/Users/Bob/Downloads/Suave/Tutorials-2.4.0/tut_mission_B737.py', wdir='E:/Users/Bob/Downloads/Suave/Tutorials-2.4.0')
Traceback (most recent call last):

File "E:\Users\Bob\anaconda3\lib\site-packages\suave-2.4.0-py3.8.egg\SUAVE\Core\Data.py", line 61, in getattribute
return dictgetitem(self,k)

KeyError: 'propulsors'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "E:\Users\Bob\Downloads\Suave\Tutorials-2.4.0\tut_mission_B737.py", line 947, in
main()

File "E:\Users\Bob\Downloads\Suave\Tutorials-2.4.0\tut_mission_B737.py", line 48, in main
configs, analyses = full_setup()

File "E:\Users\Bob\Downloads\Suave\Tutorials-2.4.0\tut_mission_B737.py", line 83, in full_setup
configs_analyses = analyses_setup(configs)

File "E:\Users\Bob\Downloads\Suave\Tutorials-2.4.0\tut_mission_B737.py", line 108, in analyses_setup
analysis = base_analysis(config)

File "E:\Users\Bob\Downloads\Suave\Tutorials-2.4.0\tut_mission_B737.py", line 143, in base_analysis
energy.network = vehicle.propulsors

File "E:\Users\Bob\anaconda3\lib\site-packages\suave-2.4.0-py3.8.egg\SUAVE\Core\Data.py", line 63, in getattribute
return objgetattrib(self,k)

AttributeError: 'Config' object has no attribute 'propulsors'

The tut_mission_B737.py code seems to setup a turbofan at line 402, but I can find nowhere in the example or in the SUAVE base code where this is assigned to 'propulsors.

I am a relatively new python user, but the SUAVE egg seems to be properly loaded in to my E:\Users\Bob\anaconda3\Lib\site-packages folder SUAVE-2.4.0-py3.8.egg.

Mission Plots Module Import Error

Importing "Mission_Plots" module in tut_mission_B737.py should be found nested under Plots.Performance.Mission_Plots line 31

from SUAVE.Plots.Performance.Mission_Plots import *

instead of

from SUAVE.Plots.Mission_Plots import *

Small mistakes in Solar UAV Optimization tutorial

I've noticed several small mistakes in the code for the solar UAV optimization tutorial:

Optimize.py, line 53: I guess wing_area should be Units.meter**2 and not Units.meter, right? (just like for the regional jet optimization tutorial)

Procedure.py, line 69: Change the dynamic pressure based on the, add a factor of safety Not quite sure what word is missing there.

If I find more I'll add them here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.