Skip to content

Commit

Permalink
Update streamlit_app.py
Browse files Browse the repository at this point in the history
Adding natural gas
  • Loading branch information
andr1976 authored Oct 27, 2023
1 parent d9ea54f commit 5907180
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def read_input():
back_pressure = st.text_input('Fill/back pres. (bar):', 240)
back_pressure= float(back_pressure)*1e5

fluid = st.selectbox('Select fluid', ('H2', 'He', 'N2', 'air', 'CH4', 'O2'))

#fluid = st.selectbox('Select fluid', ('H2', 'He', 'N2', 'air', 'CH4', 'O2'))
fluid = st.selectbox('Select fluid', ('H2', 'NG', 'He', 'N2', 'air', 'CH4','O2'))
if fluid == 'NG':
fluid = "Methane[0.89571]&Ethane[5.6739e-02]&Propane[2.30395e-02]&Butane[1.03E-02]&Pentane[2.67E-03]&CO2[0.84e-02]&N2[0.3080e-2]"
mode = st.selectbox('Select mode', ('filling', 'discharge'))

temp = st.text_input('Initial temp. (C):', 25)
Expand Down

0 comments on commit 5907180

Please sign in to comment.