Summary
Full Transcript
Previously, we wrote a simple MATLAB script to compute and plot the Darcy-Weisbach friction factor for a range of Reynolds number and value of the relative roughness. Here we update this script first to make use of vectors for storing values and simplifying our loop, and then ultimately we use elementwise operations to eliminate the loop. In the next two chapter we will add to this when we introduce functions. This is Exercise 4.4 from my text "Introduction to Chemical Engineering Computation with MATLAB." As a starting point, I use our script from Exercise 3.4 generated in a previous screen cast. A copy of the M-files created during the screen cast may be found below: https://drive.google.com/file/d/1rWCOERINEI30kmdoa_srTtmI-bUWfzMK/view?usp=sharing https://drive.google.com/file/d/1cPPjXCmtpWClHBJtLiI5QtLAPVbXfHiD/view?usp=sharing https://drive.google.com/file/d/11Je9m5lLIeLT2_lcwRr7NwN_MAg5EXIY/view?usp=sharing And a copy of the M-file from Exercise 3.4 may be found below: https://drive.google.com/file/d/1rETJw6t9ykthaZqkBspFIpYOU_gFdh5r/view?usp=sharing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Subscribe: https://www.youtube.com/c/AndrewPaluch?sub_confirmation=1
