Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. % fprintf('\n*********Problem 1********')
  2. Name = input('What is your name?', 's')
  3. p = input('Input the value for fluid density', 's')
  4. m = input('Input the value for dynamic viscosity', 's')
  5. V = input('Input the value for fluid velocity', 's')
  6. D = input('Input the value for characteristic length', 's')
  7.  
  8. Re = ((p)*(V)*(D)/(m))
  9.  
  10. fprintf('Your name is: %s ', Name)
  11. fprintf('Density is: %3.1e kg/m^3 \n',p)
  12. fprintf('Viscosity is: %3.1e Pa*s \n',m)
  13. fprintf('Velocity is: %3.1e m/s \n',V)
  14. fprintf('Characteristic Length is: %3.1e m \n',D)
  15. fprintf('The Reynolds number for this fluid flow is Re=%3.1f', Re)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement