31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626 | class CCFE_HCPB(OutboardBlanket, InboardBlanket):
"""This module contains the PROCESS CCFE HCPB blanket model
based on CCFE HCPB model from the PROCESS engineering paper
PROCESS Engineering paper (M. Kovari et al.)
References
----------
- M. Kovari et al., “PROCESS: A systems code for fusion power plants - Part 2: Engineering,”
Fusion Engineering and Design, vol. 104, pp. 9-20, Mar. 2016,
doi: https://doi.org/10.1016/j.fusengdes.2016.01.007.
"""
def run(self, output: bool):
# Coolant type
fwbs_variables.i_blkt_coolant_type = 1
# Note that the first wall coolant is now input separately.
# Calculate blanket, shield, vacuum vessel and cryostat volumes
self.component_volumes()
dia_blkt_channel = self.pipe_hydraulic_diameter(i_channel_shape=1)
fwbs_variables.radius_blkt_channel = dia_blkt_channel / 2
(
fwbs_variables.radius_blkt_channel_90_bend,
fwbs_variables.radius_blkt_channel_180_bend,
) = self.calculate_pipe_bend_radius(i_ps=1)
self.set_blanket_module_geometry()
blanket_library.len_blkt_inboard_segment_toroidal = self.calculate_blanket_inboard_module_geometry(
n_blkt_inboard_modules_toroidal=fwbs_variables.n_blkt_inboard_modules_toroidal,
rmajor=physics_variables.rmajor,
rminor=physics_variables.rminor,
dr_fw_plasma_gap_inboard=build_variables.dr_fw_plasma_gap_inboard,
)
blanket_library.len_blkt_outboard_segment_toroidal = self.calculate_blanket_outboard_module_geometry(
n_blkt_outboard_modules_toroidal=fwbs_variables.n_blkt_outboard_modules_toroidal,
rmajor=physics_variables.rmajor,
rminor=physics_variables.rminor,
dr_fw_plasma_gap_outboard=build_variables.dr_fw_plasma_gap_outboard,
)
# Centrepost neutronics
if physics_variables.itart == 1:
# CP radius at the point of maximum sield radius [m]
# The maximum shield radius is assumed to be at the X-point
r_sh_inboard_out_top = (
physics_variables.rmajor
- physics_variables.rminor * physics_variables.triang
- 3 * build_variables.dr_fw_plasma_gap_inboard
)
# Half height of the CP at the largest shield radius [m]
h_sh_max_r = build_variables.z_plasma_xpoint_upper
# Solid angle fraction of neutrons that hit the centrepost shield [-]
# Calculating the CP solid angle coverage fraction
# Rem : This calculation considered the shield flaring
# while the MCNP based neutronics considers a
# cylinder
f_geom_cp = self.st_cp_angle_fraction(
h_sh_max_r,
build_variables.r_sh_inboard_out,
r_sh_inboard_out_top,
physics_variables.rmajor,
)
# TF fast neutron flux (E > 0.1 MeV) [m^{-2}.s^{-1}]
fwbs_variables.neut_flux_cp = self.st_tf_centrepost_fast_neut_flux(
physics_variables.p_neutron_total_mw,
build_variables.dr_shld_inboard,
physics_variables.rmajor,
)
# TF, shield and total CP nuclear heating [MW]
(
fwbs_variables.pnuc_cp_tf,
fwbs_variables.p_cp_shield_nuclear_heat_mw,
fwbs_variables.pnuc_cp,
) = self.st_centrepost_nuclear_heating(
physics_variables.p_neutron_total_mw, build_variables.dr_shld_inboard
)
else: # No CP
f_geom_cp = 0
fwbs_variables.pnuc_cp_tf = 0
fwbs_variables.p_cp_shield_nuclear_heat_mw = 0
fwbs_variables.pnuc_cp = 0
fwbs_variables.neut_flux_cp = 0
self.component_masses()
# Calculate the nuclear heating
# Rem : The heating power will be normalised to the neutron power using
# the divertor and the centrepost (for itart == 1),
self.nuclear_heating_magnets(output=output)
fwbs_variables.p_fw_nuclear_heat_total_mw = self.nuclear_heating_fw(
m_fw_total=fwbs_variables.m_fw_total,
fw_armour_u_nuc_heating=ccfe_hcpb_module.fw_armour_u_nuc_heating,
p_fusion_total_mw=physics_variables.p_fusion_total_mw,
)
fwbs_variables.p_blkt_nuclear_heat_total_mw, ccfe_hcpb_module.exp_blanket = (
self.nuclear_heating_blanket(
m_blkt_total=fwbs_variables.m_blkt_total,
p_fusion_total_mw=physics_variables.p_fusion_total_mw,
)
)
(
fwbs_variables.p_shld_nuclear_heat_mw,
ccfe_hcpb_module.exp_shield1,
ccfe_hcpb_module.exp_shield2,
ccfe_hcpb_module.shld_u_nuc_heating,
) = self.nuclear_heating_shield(
itart=physics_variables.itart,
dr_shld_outboard=build_variables.dr_shld_outboard,
dr_shld_inboard=build_variables.dr_shld_inboard,
shield_density=ccfe_hcpb_module.shield_density,
whtshld=fwbs_variables.whtshld,
x_blanket=ccfe_hcpb_module.x_blanket,
p_fusion_total_mw=physics_variables.p_fusion_total_mw,
)
# Normalisation of the nuclear heating
# The nuclear heating are normalised assuming no energy multiplication
# in the divertor and the centrepost
# Assume that all the neutrons are absorbed. (Not applicable for very thin blankets)
# Rem SK : This calculation effectively only uses the angular fractions to get
# the energy multiplication and hence the power balance ...
# Split neutron power to main wall between fw, bkt, shld and TF with same
# fractions as before.
# Total nuclear power deposited in the blanket sector (MW)
ccfe_hcpb_module.pnuc_tot_blk_sector = (
fwbs_variables.p_fw_nuclear_heat_total_mw
+ fwbs_variables.p_blkt_nuclear_heat_total_mw
+ fwbs_variables.p_shld_nuclear_heat_mw
+ fwbs_variables.p_tf_nuclear_heat_mw
)
# Total nuclear power deposited in the
# if ( pnuc_tot_blk_sector < 1.0d0 .or. pnuc_tot_blk_sector /= pnuc_tot_blk_sector ) then
# #TODO This can flood the terminal, and should be logged once in Python
# write(*,*)'p_fw_nuclear_heat_total_mw =', p_fw_nuclear_heat_total_mw, ' and ', 'p_blkt_nuclear_heat_total_mw =', p_blkt_nuclear_heat_total_mw
# write(*,*)'p_shld_nuclear_heat_mw =', p_shld_nuclear_heat_mw, ' p_tf_nuclear_heat_mw =', p_tf_nuclear_heat_mw
# end if
# Solid angle fraction taken by the breeding blankets/shields
f_geom_blanket = (
1
- divertor_variables.n_divertors * fwbs_variables.f_ster_div_single
- f_geom_cp
)
# Power to the first wall (MW)
fwbs_variables.p_fw_nuclear_heat_total_mw = (
(
fwbs_variables.p_fw_nuclear_heat_total_mw
/ ccfe_hcpb_module.pnuc_tot_blk_sector
)
* fwbs_variables.f_p_blkt_multiplication
* f_geom_blanket
* physics_variables.p_neutron_total_mw
)
# Power to the blanket (MW)
fwbs_variables.p_blkt_nuclear_heat_total_mw = (
(
fwbs_variables.p_blkt_nuclear_heat_total_mw
/ ccfe_hcpb_module.pnuc_tot_blk_sector
)
* fwbs_variables.f_p_blkt_multiplication
* f_geom_blanket
* physics_variables.p_neutron_total_mw
)
# Power to the shield(MW)
# The power deposited in the CP shield is added back in powerflow_calc
fwbs_variables.p_shld_nuclear_heat_mw = (
(
fwbs_variables.p_shld_nuclear_heat_mw
/ ccfe_hcpb_module.pnuc_tot_blk_sector
)
* fwbs_variables.f_p_blkt_multiplication
* f_geom_blanket
* physics_variables.p_neutron_total_mw
)
# Power to the TF coils (MW)
# The power deposited in the CP conductor is added back here
fwbs_variables.p_tf_nuclear_heat_mw = (
(fwbs_variables.p_tf_nuclear_heat_mw / ccfe_hcpb_module.pnuc_tot_blk_sector)
* fwbs_variables.f_p_blkt_multiplication
* f_geom_blanket
* physics_variables.p_neutron_total_mw
+ fwbs_variables.pnuc_cp_tf
)
# Power deposited in the CP
fwbs_variables.p_cp_shield_nuclear_heat_mw = (
f_geom_cp * physics_variables.p_neutron_total_mw - fwbs_variables.pnuc_cp_tf
)
# Old code kept for backward compatibility
# ---
# p_div_nuclear_heat_total_mw is not changed.
# The energy due to multiplication, by subtraction:
# p_blkt_multiplication_mw = p_fw_nuclear_heat_total_mw + p_blkt_nuclear_heat_total_mw + p_shld_nuclear_heat_mw + p_tf_nuclear_heat_mw + p_div_nuclear_heat_total_mw - p_neutron_total_mw
# ---
# New code, a bit simpler
fwbs_variables.p_blkt_multiplication_mw = (
(fwbs_variables.f_p_blkt_multiplication - 1)
* f_geom_blanket
* physics_variables.p_neutron_total_mw
)
# powerflow calculation for pumping power
self.powerflow_calc(output=output)
# output
if output:
self.write_output()
def component_masses(self):
"""Calculations for component masses
This model used to be in the blanket library. However,
it only appears to contain code relevant to hcpb.
"""
# CCFE HCPB modal calculates the coolant mass,
# have added an if staement using the i_blanket_type switch for this.
# N.B. i_blanket_type=1 for CCFE HCPB
# Start adding components of the coolant mass:
# Divertor coolant volume (m3)
coolvol = (
divertor_variables.a_div_surface_total
* divertor_variables.f_vol_div_coolant
* divertor_variables.dx_div_plate
)
# Blanket coolant volume (m3)
coolvol = (
coolvol
+ fwbs_variables.vol_blkt_total * fwbs_variables.f_a_blkt_cooling_channels
)
# Shield coolant volume (m3)
coolvol = coolvol + fwbs_variables.vol_shld_total * fwbs_variables.vfshld
# First wall coolant volume (m3)
coolvol = (
coolvol
+ first_wall_variables.a_fw_inboard
* build_variables.dr_fw_inboard
* fwbs_variables.f_a_fw_coolant_inboard
+ first_wall_variables.a_fw_outboard
* build_variables.dr_fw_outboard
* fwbs_variables.f_a_fw_coolant_outboard
)
# Mass of He coolant = volume * density at typical coolant temperatures and pressures (kg)
fwbs_variables.m_fw_blkt_div_coolant_total = coolvol * 1.517
# Average first wall coolant fraction, only used by old routines in fispact.f90, safety.f90
fwbs_variables.fwclfr = (
first_wall_variables.a_fw_inboard
* build_variables.dr_fw_inboard
* fwbs_variables.f_a_fw_coolant_inboard
+ first_wall_variables.a_fw_outboard
* build_variables.dr_fw_outboard
* fwbs_variables.f_a_fw_coolant_outboard
) / (
first_wall_variables.a_fw_total
* 0.5
* (build_variables.dr_fw_inboard + build_variables.dr_fw_outboard)
)
# CCFE HCPB calculates the mass of the divertor, blanket (including seprate masses for each material),
# shield, FW and FW armour.
# KIT HCPB calculates the mass of the blanket (including seprate masses for each material)
# and the void fraction for the blanket.
# N.B. i_blanket_type=1 for CCFE HCPB
# Component masses
# Divertor mass (kg)
divertor_variables.a_div_surface_total = (
divertor_variables.fdiva
* 2.0
* np.pi
* physics_variables.rmajor
* physics_variables.rminor
)
if divertor_variables.n_divertors == 2:
divertor_variables.a_div_surface_total = (
divertor_variables.a_div_surface_total * 2.0
)
divertor_variables.m_div_plate = (
divertor_variables.a_div_surface_total
* divertor_variables.den_div_structure
* (1.0 - divertor_variables.f_vol_div_coolant)
* divertor_variables.dx_div_plate
)
# Shield mass (kg)
fwbs_variables.whtshld = (
fwbs_variables.vol_shld_total
* fwbs_variables.den_steel
* (1.0 - fwbs_variables.vfshld)
)
# Penetration shield mass (set = internal shield) (kg)
fwbs_variables.wpenshld = fwbs_variables.whtshld
# First wall volume (m^3)
fwbs_variables.vol_fw_total = (
first_wall_variables.a_fw_inboard
* build_variables.dr_fw_inboard
* (1.0 - fwbs_variables.f_a_fw_coolant_inboard)
+ first_wall_variables.a_fw_outboard
* build_variables.dr_fw_outboard
* (1.0 - fwbs_variables.f_a_fw_coolant_outboard)
)
# First wall mass, excluding armour (kg)
fwbs_variables.m_fw_total = (
fwbs_variables.den_steel * fwbs_variables.vol_fw_total
)
# First wall armour volume (m^3)
fwbs_variables.fw_armour_vol = (
physics_variables.a_plasma_surface * fwbs_variables.fw_armour_thickness
)
# First wall armour mass (kg)
fwbs_variables.fw_armour_mass = (
fwbs_variables.fw_armour_vol * constants.DEN_TUNGSTEN
)
if fwbs_variables.breeder_f < 1.0e-10:
fwbs_variables.breeder_f = 1.0e-10
if fwbs_variables.breeder_f > 1.0:
fwbs_variables.breeder_f = 1.0
# f_vol_blkt_tibe12 = f_vol_blkt_li4sio4 * (1 - breeder_f)/breeder_f
# New combined variable breeder_multiplier
# Lithium orthosilicate fraction:
fwbs_variables.f_vol_blkt_li4sio4 = (
fwbs_variables.breeder_f * fwbs_variables.breeder_multiplier
)
# Titanium beryllide fraction, and mass (kg):
fwbs_variables.f_vol_blkt_tibe12 = (
fwbs_variables.breeder_multiplier - fwbs_variables.f_vol_blkt_li4sio4
)
fwbs_variables.m_blkt_tibe12 = (
fwbs_variables.vol_blkt_total * fwbs_variables.f_vol_blkt_tibe12 * 2260.0
)
# Blanket Lithium orthosilicate mass (kg)
# Ref: www.rockwoodlithium.com...
fwbs_variables.m_blkt_li4sio4 = (
fwbs_variables.vol_blkt_total * fwbs_variables.f_vol_blkt_li4sio4 * 2400.0
)
# TODO sort this out so that costs model uses new variables.
# #327 For backwards compatibility, set the old blanket masses the same:
fwbs_variables.m_blkt_beryllium = fwbs_variables.m_blkt_tibe12
fwbs_variables.m_blkt_li2o = fwbs_variables.m_blkt_li4sio4
# Steel fraction by volume is the remainder:
fwbs_variables.f_vol_blkt_steel = (
1.0
- fwbs_variables.f_vol_blkt_li4sio4
- fwbs_variables.f_vol_blkt_tibe12
- fwbs_variables.vfcblkt
- fwbs_variables.vfpblkt
)
# Steel mass (kg)
fwbs_variables.m_blkt_steel_total = (
fwbs_variables.vol_blkt_total
* fwbs_variables.f_vol_blkt_steel
* fwbs_variables.den_steel
)
# Total blanket mass (kg)
fwbs_variables.m_blkt_total = (
fwbs_variables.m_blkt_tibe12
+ fwbs_variables.m_blkt_li4sio4
+ fwbs_variables.m_blkt_steel_total
)
# Total mass of first wall and blanket
fwbs_variables.armour_fw_bl_mass = (
fwbs_variables.fw_armour_mass
+ fwbs_variables.m_fw_total
+ fwbs_variables.m_blkt_total
)
def nuclear_heating_magnets(self, output: bool):
"""Nuclear heating in the magnets for CCFE HCPB model
This subroutine calculates the nuclear heating in the
coils.
PROCESS Engineering paper (M. Kovari et al.)
Parameters
----------
output: bool
"""
# Model factors and coefficients
a = 2.830 # Exponential factor (m2/tonne)
b = 0.583 # Exponential factor (m2/tonne)
e = 9.062 # Pre-factor (1/kg). Corrected see issue #272
# First wall void fractions
# inboard FW coolant void fraction
fwbs_variables.f_a_fw_coolant_inboard = (
np.pi
* fwbs_variables.radius_fw_channel**2
/ (fwbs_variables.dx_fw_module * build_variables.dr_fw_inboard)
)
# outboard FW coolant void fraction
fwbs_variables.f_a_fw_coolant_outboard = fwbs_variables.f_a_fw_coolant_inboard
# mean FW coolant void fraction
vffwm = fwbs_variables.f_a_fw_coolant_inboard
# Calculate smeared densities of blanket sections
# gaseous He coolant in armour, FW & blanket: He mass is neglected
ccfe_hcpb_module.armour_density = constants.DEN_TUNGSTEN * (1.0 - vffwm)
ccfe_hcpb_module.fw_density = fwbs_variables.den_steel * (1.0 - vffwm)
ccfe_hcpb_module.blanket_density = (
fwbs_variables.m_blkt_total / fwbs_variables.vol_blkt_total
)
ccfe_hcpb_module.shield_density = (
fwbs_variables.whtshld / fwbs_variables.vol_shld_total
)
# Picking the largest value for VV thickness
d_vv_all = build_variables.dr_vv_inboard
if build_variables.dr_vv_outboard > d_vv_all:
d_vv_all = build_variables.dr_vv_outboard
if d_vv_all > 1.0e-6:
ccfe_hcpb_module.vv_density = fwbs_variables.m_vv / fwbs_variables.vol_vv
else:
ccfe_hcpb_module.vv_density = 0.0
# Calculation of average blanket/shield thickness [m]
if physics_variables.itart == 1:
# There is no inner blanket for TART design [m]
th_blanket_av = build_variables.dr_blkt_outboard
# The CP shield in considered in a separate calcualtion [m]
th_shield_av = build_variables.dr_shld_outboard
else:
# Average breeding blanket thickness [m]
th_blanket_av = 0.5 * (
build_variables.dr_blkt_outboard + build_variables.dr_blkt_inboard
)
# Average neutronic shield thickness [m]
th_shield_av = 0.5 * (
build_variables.dr_shld_outboard + build_variables.dr_shld_inboard
)
# Exponents (tonne/m2)
# Blanket exponent (/1000 for kg -> tonnes)
ccfe_hcpb_module.x_blanket = (
ccfe_hcpb_module.armour_density * fwbs_variables.fw_armour_thickness
+ ccfe_hcpb_module.fw_density
* (build_variables.dr_fw_inboard + build_variables.dr_fw_outboard)
/ 2.0
+ ccfe_hcpb_module.blanket_density * th_blanket_av
) / 1000.0
# Shield exponent(/1000 for kg -> tonnes)
ccfe_hcpb_module.x_shield = (
ccfe_hcpb_module.shield_density * th_shield_av
+ ccfe_hcpb_module.vv_density
* (build_variables.dr_vv_inboard + build_variables.dr_vv_outboard)
/ 2.0
) / 1000.0
# If spherical tokamak, this is outboard only. pnuc_cp_tf is evaluated separately
if physics_variables.itart == 1:
# Nuclear heating in outobard TF coil legs (whttflgs)
# Unit heating (W/kg/GW of fusion power) x legs mass only (kg)
ccfe_hcpb_module.tfc_nuc_heating = (
e
* np.exp(-a * ccfe_hcpb_module.x_blanket)
* np.exp(-b * ccfe_hcpb_module.x_shield)
* tfcoil_variables.whttflgs
)
else:
# Nuclear heating in TF coil
# Unit heating (W/kg/GW of fusion power) x total mass (kg)
ccfe_hcpb_module.tfc_nuc_heating = (
e
* np.exp(-a * ccfe_hcpb_module.x_blanket)
* np.exp(-b * ccfe_hcpb_module.x_shield)
* tfcoil_variables.m_tf_coils_total
)
# Total heating (MW)
fwbs_variables.p_tf_nuclear_heat_mw = (
ccfe_hcpb_module.tfc_nuc_heating
* (physics_variables.p_fusion_total_mw / 1000.0)
/ 1.0e6
)
if output:
po.oheadr(self.outfile, "Nuclear Heating Magnets Before Renormalisation")
po.ovarre(
self.outfile,
"Shield line density (tonne/m2)",
"(x_shield)",
ccfe_hcpb_module.x_shield,
)
po.ovarre(
self.outfile,
"Blanket line density (tonne/m2)",
"(x_blanket)",
ccfe_hcpb_module.x_blanket,
)
po.ovarre(
self.outfile,
"Unit nuclear heating in TF coil (W/GW)",
"(tfc_nuc_heating)",
ccfe_hcpb_module.tfc_nuc_heating,
)
po.ovarre(
self.outfile,
"Total nuclear heating in TF coil (MW)",
"(p_tf_nuclear_heat_mw.)",
fwbs_variables.p_tf_nuclear_heat_mw,
)
po.ovarre(
self.outfile,
"p_fusion_total_mw",
"(p_fusion_total_mw.)",
physics_variables.p_fusion_total_mw,
)
po.ovarre(
self.outfile,
"total mass of the TF coils (kg)",
"(m_tf_coils_total)",
tfcoil_variables.m_tf_coils_total,
)
def nuclear_heating_fw(
self,
m_fw_total: float,
fw_armour_u_nuc_heating: float,
p_fusion_total_mw: float,
) -> float:
"""Calculate the nuclear heating in the first wall (FW) for the CCFE HCPB model.
Parameters
----------
m_fw_total:
Total mass of the first wall (kg).
fw_armour_u_nuc_heating:
Unit nuclear heating of the FW and armour (W/kg per W of fusion power).
p_fusion_total_mw:
Total fusion power (MW).
Returns
-------
:
Total nuclear heating in the first wall (MW).
Raises
------
ProcessValueError
If the calculated nuclear heating is negative.
"""
# Total nuclear heating in FW (MW)
p_fw_nuclear_heat_total_mw = (
m_fw_total
# Unit heating of FW and armour (W/kg per W of fusion power)
* fw_armour_u_nuc_heating
* p_fusion_total_mw
)
if p_fw_nuclear_heat_total_mw < 0:
raise ProcessValueError(
f"""Error in nuclear_heating_fw. {p_fw_nuclear_heat_total_mw = },
{p_fusion_total_mw = }, {m_fw_total = }"""
)
return p_fw_nuclear_heat_total_mw
def nuclear_heating_blanket(
self, m_blkt_total: float, p_fusion_total_mw: float
) -> tuple[float, float]:
"""Calculates the nuclear heating in the blanket for the CCFE HCPB model.
Parameters
----------
m_blkt_total:
Total mass of the blanket in kilograms.
p_fusion_total_mw:
Total fusion power in megawatts.
Returns
-------
:
p_blkt_nuclear_heat_total_mw (float): Total nuclear heating in the blanket (MW).
- exp_blanket (float): Exponential blanket factor (dimensionless).
Raises
------
ProcessValueError
If the calculated nuclear heating is less than 1 MW.
"""
# Blanket nuclear heating coefficient and exponent
a = 0.764
b = 2.476e-3 # 1/tonne
# Mass of the blanket in tonnes
m_blkt_total_tonnes = m_blkt_total / 1000
# Total blanket nuclear heating (MW)
exp_blanket = 1 - np.exp(-b * m_blkt_total_tonnes)
p_blkt_nuclear_heat_total_mw = p_fusion_total_mw * a * exp_blanket
if p_blkt_nuclear_heat_total_mw < 1:
logger.error(
"Blanket heating is <1 MW or NaN. Is something wrong?"
f"{p_blkt_nuclear_heat_total_mw=} {exp_blanket=}"
f" {p_fusion_total_mw=} {m_blkt_total_tonnes=}"
)
return p_blkt_nuclear_heat_total_mw, exp_blanket
def nuclear_heating_shield(
self,
itart: int,
dr_shld_outboard: float,
dr_shld_inboard: float,
shield_density: float,
whtshld: float,
x_blanket: float,
p_fusion_total_mw: float,
) -> tuple[float, float, float, float]:
"""Calculate the nuclear heating in the shield for the CCFE HCPB model.
This method calculates the nuclear heating in the shield using empirical coefficients and exponents,
based on the shield's geometry, density, and the total fusion power. The calculation distinguishes
between spherical tokamak and conventional configurations for the average shield thickness.
Parameters
----------
itart:
Indicator for spherical tokamak (1 if ST, else 0).
dr_shld_outboard:
Outboard shield thickness (m).
dr_shld_inboard:
Inboard shield thickness (m).
shield_density:
Shield smeared density (kg/m^3).
whtshld:
Shield mass (kg).
x_blanket:
Blanket line density (tonne/m^2).
p_fusion_total_mw:
Total fusion power (MW).
Returns
-------
:
p_shld_nuclear_heat_mw (float): Total nuclear heating in shield (MW).
- exp_shield1 (float): First exponential factor for shield heating.
- exp_shield2 (float): Second exponential factor for shield heating.
- shld_u_nuc_heating (float): Unit nuclear heating of shield (W/kg/GW of fusion power) x mass.
"""
# Shield nuclear heating coefficients and exponents
f = 6.88e2 # Shield nuclear heating coefficient (W/kg/W)
g = 2.723 # Shield nuclear heating exponent m²/tonne
h = 0.798 # Shield nuclear heating exponent m²/tonne
# Calculation of average blanket/shield thickness [m]
if itart == 1:
# The CP shield in considered in a separate calcualtion
dr_shld_average = dr_shld_outboard
else:
# Average neutronic shield thickness [m]
dr_shld_average = 0.5 * (dr_shld_outboard + dr_shld_inboard)
# Decay length [m-2]
y = (shield_density / 1000) * dr_shld_average
# Unit nuclear heating of shield (W/kg/GW of fusion power) x mass
exp_shield1 = np.exp(-g * x_blanket)
exp_shield2 = np.exp(-h * y)
shld_u_nuc_heating = whtshld * f * exp_shield1 * exp_shield2
# Total nuclear heating in shield (MW)
p_shld_nuclear_heat_mw = shld_u_nuc_heating * (p_fusion_total_mw / 1000) / 1.0e6
return p_shld_nuclear_heat_mw, exp_shield1, exp_shield2, shld_u_nuc_heating
def powerflow_calc(self, output: bool):
"""Calculations for powerflow
Parameters
----------
output:
"""
# Radiation power incident on HCD apparatus (MW)
fwbs_variables.p_fw_hcd_rad_total_mw = (
physics_variables.p_plasma_rad_mw * fwbs_variables.f_a_fw_outboard_hcd
)
# Radiation power incident on first wall (MW)
fwbs_variables.p_fw_rad_total_mw = (
physics_variables.p_plasma_rad_mw
- fwbs_variables.p_div_rad_total_mw
- fwbs_variables.p_fw_hcd_rad_total_mw
)
# If we have chosen pressurised water as the blanket coolant, set the
# coolant outlet temperature as 20 deg C below the boiling point
if fwbs_variables.i_blkt_coolant_type == 2:
outlet_saturated_fluid_properties = FluidProperties.of(
"Water",
pressure=fwbs_variables.pres_blkt_coolant * 1.0e6,
vapor_quality=0,
)
fwbs_variables.temp_blkt_coolant_out = (
outlet_saturated_fluid_properties.temperature - 20.0
) # in K
# Surface heat flux on first wall (outboard and inboard) (MW)
# All of the fast particle losses go to the outer wall.
fwbs_variables.psurffwo = (
fwbs_variables.p_fw_rad_total_mw
* first_wall_variables.a_fw_outboard
/ first_wall_variables.a_fw_total
+ current_drive_variables.p_beam_orbit_loss_mw
+ physics_variables.p_fw_alpha_mw
)
fwbs_variables.psurffwi = fwbs_variables.p_fw_rad_total_mw * (
1 - first_wall_variables.a_fw_outboard / first_wall_variables.a_fw_total
)
if fwbs_variables.i_p_coolant_pumping == 1:
# User sets mechanical pumping power directly
(
heat_transport_variables.p_fw_coolant_pump_mw,
heat_transport_variables.p_blkt_coolant_pump_mw,
heat_transport_variables.p_shld_coolant_pump_mw,
heat_transport_variables.p_div_coolant_pump_mw,
) = blanket_library.set_pumping_powers_as_fractions(
f_p_fw_coolant_pump_total_heat=heat_transport_variables.f_p_fw_coolant_pump_total_heat,
f_p_blkt_coolant_pump_total_heat=heat_transport_variables.f_p_blkt_coolant_pump_total_heat,
f_p_shld_coolant_pump_total_heat=heat_transport_variables.f_p_shld_coolant_pump_total_heat,
f_p_div_coolant_pump_total_heat=heat_transport_variables.f_p_div_coolant_pump_total_heat,
p_fw_nuclear_heat_total_mw=fwbs_variables.p_fw_nuclear_heat_total_mw,
psurffwi=fwbs_variables.psurffwi,
psurffwo=fwbs_variables.psurffwo,
p_blkt_nuclear_heat_total_mw=fwbs_variables.p_blkt_nuclear_heat_total_mw,
p_shld_nuclear_heat_mw=heat_transport_variables.p_shld_nuclear_heat_mw,
p_cp_shield_nuclear_heat_mw=fwbs_variables.p_cp_shield_nuclear_heat_mw,
p_plasma_separatrix_mw=physics_variables.p_plasma_separatrix_mw,
p_div_nuclear_heat_total_mw=fwbs_variables.p_div_nuclear_heat_total_mw,
p_div_rad_total_mw=fwbs_variables.p_div_rad_total_mw,
)
elif fwbs_variables.i_p_coolant_pumping == 2:
# Calculate the required material properties of the FW and BB coolant.
self.primary_coolant_properties(output=output)
# Mechanical pumping power is calculated for first wall and blanket
self.thermo_hydraulic_model(output)
# For divertor and shield, mechanical pumping power is a fraction of thermal
# power removed by coolant
heat_transport_variables.p_shld_coolant_pump_mw = (
heat_transport_variables.f_p_shld_coolant_pump_total_heat
* (
fwbs_variables.p_shld_nuclear_heat_mw
+ fwbs_variables.p_cp_shield_nuclear_heat_mw
)
)
heat_transport_variables.p_div_coolant_pump_mw = (
heat_transport_variables.f_p_div_coolant_pump_total_heat
* (
physics_variables.p_plasma_separatrix_mw
+ fwbs_variables.p_div_nuclear_heat_total_mw
+ fwbs_variables.p_div_rad_total_mw
)
)
elif fwbs_variables.i_p_coolant_pumping == 3:
# Issue #503
# Mechanical pumping power is calculated using specified pressure drop for
# first wall and blanket circuit, including heat exchanger and pipes
pfactor = (
primary_pumping_variables.p_he
/ (primary_pumping_variables.p_he - primary_pumping_variables.dp_he)
) ** (
(primary_pumping_variables.gamma_he - 1)
/ primary_pumping_variables.gamma_he
)
# N.B. Currenlty i_p_coolant_pumping==3 uses seperate variables found in
# primary_pumping_variables rather than fwbs_variables.
# The pressure (p_he) is assumed to be the pressure at the
# blanket inlet/pump oulet.
# The pressures (found in fwbs_variables) for coolants using
# i_p_coolant_pumping==2 are assumed to be the pressure at the
# blanket oulet/pump inlet. The equation below is used for i_p_coolant_pumping==2:
# pfactor = ((pressure+deltap)/pressure)**((gamma-1.0d0)/gamma)
t_in_compressor = primary_pumping_variables.t_in_bb / pfactor
dt_he = (
primary_pumping_variables.t_out_bb - primary_pumping_variables.t_in_bb
)
fpump = t_in_compressor / (fwbs_variables.etaiso * dt_he) * (pfactor - 1)
p_plasma = (
fwbs_variables.p_fw_nuclear_heat_total_mw
+ fwbs_variables.psurffwi
+ fwbs_variables.psurffwo
+ fwbs_variables.p_blkt_nuclear_heat_total_mw
)
primary_pumping_variables.p_fw_blkt_coolant_pump_mw = (
primary_pumping_variables.f_p_fw_blkt_pump
* fpump
/ (1 - fpump)
* p_plasma
)
# For divertor and shield, mechanical pumping power is a fraction of thermal
# power removed by coolant
heat_transport_variables.p_shld_coolant_pump_mw = (
heat_transport_variables.f_p_shld_coolant_pump_total_heat
* (
fwbs_variables.p_shld_nuclear_heat_mw
+ fwbs_variables.p_cp_shield_nuclear_heat_mw
)
)
heat_transport_variables.p_div_coolant_pump_mw = (
heat_transport_variables.f_p_div_coolant_pump_total_heat
* (
physics_variables.p_plasma_separatrix_mw
+ fwbs_variables.p_div_nuclear_heat_total_mw
+ fwbs_variables.p_div_rad_total_mw
)
)
if output:
po.oheadr(self.outfile, "Pumping for primary coolant (helium)")
po.ovarre(
self.outfile,
"Pressure drop in FW and blanket coolant incl. hx and pipes (Pa)",
"(dp_he)",
primary_pumping_variables.dp_he,
)
po.ovarre(
self.outfile,
"Fraction of FW and blanket thermal power required for pumping",
"(fpump)",
fpump,
"OP ",
)
po.ovarre(
self.outfile,
"Total power absorbed by FW & blanket (MW)",
"(p_plasma)",
p_plasma,
"OP ",
)
po.ovarre(
self.outfile,
"Inlet temperature of FW & blanket coolant pump (K)",
"(t_in_compressor)",
t_in_compressor,
"OP ",
)
po.ovarre(
self.outfile,
"Coolant pump outlet/Inlet temperature of FW & blanket (K)",
"(t_in_bb)",
primary_pumping_variables.t_in_bb,
)
po.ovarre(
self.outfile,
"Outlet temperature of FW & blanket (K)",
"(t_out_bb)",
primary_pumping_variables.t_out_bb,
)
po.ovarre(
self.outfile,
"Mechanical pumping power for FW and blanket cooling loop including heat exchanger (MW)",
"(p_fw_blkt_coolant_pump_mw)",
primary_pumping_variables.p_fw_blkt_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Pumping power for FW and Blanket multiplier factor",
"(f_p_fw_blkt_pump)",
primary_pumping_variables.f_p_fw_blkt_pump,
"IP ",
)
po.ovarre(
self.outfile,
"Mechanical pumping power for divertor (MW)",
"(p_div_coolant_pump_mw)",
heat_transport_variables.p_div_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Mechanical pumping power for shield and vacuum vessel (MW)",
"(p_shld_coolant_pump_mw)",
heat_transport_variables.p_shld_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Radius of blanket cooling channels (m)",
"(radius_blkt_channel)",
fwbs_variables.radius_blkt_channel,
)
po.ovarre(
self.outfile,
"Radius of 90 degree coolant channel bend (m)",
"(radius_blkt_channel_90_bend)",
fwbs_variables.radius_blkt_channel_90_bend,
)
po.ovarre(
self.outfile,
"Radius of 180 degree coolant channel bend (m)",
"(radius_blkt_channel_180_bend)",
fwbs_variables.radius_blkt_channel_180_bend,
)
def st_cp_angle_fraction(self, z_cp_top, r_cp_mid, r_cp_top, rmajor):
"""
Estimates the CP angular solid angle coverage fration
Equation (1-3) from
ref : P. Guest THE-REVIEW OF SCIENTIFIC INSTRUMENTS, vol 32, n 2 (1960)
Initial, but undocumented calculation kept as commented section
without any talor expansion approximation
Parameters
----------
z_cp_top :
Centrepost shield half height [m]
r_cp_top :
Centrepost top radius [m]
r_cp_mid :
Centrepost mid-plane radius [m]
rmajor :
Plasma major radius [m]
Returns
-------
type
Solid angle fraction covered by the CP [-]
"""
n_integral = 10
# Initial calculation
# -------------------
# Kept as commented section for documentation
# ! Fraction of neutrons that hit the centre post neutronic shield
# f_geom_cp = cphalflen / sqrt(cphalflen**2 + (rmajor-r_cp_outer)**2 ) &
# * atan(r_cp_outer/(rmajor-r_cp_outer) )/pi
# -------------------
# Major radius normalised to the CP average radius [-]
rho_maj = 2.0 * rmajor / (r_cp_mid + r_cp_top)
# Average CP extent in the toroidal plane [rad]
phy_cp = np.arcsin(1.0 / rho_maj)
# toroidal plane infinitesimal angle used in the integral [rad]
d_phy_cp = phy_cp / n_integral
# CP solid angle integral using trapezoidal method
phy_cp_calc = 0.0
cp_sol_angle = 0.0
for _ in range(n_integral):
# Little tricks to avoild NaNs due to rounding
int_calc_3 = 1.0 - rho_maj**2 * np.sin(phy_cp_calc) ** 2
if int_calc_3 < 0.0:
int_calc_3 = 0.0
int_calc_1 = 1.0 / np.sqrt(
z_cp_top**2 + (rho_maj * np.cos(phy_cp_calc) - np.sqrt(int_calc_3)) ** 2
)
phy_cp_calc = phy_cp_calc + d_phy_cp
# Little tricks to avoild NaNs due to rounding
int_calc_3 = 1.0 - rho_maj**2 * np.sin(phy_cp_calc) ** 2
if int_calc_3 < 0.0:
int_calc_3 = 0.0
int_calc_2 = 1.0 / np.sqrt(
z_cp_top**2 + (rho_maj * np.cos(phy_cp_calc) - np.sqrt(int_calc_3)) ** 2
)
cp_sol_angle = cp_sol_angle + d_phy_cp * 0.5 * (int_calc_1 + int_calc_2)
cp_sol_angle = cp_sol_angle * 4.0 * z_cp_top
# Solid angle fraction covered by the CP (OUTPUT) [-]
return 0.25 * cp_sol_angle / np.pi
def st_tf_centrepost_fast_neut_flux(self, p_neutron_total_mw, sh_width, rmajor):
"""
Routine calculating the fast neutron (E > 0.1 MeV) flux reaching the TF
at the centerpost. These calcualtion are made from a CP only MCNP fit
with a variable tungsten carbyde shield with 13% water cooling. The
TF size is kept constant in the MCNP runs in such a way tha it increases
size.
This subroutine uses an shielding length per decade (/10 drop in flux)
of 16.6 cm, close to the "15 - 16 cm" of Menard et al. 2016.
(This is an e-folding lenth of 7.22 cm.)
Parameters
----------
p_neutron_total_mw :
neutron fusion power [MW]
sh_width :
Neutron shield width [m]
rmajor :
Plasma major radius [m]
"""
# Fraction of fast neutrons originating from the outer wall reflection [-]
f_neut_flux_out_wall = 1
# Tungsten density may vary with different manufacturing processes.
f_wc_density = 2
# Fraction of steel structures
f_steel_struct = 0.1
# CP fast neutron flux (E > 0.1 MeV) [m^{-2}.s^}{-1}]
neut_flux_cp = 0
if tfcoil_variables.i_tf_sup == 1:
# Effecting shield width, removing steel structures
sh_width_eff = sh_width * (1.0 - f_steel_struct)
# Fit [10^{-13}.cm^{-2}]
neut_flux_cp = 5.835 * np.exp(-15.392 * sh_width_eff) + 39.70 * (
sh_width_eff / rmajor
) * np.exp(-24.722 * sh_width_eff)
# Units conversion [10^{-13}.cm^{-2}] -> [m^{-2}]
neut_flux_cp = neut_flux_cp * 1.0e17
# Scaling to the actual plasma neutron power
neut_flux_cp = (
f_wc_density
* f_neut_flux_out_wall
* neut_flux_cp
* (p_neutron_total_mw / 800)
)
return neut_flux_cp
def st_centrepost_nuclear_heating(self, pneut, sh_width):
"""
Estimates the nuclear power absorbed by the ST centrepost magnet
This routine calculates the neutron power absorbed by a
copper spherical tokamak centrepost.
The calculation estimates the fraction of neutrons hitting
the centrepost from a point source at the plasma centre,
and assumes an average path length of 2*r_cp_outer, and an
e-folding decay length of 0.08m (copper-water mixture).
J D Galambos, STAR Code : Spherical Tokamak Analysis and Reactor Code,
unpublished internal Oak Ridge document
Parameters
----------
pneut :
14 MeV plasma neutron power generated by the plasma [MW]
sh_width :
Thickeness of the centrepost neutron shield [m]
Returns
-------
type
Nuclear nuclear heat deposited in the centrepost TF coil [MW],
Nuclear nuclear heat deposited in the centrepost shield [MW],
Total nuclear heat deposited in the centrepost shield [MW])
"""
# Outer wall reflection TF nuclear heating enhancement factor [-]
f_pnuc_cp_tf = 1
# Outer wall reflection shield nuclear heating enhancement factor [-]
f_pnuc_cp_sh = 1.7
# Tungsten density may vary with different manufacturing processes.
f_wc_density = 2
# Fraction of steel structures
f_steel_struct = 0.1
# Former nuclear heating calculations for Copper magnets
# Commented out as no nuclear shielding was included
# ---
# ! Fraction of the nuclear power absorbed by the copper centrepost
# ! (0.08 m e-folding decay length)
# f_neut_absorb_cp = 1.0D0 - exp( -2.0D0*dr_tf_inboard / 0.08D0)
#
# ! Nuclear power
# pnuc_cp = pneut * f_geom_cp * f_neut_absorb_cp
# ---
# Steel support structure effective WC shield thickness reduction
sh_width_eff = sh_width * (1 - f_steel_struct)
# Aluminium CP
# ------------
# From Pfus = 1 GW ST MCNP neutronic calculations assuming
# Tungsten carbyde with 13% water cooling fraction
if tfcoil_variables.i_tf_sup == 2:
pnuc_cp_tf = (pneut / 800) * np.exp(3.882 - 16.69 * sh_width_eff)
# WARINING, this is an extraoilation from TF heat ...
# DO NOT TRUST THIS VALUE !!
p_cp_shield_nuclear_heat_mw = (pneut / 800.0) * np.exp(3.882) - pnuc_cp_tf
# ------------
# Superconducting / copper CP
# ---------------------------
# MCNP calculations made with a TF magnet model with very large WP
# so the TF is mostly copper, making the calculation also valid for
# Copper TF centrepost
else:
# This subroutine uses an shielding length per decade (/10 drop in neutron heating)
# of 15.5 cm, within to the "15 - 16 cm" of Menard et al. 2016.
# (This is an e-folding lenth of 6.72 cm.)
# Nuclear powers fits for a 800 MW plasma neutron source
# ***
# Nuclear power deposited in the CP winding pack by gammas [MW]
pnuc_cp_wp_gam = 16.3 * np.exp(
-14.63 * sh_width_eff
) + 143.08 * sh_width_eff * (sh_width / physics_variables.rmajor) * np.exp(
-21.747 * sh_width_eff
)
# Nuclear power deposited in the CP winding pack by neutrons [MW]
pnuc_cp_wp_n = 1.403 * np.exp(
-16.535 * sh_width_eff
) + 3.812 * sh_width_eff * (sh_width / physics_variables.rmajor) * np.exp(
-23.631 * sh_width_eff
)
# Nuclear power deposited in the CP steel case by gammas [MW]
pnuc_cp_case_gam = 1.802 * np.exp(
-13.993 * sh_width_eff
) + 38.592 * sh_width * (sh_width_eff / physics_variables.rmajor) * np.exp(
-27.051 * sh_width_eff
)
# Nuclear power deposited in the CP steel case by neutrons [MW]
pnuc_cp_case_n = 0.158 * np.exp(
-55.046 * sh_width_eff
) + 2.0742 * sh_width_eff * (sh_width / physics_variables.rmajor) * np.exp(
-24.401 * sh_width_eff
)
# Nuclear power density deposited in the tungsten carbyde shield by photons [MW]
pnuc_cp_sh_gam = sh_width_eff * (
596 * np.exp(-4.130 * sh_width_eff)
+ 90.586 * np.exp(0.6837 * sh_width_eff)
)
# Nuclear power density deposited in the tungsten carbyde shield by neutrons [MW]
pnuc_cp_sh_n = sh_width_eff * (
202.10 * np.exp(-10.533 * sh_width_eff)
+ 80.510 * np.exp(-0.9801 * sh_width_eff)
)
# Fit generalisation
# ***
# Correction for the actual 14 MeV plasma neutron power
pnuc_cp_wp_gam = (pneut / 800) * pnuc_cp_wp_gam
pnuc_cp_wp_n = (pneut / 800) * pnuc_cp_wp_n
pnuc_cp_case_gam = (pneut / 800) * pnuc_cp_case_gam
pnuc_cp_case_n = (pneut / 800) * pnuc_cp_case_n
pnuc_cp_sh_gam = (pneut / 800) * pnuc_cp_sh_gam
pnuc_cp_sh_n = (pneut / 800) * pnuc_cp_sh_n
# Correction for neutron reflected by the outer wall hitting the CP
pnuc_cp_wp_gam = f_pnuc_cp_tf * pnuc_cp_wp_gam
pnuc_cp_wp_n = f_pnuc_cp_tf * pnuc_cp_wp_n
pnuc_cp_case_gam = f_pnuc_cp_tf * pnuc_cp_case_gam
pnuc_cp_case_n = f_pnuc_cp_tf * pnuc_cp_case_n
pnuc_cp_sh_gam = f_pnuc_cp_sh * pnuc_cp_sh_gam
pnuc_cp_sh_n = f_pnuc_cp_sh * pnuc_cp_sh_n
# TF nuclear heat [MW]
pnuc_cp_tf = (
pnuc_cp_wp_gam + pnuc_cp_wp_n + pnuc_cp_case_gam + pnuc_cp_case_n
)
# Tungsten density correction
pnuc_cp_tf = pnuc_cp_tf * f_wc_density
# Shield nuclear heat [MW]
p_cp_shield_nuclear_heat_mw = pnuc_cp_sh_gam + pnuc_cp_sh_n
# Total CP nuclear heat [MW]
pnuc_cp = pnuc_cp_tf + p_cp_shield_nuclear_heat_mw
return pnuc_cp_tf, p_cp_shield_nuclear_heat_mw, pnuc_cp
def write_output(self):
po.oheadr(self.outfile, "First wall and blanket : CCFE HCPB model")
po.osubhd(self.outfile, "Blanket Composition by volume :")
po.ovarrf(
self.outfile,
"Titanium beryllide fraction",
"(f_vol_blkt_tibe12)",
fwbs_variables.f_vol_blkt_tibe12,
"OP ",
)
po.ovarrf(
self.outfile,
"Lithium orthosilicate fraction",
"(f_vol_blkt_li4sio4)",
fwbs_variables.f_vol_blkt_li4sio4,
"OP ",
)
po.ovarrf(
self.outfile,
"Steel fraction",
"(f_vol_blkt_steel)",
fwbs_variables.f_vol_blkt_steel,
"OP ",
)
po.ovarrf(self.outfile, "Coolant fraction", "(vfcblkt)", fwbs_variables.vfcblkt)
po.ovarrf(
self.outfile, "Purge gas fraction", "(vfpblkt)", fwbs_variables.vfpblkt
)
po.osubhd(self.outfile, "Component Volumes :")
po.ovarrf(
self.outfile,
"First Wall Armour Volume (m3)",
"(fw_armour_vol)",
fwbs_variables.fw_armour_vol,
"OP ",
)
po.ovarrf(
self.outfile,
"First Wall Volume (m3)",
"(vol_fw_total)",
fwbs_variables.vol_fw_total,
"OP ",
)
po.ovarrf(
self.outfile,
"Blanket Volume (m3)",
"(vol_blkt_total)",
fwbs_variables.vol_blkt_total,
"OP ",
)
po.ovarrf(
self.outfile,
"Shield Volume (m3)",
"(vol_shld_total)",
fwbs_variables.vol_shld_total,
"OP ",
)
po.ovarrf(
self.outfile,
"Vacuum vessel volume (m3)",
"(vol_vv)",
fwbs_variables.vol_vv,
"OP ",
)
po.osubhd(self.outfile, "Component Masses :")
po.ovarre(
self.outfile,
"First Wall Armour Mass (kg)",
"(fw_armour_mass)",
fwbs_variables.fw_armour_mass,
"OP ",
)
po.ovarre(
self.outfile,
"First Wall Mass, excluding armour (kg)",
"(m_fw_total)",
fwbs_variables.m_fw_total,
"OP ",
)
po.ovarre(
self.outfile,
"Blanket Mass - Total(kg)",
"(m_blkt_total)",
fwbs_variables.m_blkt_total,
"OP ",
)
po.ovarre(
self.outfile,
" Blanket Mass - TiBe12 (kg)",
"(m_blkt_tibe12)",
fwbs_variables.m_blkt_tibe12,
"OP ",
)
po.ovarre(
self.outfile,
" Blanket Mass - Li4SiO4 (kg)",
"(m_blkt_li4sio4)",
fwbs_variables.m_blkt_li4sio4,
"OP ",
)
po.ovarre(
self.outfile,
" Blanket Mass - Steel (kg)",
"(m_blkt_steel_total)",
fwbs_variables.m_blkt_steel_total,
"OP ",
)
po.ovarre(
self.outfile,
"Total mass of armour, first wall and blanket (kg)",
"(armour_fw_bl_mass)",
fwbs_variables.armour_fw_bl_mass,
"OP ",
)
po.ovarre(
self.outfile, "Shield Mass (kg)", "(whtshld)", fwbs_variables.whtshld, "OP "
)
po.ovarre(
self.outfile,
"Vacuum vessel mass (kg)",
"(m_vv)",
fwbs_variables.m_vv,
"OP ",
)
# Nuclear heating section
po.osubhd(self.outfile, "Nuclear heating :")
# ST centre post
if physics_variables.itart == 1:
if tfcoil_variables.i_tf_sup == 0:
po.osubhd(self.outfile, "(Copper resistive centrepost used)")
elif tfcoil_variables.i_tf_sup == 1:
po.osubhd(self.outfile, "(Superdonducting magnet centrepost used)")
po.ovarre(
self.outfile,
"ST centrepost TF fast neutron fllux (E > 0.1 MeV) (m^(-2).s^(-1))",
"(neut_flux_cp)",
fwbs_variables.neut_flux_cp,
"OP ",
)
elif tfcoil_variables.i_tf_sup == 2:
po.osubhd(self.outfile, "(Aluminium magnet centrepost used)")
po.ovarre(
self.outfile,
"ST centrepost TF heating (MW)",
"(pnuc_cp_tf)",
fwbs_variables.pnuc_cp_tf,
"OP ",
)
po.ovarre(
self.outfile,
"ST centrepost shield heating (MW)",
"(p_cp_shield_nuclear_heat_mw)",
fwbs_variables.p_cp_shield_nuclear_heat_mw,
"OP ",
)
po.ovarre(
self.outfile,
"ST centrepost total heating (MW)",
"(pnuc_cp)",
fwbs_variables.pnuc_cp,
"OP ",
)
po.ovarre(
self.outfile,
"Total nuclear heating in TF+PF coils (CS is negligible) (MW)",
"(p_tf_nuclear_heat_mw)",
fwbs_variables.p_tf_nuclear_heat_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Total nuclear heating in FW (MW)",
"(p_fw_nuclear_heat_total_mw)",
fwbs_variables.p_fw_nuclear_heat_total_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Total nuclear heating in the blanket (including f_p_blkt_multiplication) (MW)",
"(p_blkt_nuclear_heat_total_mw)",
fwbs_variables.p_blkt_nuclear_heat_total_mw,
"OP ",
)
po.ocmmnt(
self.outfile,
"(Note: f_p_blkt_multiplication is fixed for this model inside the code)",
)
po.ovarre(
self.outfile,
"Total nuclear heating in the shield (MW)",
"(p_shld_nuclear_heat_mw)",
fwbs_variables.p_shld_nuclear_heat_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Total nuclear heating in the divertor (MW)",
"(p_div_nuclear_heat_total_mw)",
fwbs_variables.p_div_nuclear_heat_total_mw,
"OP ",
)
po.osubhd(self.outfile, " Diagostic output for nuclear heating :")
po.ovarre(
self.outfile,
"Blanket exponential factor",
"(exp_blanket)",
ccfe_hcpb_module.exp_blanket,
"OP ",
)
po.ovarre(
self.outfile,
"Shield: first exponential",
"(exp_shield1)",
ccfe_hcpb_module.exp_shield1,
"OP ",
)
po.ovarre(
self.outfile,
"Shield: second exponential",
"(exp_shield2)",
ccfe_hcpb_module.exp_shield2,
"OP ",
)
po.ovarre(
self.outfile,
"Solid angle fraction taken by on divertor",
"(f_ster_div_single)",
fwbs_variables.f_ster_div_single,
)
po.ovarre(
self.outfile,
"Fraction of outboard first wall area covered by HCD and diagnostics",
"(f_a_fw_outboard_hcd)",
fwbs_variables.f_a_fw_outboard_hcd,
)
po.ovarin(
self.outfile,
"Switch for plant secondary cycle ",
"(i_thermal_electric_conversion)",
fwbs_variables.i_thermal_electric_conversion,
)
po.ovarre(
self.outfile,
"First wall coolant pressure (Pa)",
"(pres_fw_coolant)",
fwbs_variables.pres_fw_coolant,
)
po.ovarre(
self.outfile,
"Blanket coolant pressure (Pa)",
"(pres_blkt_coolant)",
fwbs_variables.pres_blkt_coolant,
)
if fwbs_variables.i_p_coolant_pumping != 3:
po.ovarre(
self.outfile,
"Mechanical pumping power for first wall (MW)",
"(p_fw_coolant_pump_mw)",
heat_transport_variables.p_fw_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Mechanical pumping power for blanket (MW)",
"(p_blkt_coolant_pump_mw)",
heat_transport_variables.p_blkt_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Mechanical pumping power for divertor (MW)",
"(p_div_coolant_pump_mw)",
heat_transport_variables.p_div_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Mechanical pumping power for shield and vacuum vessel (MW)",
"(p_shld_coolant_pump_mw)",
heat_transport_variables.p_shld_coolant_pump_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Total electrical coolant pumping power: first wall, blanket, shield and divertor (MW)",
"(p_coolant_pump_elec_total_mw)",
heat_transport_variables.p_coolant_pump_elec_total_mw,
"OP ",
)
po.ovarre(
self.outfile,
"Allowable nominal neutron fluence at first wall (MW.year/m2)",
"(abktflnc)",
cost_variables.abktflnc,
)
po.ovarre(
self.outfile,
"Blanket half height (m)",
"(dz_blkt_half)",
blanket_vars.dz_blkt_half,
)
po.ovarre(
self.outfile,
"No of inboard blanket modules poloidally",
"(n_blkt_inboard_modules_poloidal)",
fwbs_variables.n_blkt_inboard_modules_poloidal,
)
po.ovarre(
self.outfile,
"No of inboard blanket modules toroidally",
"(n_blkt_inboard_modules_toroidal)",
fwbs_variables.n_blkt_inboard_modules_toroidal,
)
po.ovarre(
self.outfile,
"No of outboard blanket modules poloidally",
"(n_blkt_outboard_modules_poloidal)",
fwbs_variables.n_blkt_outboard_modules_poloidal,
)
po.ovarre(
self.outfile,
"No of outboard blanket modules toroidally",
"(n_blkt_outboard_modules_toroidal)",
fwbs_variables.n_blkt_outboard_modules_toroidal,
)
po.ovarre(
self.outfile,
"Isentropic efficiency of first wall / blanket coolant pumps",
"(etaiso)",
fwbs_variables.etaiso,
)
po.ovarre(
self.outfile,
"First wall area (m^2)",
"(a_fw_total)",
first_wall_variables.a_fw_total,
)
po.ovarre(
self.outfile,
"First wall area, no holes (m^2)",
"(a_fw_total_full_coverage)",
first_wall_variables.a_fw_total_full_coverage,
)
po.ovarre(
self.outfile,
"Divertor area (m2)",
"(a_div_surface_total)",
divertor_variables.a_div_surface_total,
)
po.ovarre(
self.outfile,
"Divertor mass (kg)",
"(m_div_plate)",
divertor_variables.m_div_plate,
)
|