Commit
•
09a1072
1
Parent(s):
a946e3f
Updated line 176 with: cs_area = st.number_input('Cross-Sectional Area',min_value=1.0e-4, max_value=10.0e-4, value=9.0e-4) | Updated line 184 with: mu_r = st.number_input('Relative Permeability', min_value=1000.0, max_value=1000.0, value=1000.0) | Updated line 188 with: simulation_time = st.number_input('Simulation Time', min_value=0.125, max_value=0.625,value=0.125)
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ def main():
|
|
173 |
|
174 |
# Input parameters
|
175 |
no_of_turns = st.number_input('Number of Turns',min_value=125, max_value=777, value=500)
|
176 |
-
cs_area = st.number_input('Cross-Sectional Area', value=9.0e-4)
|
177 |
lengths = {
|
178 |
'a': st.number_input('Length a', min_value=1.0e-2, max_value=25.0e-2, value=5.0e-2),
|
179 |
'b': st.number_input('Length b', min_value=1.125e-2, max_value=28.8e-2,value=4.5e-2),
|
@@ -181,11 +181,11 @@ def main():
|
|
181 |
'w': st.number_input('Length w', min_value=0.625e-2, max_value=100e-2,value=3.0e-2)
|
182 |
}
|
183 |
length_lg_2 = st.number_input('Length lg_2', value=0.1e-3)
|
184 |
-
mu_r = st.number_input('Relative Permeability', value=1000.0)
|
185 |
r = st.number_input('Resistance', min_value=0.01, max_value=0.99, value=0.01)
|
186 |
series_res = st.number_input('Series Resistance',min_value=2, max_value=22, value=10)
|
187 |
vmeas = st.number_input('Voltage Measurement', min_value=5, max_value=100,value=100)
|
188 |
-
simulation_time = st.number_input('Simulation Time', min_value=0.
|
189 |
|
190 |
if st.button('Run Simulation'):
|
191 |
model = MultiLimbCoreModel(no_of_turns, cs_area, lengths, length_lg_2, mu_r, r, series_res)
|
|
|
173 |
|
174 |
# Input parameters
|
175 |
no_of_turns = st.number_input('Number of Turns',min_value=125, max_value=777, value=500)
|
176 |
+
cs_area = st.number_input('Cross-Sectional Area',min_value=1.0e-4, max_value=10.0e-4, value=9.0e-4)
|
177 |
lengths = {
|
178 |
'a': st.number_input('Length a', min_value=1.0e-2, max_value=25.0e-2, value=5.0e-2),
|
179 |
'b': st.number_input('Length b', min_value=1.125e-2, max_value=28.8e-2,value=4.5e-2),
|
|
|
181 |
'w': st.number_input('Length w', min_value=0.625e-2, max_value=100e-2,value=3.0e-2)
|
182 |
}
|
183 |
length_lg_2 = st.number_input('Length lg_2', value=0.1e-3)
|
184 |
+
mu_r = st.number_input('Relative Permeability', min_value=1000.0, max_value=1000.0, value=1000.0)
|
185 |
r = st.number_input('Resistance', min_value=0.01, max_value=0.99, value=0.01)
|
186 |
series_res = st.number_input('Series Resistance',min_value=2, max_value=22, value=10)
|
187 |
vmeas = st.number_input('Voltage Measurement', min_value=5, max_value=100,value=100)
|
188 |
+
simulation_time = st.number_input('Simulation Time', min_value=0.125, max_value=0.625,value=0.125)
|
189 |
|
190 |
if st.button('Run Simulation'):
|
191 |
model = MultiLimbCoreModel(no_of_turns, cs_area, lengths, length_lg_2, mu_r, r, series_res)
|