This preview shows page 1. Sign up to view the full content.
Unformatted text preview: if (fid4 < 0) error('could not open file "hw11_p01_answer.txt"'); end; e v_prime(i) = (-8.0*v(i) + 9.0*v(i+1) - v(i+2))/(6.0*h); fprintf(fid4, 'At y = %10.5f, dv/dy = %10.5f\n', y(i), v_prime(i)); shear_stress(i) = viscosity*v_prime(i); fprintf(fid4, 'At y = %10.5f, shear stress = %10.5f\n', y(i), shear_stress(i)); f fclose(fid4);...
View Full Document
This note was uploaded on 02/22/2010 for the course CHE 348 taught by Professor Chelikowsky during the Spring '08 term at University of Texas at Austin.
- Spring '08