Answer using Matlab please!
6. problem (2D potential incompressible flow) requiring a short program written in MATLAB or Julia or C++ or any other language of your choice. NOTE that as a student in MAE 150A you should have access to MATLAB and other software on the SEASNET lab computers As a representation of a more "realistic" potential flowfield, consider superposition of a uni form flow of velocity U with a series of 8 doublets of varying strengths. This type of superposition should produce potential flow over a somewhat plump "airfoil without circ- lation. Let the strengths of the doublets be given as , 2,..A8, for doublets located along the x-axis at x/L = di = -1.5,-1.0,-0.5, 0.0, 0.7, 1.3, 1.7, and 2.0, respectively. Here, L is some reference length, and i = 1, 2, 8. The stream! function for this flowfield is then We can non-dimensionalize this expression using the variables and V T, z/L, Y y/L, so that equation (1) becomes A,Y Let the values of the A, that correspond to di be the following: 6 7 d1.5 1.0 0.5 0.0 0.73 2.0 0.10 0.20 0.20 0.20 0.14 0.05 0.03 0.01 (a) Roughly sketch the flow situation described above in the X - Y plane (b) Calulate the streamlines of the flow given by values of the non-dimensional stream function 2,-1, 0, 1, and 2 by writing a computer program in MATLAB, C++, or any other language of your choosing. You can use a contour plotting routine within the program, which is pretty straightforward, or you can even use a spreadsheet program in which you determine the X and Y values that satisfy the specific values according to equation (2). Submit a plot of the streamlines, a listing of your program or spreadsheet and a description of what is going on in your program (sufficient comment statements within your program are acceptable, or just write them by hand onto the printout). If you have time, modify the doublet strengths above to create a more contoured (thin) airfoil shape. 6. problem (2D potential incompressible flow) requiring a short program written in MATLAB or Julia or C++ or any other language of your choice. NOTE that as a student in MAE 150A you should have access to MATLAB and other software on the SEASNET lab computers As a representation of a more "realistic" potential flowfield, consider superposition of a uni form flow of velocity U with a series of 8 doublets of varying strengths. This type of superposition should produce potential flow over a somewhat plump "airfoil without circ- lation. Let the strengths of the doublets be given as , 2,..A8, for doublets located along the x-axis at x/L = di = -1.5,-1.0,-0.5, 0.0, 0.7, 1.3, 1.7, and 2.0, respectively. Here, L is some reference length, and i = 1, 2, 8. The stream! function for this flowfield is then We can non-dimensionalize this expression using the variables and V T, z/L, Y y/L, so that equation (1) becomes A,Y Let the values of the A, that correspond to di be the following: 6 7 d1.5 1.0 0.5 0.0 0.73 2.0 0.10 0.20 0.20 0.20 0.14 0.05 0.03 0.01 (a) Roughly sketch the flow situation described above in the X - Y plane (b) Calulate the streamlines of the flow given by values of the non-dimensional stream function 2,-1, 0, 1, and 2 by writing a computer program in MATLAB, C++, or any other language of your choosing. You can use a contour plotting routine within the program, which is pretty straightforward, or you can even use a spreadsheet program in which you determine the X and Y values that satisfy the specific values according to equation (2). Submit a plot of the streamlines, a listing of your program or spreadsheet and a description of what is going on in your program (sufficient comment statements within your program are acceptable, or just write them by hand onto the printout). If you have time, modify the doublet strengths above to create a more contoured (thin) airfoil shape