Skip to content

Commit 657deaf

Browse files
authored
Update SpecNec_executable_streamlit.py
1 parent 8940813 commit 657deaf

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fun_SPEC_NEC/SpecNec_executable_streamlit.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@
184184
Tie = Tie[:, 0]
185185
Sae = Sae[:, 0]
186186
Sai = Sai[:, 0]
187+
188+
# Valores de SDS & SD1
189+
Sds = n * z * fads[0] * I
190+
Sd1 = I * n * z * fads[0] * (Tc / 1) ** r
187191

188192

189193
fig1, ax1 = plt.subplots(figsize=(16/1.5, 9/1.5))
@@ -194,7 +198,7 @@
194198
markeredgewidth=0, linewidth=1.5, alpha=1.0,linestyle = '-',label= f'Sa_inelastic')
195199
ax1.set_xlim([Tie[0], (max(Tie))])
196200
ax1.set_ylim([0, (max(Sae)*1.05)])
197-
plt.title('UHS [NEC-SE-DS-2024]', fontsize=10, color=(0, 0, 1))
201+
plt.title('SPEC NEC-SE-DS-2024', fontsize=10, color=(0, 0, 1))
198202
plt.xlabel('Period (T) [s]', rotation=0, fontsize=10, color=(0, 0, 0))
199203
plt.ylabel('Max Response Acceleration (Sa) [g]', rotation=90, fontsize=10, color=(0, 0, 0))
200204
legend = plt.legend(fontsize=10)
@@ -210,8 +214,10 @@
210214

211215
o1, o2 = st.columns([1,1])
212216
with o1:
213-
st.metric(label='Max Sae', value=np.max(Sae), delta='g')
214-
st.metric(label='Max Sai', value=np.max(Sai), delta='g')
217+
st.metric(label='Max Sae', value = np.max(Sae), delta='g')
218+
st.metric(label='Max Sai', value = np.max(Sai), delta='g')
219+
st.metric(label='Sds', value = Sds, delta='g')
220+
st.metric(label='Sd1', value = Sd1, delta='g')
215221
with o2:
216222
st.write(Resul)
217223

0 commit comments

Comments
 (0)