Git Product home page Git Product logo

mikekiely / wufoil Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 0.0 6.04 MB

An all in one airfoil modelling, meshing, analysis, and optimization tool with built in support for gmsh, SU2, and xfoil

License: GNU General Public License v3.0

Python 100.00%
aerodynamics aerospace aerospace-engineering airfoil airfoil-analysis airfoil-generation airfoil-optimization airfoil-simulation airfoils optimization

wufoil's Issues

WuFOIL error

I am a newbie for using wufoil and while executing the code snippets in the website I got this error message

File d:\aero_auto\cfd_hkn\geogen2_7\hkn_geo\wufoil-master\wufoil-master\untitled3.py:9
af = wf.airfoil('rae2822', chord_lenght=1, name='rae2822')

TypeError: 'module' object is not callable

Code used is copy pasted from site

import wuFoil as wf
af = wf.Airfoil('rae2822.dat', chord_length=1, name='airfoil')
af.plot_airfoil(show_plot=False) # don't show the plot yet. linestyles are set based on typical matplotlib syntax
af.interpolate_airfoil(n_points=100) # note that n_points sets the number of points on both the bottom and top surfaces
af.plot_airfoil(show_plot=True)
af.set_tc_camber()

print(f'Maximum Camber {af.max_camber} at location x/c = {af.x_mc}')
print(f'Maximum Thickness {af.max_thickness} at location x/c = {af.x_tc}')
af = wf.airfoil('rae2822')
af.set_flight_conditons(35000, .78, input_units='ft') # must be run before setting the y+ value
af.mesh_parameters.downstream_distance = 15
af.mesh_parameters.n_airfoil = 125
af.set_desired_yplus(1)
af.generate_mesh()

Thanks in advance
Narahari Hunsur

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.