Skip to content

Commit 8206d9c

Browse files
fixed model splitter
1 parent 1870e91 commit 8206d9c

File tree

2 files changed

+41
-34
lines changed

2 files changed

+41
-34
lines changed

analysis/tritium/pathsim_model.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from tritium_model import (
88
neutron_rate,
99
total_irradiation_time,
10+
k_wall,
1011
k_top,
1112
baby_model,
1213
measured_TBR,
@@ -16,18 +17,19 @@
1617
A_OV = (baby_model.A_wall.to("m^2")).magnitude
1718
A_IV = (baby_model.A_top.to("m^2")).magnitude
1819
baby_vol = (baby_model.volume.to("m^3")).magnitude
19-
IV_to_OV_ratio = 70 / 12
20-
k_IV = k_top.to("m/s").magnitude * 0.6
21-
k_OV = k_IV / (IV_to_OV_ratio)
22-
# neutron_rate = (350 / 250) * 1.3e09
20+
k_IV = k_top.to("m/s").magnitude
21+
k_OV = k_wall.to("m/s").magnitude
2322
neutron_rate = neutron_rate.to("n/s").magnitude
2423
irradiation_time = total_irradiation_time.to("s").magnitude
2524

2625

2726
tbr = measured_TBR.to("dimensionless").magnitude
2827

2928
IV_gas_residence_time = 0.01 * baby_vol / (A_IV * k_IV)
30-
OV_gas_residence_time = 3 * baby_vol / (A_OV * k_OV)
29+
OV_gas_residence_time = 2.2 * baby_vol / (A_OV * k_OV)
30+
31+
collection_efficiency = 0.95
32+
conversion_efficiency = 1
3133

3234
# Create blocks
3335
blocks, events = [], []
@@ -60,25 +62,26 @@
6062
blocks.append(soluble_vs_insoluble_1)
6163

6264
iv_bubbler_23 = pathview.custom_pathsim_blocks.Bubbler(
63-
conversion_efficiency=0.95,
64-
vial_efficiency=0.9,
65+
conversion_efficiency=conversion_efficiency,
66+
vial_efficiency=collection_efficiency,
6567
replacement_times=np.array([0.4, 0.6, 1, 1.5, 2.5, 4]) * 24 * 3600,
6668
)
6769
events_iv_bubbler_23 = iv_bubbler_23.create_reset_events()
6870
events += events_iv_bubbler_23
6971
blocks.append(iv_bubbler_23)
7072

7173
iv_vs_ov_24 = pathview.custom_pathsim_blocks.Splitter2(
72-
f1=k_IV / (k_IV + k_OV), f2=k_OV / (k_IV + k_OV)
74+
f1=A_IV * k_IV / (A_IV * k_IV + A_OV * k_OV),
75+
f2=A_OV * k_OV / (A_IV * k_IV + A_OV * k_OV),
7376
)
7477
blocks.append(iv_vs_ov_24)
7578

7679
soluble_vs_insoluble_25 = pathview.custom_pathsim_blocks.Splitter2(f1=0.01, f2=0.99)
7780
blocks.append(soluble_vs_insoluble_25)
7881

7982
ov_bubbler_26 = pathview.custom_pathsim_blocks.Bubbler(
80-
conversion_efficiency=0.95,
81-
vial_efficiency=0.9,
83+
conversion_efficiency=conversion_efficiency,
84+
vial_efficiency=collection_efficiency,
8285
replacement_times=np.array([1, 2.5, 4]) * 24 * 3600,
8386
)
8487
events_ov_bubbler_26 = ov_bubbler_26.create_reset_events()

0 commit comments

Comments
 (0)