Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WuFOIL error #3

Open
Nhunsur opened this issue Jul 27, 2024 · 0 comments
Open

WuFOIL error #3

Nhunsur opened this issue Jul 27, 2024 · 0 comments

Comments

@Nhunsur
Copy link

Nhunsur commented Jul 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant