Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % fprintf('\n*********Problem 1********')
- Name = input('What is your name?', 's')
- p = input('Input the value for fluid density', 's')
- m = input('Input the value for dynamic viscosity', 's')
- V = input('Input the value for fluid velocity', 's')
- D = input('Input the value for characteristic length', 's')
- Re = ((p)*(V)*(D)/(m))
- fprintf('Your name is: %s ', Name)
- fprintf('Density is: %3.1e kg/m^3 \n',p)
- fprintf('Viscosity is: %3.1e Pa*s \n',m)
- fprintf('Velocity is: %3.1e m/s \n',V)
- fprintf('Characteristic Length is: %3.1e m \n',D)
- fprintf('The Reynolds number for this fluid flow is Re=%3.1f', Re)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement