Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,15 @@ st.write("""
|
|
6 |
## First Layer Thickness Calculation based on y+
|
7 |
""")
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
# Fluid properties
|
11 |
-
mu = st.number_input("Viscosity [Pa*s]", step=1e-6, format="%.7f")
|
12 |
-
rho = st.number_input("Density [kg/m^3]", step=1e-6, format="%.5f")
|
13 |
nu = mu/rho # Dynamic viscosity [m^2/s]
|
|
|
14 |
|
15 |
# Flow properties
|
16 |
D = st.number_input("Characteristic Length [m]", step=1e-6, format="%.5f") # Characteristic Length [m]
|
|
|
6 |
## First Layer Thickness Calculation based on y+
|
7 |
""")
|
8 |
|
9 |
+
with st.form("my_form"):
|
10 |
+
# Fluid properties
|
11 |
+
mu = st.number_input("Viscosity [Pa*s]", step=1e-6, format="%.7f")
|
12 |
+
rho = st.number_input("Density [kg/m^3]", step=1e-6, format="%.5f")
|
13 |
+
st.form_submit_button('Submit properties')
|
14 |
+
|
15 |
|
|
|
|
|
|
|
16 |
nu = mu/rho # Dynamic viscosity [m^2/s]
|
17 |
+
|
18 |
|
19 |
# Flow properties
|
20 |
D = st.number_input("Characteristic Length [m]", step=1e-6, format="%.5f") # Characteristic Length [m]
|