In my YouTube video called “Source/Vortex Panel Method: Airfoil“, we combined the source panel method and vortex panel method into a single code. Each panel has an associated source strength and vortex strength. The source strength is constant on each panel, but can vary from panel to panel. The vortex strength is constant on each panel, and is the same for every panel. The derivation of the equations that we implemented in this code can be found in my derivation YouTube video.
Below are the files needed to run the code. You will need all of these in the same directory. You will also need the “xfoil.exe” program in this directory (download it here). If you want to be able to load airfoils, you’ll also need a directory called “Airfoil_DAT_Selig” in this directory, which includes all the “.dat” files that can be downloaded from the UIUC airfoil database. The main file that you will run is called SPVP_Airfoil. All these files can also be found on my GitHub site.
To run this program without errors, you need to also download COMPUTE_IJ_SPM.m, COMPUTE_KL_VPM.m, STREAMLINE_SPM.m, STREAMLINE_VPM.m, XFOIL.m, and COMPUTE_CIRCULATION.m files. All files must be placed in the same directory/folder. You will also need the “xfoil.exe” program and a directory called “Airfoil_DAT_Selig” that includes all the airfoil .dat files.
To run this program without errors, you need to also download COMPUTE_IJ_SPM.py, COMPUTE_KL_VPM.py, STREAMLINE_SPM.py, STREAMLINE_VPM.py, XFOIL.py, and COMPUTE_CIRCULATION.py files. All files must be placed in the same directory/folder. You will also need the “xfoil.exe” program and a directory called “Airfoil_DAT_Selig” that includes all the airfoil .dat files.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.
Note: I can’t upload “.py” files, so this is a “.txt” file. Just download it and change the extension to “.py”, and it should work fine.