igorgavi commited on
Commit
1798914
·
verified ·
1 Parent(s): f82e8a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -8,19 +8,21 @@ st.write("""
8
 
9
 
10
  # Fluid properties
11
- mu = st.number_input("Viscosity [Pa*s]") # 1.83e-5 # Viscosity [Pa*s]
12
- rho = st.number_input("Density [kg/m^3]") # 1.196 # Density [kg/m^3]
13
  nu = mu/rho # Dynamic viscosity [m^2/s]
14
 
15
  # Flow properties
16
- D = 4.9 # Characteristic Length [m]
17
- u_inf = 1. # Frestream velocity [m/s]
18
- y_plus = 55. # Y+ [-]
19
 
20
  Re = rho*u_inf*D/mu # Reynold's number
21
  C_f = .0576*Re**(-.2) # Skin friction coefficient
22
 
23
- print(f'Reynolds = {Re:.0f}')
 
 
24
 
25
  tau_om = .5*C_f*rho*u_inf**2
26
 
 
8
 
9
 
10
  # Fluid properties
11
+ mu = st.number_input("Viscosity [Pa*s]", format='.7f') # 1.83e-5 # Viscosity [Pa*s]
12
+ rho = st.number_input("Density [kg/m^3]", format='.7f') # 1.196 # Density [kg/m^3]
13
  nu = mu/rho # Dynamic viscosity [m^2/s]
14
 
15
  # Flow properties
16
+ D = st.number_input("Characteristic Length [m]", format='.3f') # Characteristic Length [m]
17
+ u_inf = st.number_input("Freestream velocity [m/s]", format='.2f') # Freestream velocity [m/s]
18
+ y_plus = st.number_input("Y+ [-]", format='.1f') # Y+ [-]
19
 
20
  Re = rho*u_inf*D/mu # Reynold's number
21
  C_f = .0576*Re**(-.2) # Skin friction coefficient
22
 
23
+ st.write("""
24
+ ## f'Reynolds = {Re:.0f}'
25
+ """)
26
 
27
  tau_om = .5*C_f*rho*u_inf**2
28