You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: