Spaces:
Sleeping
Sleeping
Commit ·
f28ed2d
1
Parent(s): 7165e5c
Update app.py
Browse files
app.py
CHANGED
|
@@ -440,12 +440,21 @@ def main():
|
|
| 440 |
|
| 441 |
# User Inputs
|
| 442 |
Case_number = st.number_input("Case Number", value=3, min_value=1, step=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 443 |
B = 2.0 #st.number_input("Width of Wall [ft]", value=2.0, min_value=0.0)
|
| 444 |
Bottom_of_Wall = st.number_input("Bottom of Wall [ft]", value=-11.92)
|
| 445 |
Still_Water_Level = st.number_input("Stillwater Level [ft]", value=0.0)
|
| 446 |
Top_of_Wall_Height = st.number_input("Top of Wall Height [ft]", value=7.27)
|
| 447 |
-
Hs = st.number_input("Hs [ft]", value=4.5)
|
| 448 |
-
T = st.number_input("T [s]", value=7.0)
|
| 449 |
beta = st.number_input("Beta [deg]", value=0.0)
|
| 450 |
rho = 2 #st.number_input("Rho", value=2.0)
|
| 451 |
|
|
@@ -461,12 +470,7 @@ def main():
|
|
| 461 |
slope_foreshore = [1,100] #slope of the foreshore [rad]
|
| 462 |
lambda_=[1,1,1]
|
| 463 |
|
| 464 |
-
|
| 465 |
-
dispersion_result = dispersion(T=T, h=h)
|
| 466 |
-
st.write("Suction Load Parameters:")
|
| 467 |
-
st.write("Wavelength:", dispersion_result)
|
| 468 |
-
st.write("Wave Steepness:", Hs/dispersion_result)
|
| 469 |
-
st.write("h/L:", h/dispersion_result)
|
| 470 |
|
| 471 |
if st.button("Run Goda"):
|
| 472 |
goda_result = goda(Case=Case_number, Hs=Hs, Hmax=Hmax, h=h, d=d, h_acc=h_acc, hc=hc, T=T,
|
|
|
|
| 440 |
|
| 441 |
# User Inputs
|
| 442 |
Case_number = st.number_input("Case Number", value=3, min_value=1, step=1)
|
| 443 |
+
Hs = st.number_input("Wave Height, Hs [ft]", value=4.5)
|
| 444 |
+
T = st.number_input("Period, T [s]", value=7.0)
|
| 445 |
+
h = st.number_input("Depth, h [ft]", value=11.0)
|
| 446 |
+
|
| 447 |
+
if st.button("Run Dispersion"):
|
| 448 |
+
dispersion_result = dispersion(T=T, h=h)
|
| 449 |
+
st.write("Suction Load Parameters:")
|
| 450 |
+
st.write("Wavelength:", dispersion_result)
|
| 451 |
+
st.write("Wave Steepness:", Hs/dispersion_result)
|
| 452 |
+
st.write("h/L:", h/dispersion_result)
|
| 453 |
+
|
| 454 |
B = 2.0 #st.number_input("Width of Wall [ft]", value=2.0, min_value=0.0)
|
| 455 |
Bottom_of_Wall = st.number_input("Bottom of Wall [ft]", value=-11.92)
|
| 456 |
Still_Water_Level = st.number_input("Stillwater Level [ft]", value=0.0)
|
| 457 |
Top_of_Wall_Height = st.number_input("Top of Wall Height [ft]", value=7.27)
|
|
|
|
|
|
|
| 458 |
beta = st.number_input("Beta [deg]", value=0.0)
|
| 459 |
rho = 2 #st.number_input("Rho", value=2.0)
|
| 460 |
|
|
|
|
| 470 |
slope_foreshore = [1,100] #slope of the foreshore [rad]
|
| 471 |
lambda_=[1,1,1]
|
| 472 |
|
| 473 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
|
| 475 |
if st.button("Run Goda"):
|
| 476 |
goda_result = goda(Case=Case_number, Hs=Hs, Hmax=Hmax, h=h, d=d, h_acc=h_acc, hc=hc, T=T,
|