Update app.py
Browse files
app.py
CHANGED
|
@@ -8,14 +8,15 @@ st.write("""
|
|
| 8 |
|
| 9 |
|
| 10 |
# Fluid properties
|
| 11 |
-
mu = st.number_input("Viscosity [Pa*s]",
|
| 12 |
-
|
|
|
|
| 13 |
nu = mu/rho # Dynamic viscosity [m^2/s]
|
| 14 |
|
| 15 |
# Flow properties
|
| 16 |
-
D = st.number_input("Characteristic Length [m]"
|
| 17 |
-
u_inf = st.number_input("Freestream velocity [m/s]"
|
| 18 |
-
y_plus = st.number_input("Y+ [-]"
|
| 19 |
|
| 20 |
Re = rho*u_inf*D/mu # Reynold's number
|
| 21 |
C_f = .0576*Re**(-.2) # Skin friction coefficient
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
# Fluid properties
|
| 11 |
+
mu = st.number_input("Viscosity [Pa*s]", step=1e-6,
|
| 12 |
+
format="%.5f") # 1.83e-5 # Viscosity [Pa*s]
|
| 13 |
+
rho = st.number_input("Density [kg/m^3]") # 1.196 # Density [kg/m^3]
|
| 14 |
nu = mu/rho # Dynamic viscosity [m^2/s]
|
| 15 |
|
| 16 |
# Flow properties
|
| 17 |
+
D = st.number_input("Characteristic Length [m]") # Characteristic Length [m]
|
| 18 |
+
u_inf = st.number_input("Freestream velocity [m/s]") # Freestream velocity [m/s]
|
| 19 |
+
y_plus = st.number_input("Y+ [-]") # Y+ [-]
|
| 20 |
|
| 21 |
Re = rho*u_inf*D/mu # Reynold's number
|
| 22 |
C_f = .0576*Re**(-.2) # Skin friction coefficient
|