Skip to content

Commit 93bab99

Browse files
a few fixes + tweaked param
1 parent f390bfc commit 93bab99

File tree

3 files changed

+50
-47
lines changed

3 files changed

+50
-47
lines changed

analysis/tritium/pathsim_model.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
k_top,
1212
baby_model,
1313
measured_TBR,
14+
calculated_TBR,
1415
replacement_times_top,
1516
replacement_times_walls,
1617
gas_switch_deltatime,
@@ -29,20 +30,22 @@
2930

3031
S_IV = 1
3132
S_OV = 1
32-
k1 = 3e-17
33-
k2 = 0.4e-4
34-
# f_stick_IV = 0.15
33+
k1 = 1e-17 # T + T -> T2
34+
k2 = 0.03e-4 # H2 + T -> HT + H
3535
f_stick_IV = 0.15
3636
f_stick_OV = 0.9
3737

38-
initial_inv_wall_IV = activity_to_quantity(4 * ureg.Bq).to(ureg.particle).magnitude
38+
initial_inv_wall_IV = activity_to_quantity(8 * ureg.Bq).to(ureg.particle).magnitude
3939
initial_inv_wall_OV = 8e9
4040
t_h2 = gas_switch_deltatime.to("s").magnitude
4141

42-
tbr = measured_TBR.to("dimensionless").magnitude
42+
tbr = calculated_TBR.to("dimensionless").magnitude
43+
44+
# since we don't have a nice TBR measurement here, adjust it
45+
tbr *= 1.5
4346

4447
IV_gas_residence_time = 0.1 * baby_vol / (A_IV * k_IV)
45-
OV_gas_residence_time = 2.2 * baby_vol / (A_OV * k_OV)
48+
OV_gas_residence_time = 3 * baby_vol / (A_OV * k_OV)
4649

4750
baby_residence_time = baby_vol / (k_IV * A_IV + k_OV * A_OV)
4851

@@ -52,7 +55,7 @@
5255
# Create blocks
5356
blocks, events = [], []
5457

55-
tbr_7 = pathsim.blocks.amplifier.Amplifier(gain=3e-3)
58+
tbr_7 = pathsim.blocks.amplifier.Amplifier(gain=tbr)
5659
blocks.append(tbr_7)
5760

5861
baby_8 = pathview.custom_pathsim_blocks.Process(
@@ -137,12 +140,12 @@
137140
blocks.append(ov_36)
138141

139142
iv_gas_37 = pathview.custom_pathsim_blocks.Process(
140-
residence_time=0.1 * baby_vol / (A_IV * k_IV),
143+
residence_time=IV_gas_residence_time,
141144
)
142145
blocks.append(iv_gas_37)
143146

144147
ov_gas_38 = pathview.custom_pathsim_blocks.Process(
145-
residence_time=4 * baby_vol / (A_OV * k_OV),
148+
residence_time=OV_gas_residence_time,
146149
)
147150
blocks.append(ov_gas_38)
148151

analysis/tritium/tritium_model.ipynb

Lines changed: 37 additions & 37 deletions
Large diffs are not rendered by default.

analysis/tritium/tritium_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def create_sample(label: str, filename: str) -> LSCSample:
209209
)
210210

211211
# Run 1 transport coeff and measured TBR for overlay
212-
optimised_ratio = 0.0635
212+
optimised_ratio = 1 / 12
213213
k_top = 1.45 * 8.9e-8 * ureg.m * ureg.s**-1
214214
# k_top = 2.8 * 8.9e-8 * ureg.m * ureg.s**-1 # Plausible OV curve fit
215215
k_wall = optimised_ratio * k_top

0 commit comments

Comments
 (0)