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 | def winding_pack_total_size(
r_coil_major: float, r_coil_minor: float, coilcurrent: float
):
# Winding Pack total size:
n_it = 200 # number of iterations
rhs = np.zeros((n_it,))
lhs = np.zeros((n_it,))
jcrit_vector = np.zeros((n_it,))
wp_width_r = np.zeros((n_it,))
b_max_k = np.zeros((n_it,))
for k in range(n_it):
# Sample coil winding pack
wp_width_r[k] = (r_coil_minor / 40.0e0) + (k / (n_it - 1e0)) * (
r_coil_minor / 1.0e0 - r_coil_minor / 40.0e0
)
if tfcoil_variables.i_tf_sc_mat == 6:
wp_width_r[k] = (r_coil_minor / 150.0e0) + (k / (n_it - 1e0)) * (
r_coil_minor / 1.0e0 - r_coil_minor / 150.0e0
)
# B-field calculation
b_max_k[k] = bmax_from_awp(
wp_width_r[k],
coilcurrent,
tfcoil_variables.n_tf_coils,
r_coil_major,
r_coil_minor,
)
# Two margins can be applied for jcrit: direct or by temperature margin.
# Temperature margin is implemented in the jcrit_vector definition,
# direct margin is implemented after jcrit is defined (equation below)
# jcrit for this bmax:
jcrit_vector[k] = jcrit_from_material(
b_max_k[k],
tfcoil_variables.tftmp + tfcoil_variables.tmargmin,
tfcoil_variables.i_tf_sc_mat,
tfcoil_variables.b_crit_upper_nbti,
tfcoil_variables.bcritsc,
tfcoil_variables.f_a_tf_turn_cable_copper,
tfcoil_variables.fhts,
tfcoil_variables.t_crit_nbti,
tfcoil_variables.tcritsc,
tfcoil_variables.f_a_tf_turn_cable_space_extra_void,
tfcoil_variables.j_tf_wp,
) # Get here a temperature margin from tfcoil_variables.tmargtf.
# The operation current density weighted with the global iop/icrit fraction
lhs[:] = constraint_variables.fiooic * jcrit_vector
# Superconductor fraction in wp
fraction_area_superconductor_of_wp = (
(
tfcoil_variables.a_tf_turn_cable_space_no_void
* (1.0e0 - tfcoil_variables.f_a_tf_turn_cable_space_extra_void)
)
* (1.0e0 - tfcoil_variables.f_a_tf_turn_cable_copper)
/ (tfcoil_variables.dx_tf_turn_general**2)
)
# print *, "f_a_scu_of_wp. ",f_a_scu_of_wp,"Awp min: ",Awp(1)
rhs[:] = coilcurrent / (
wp_width_r**2
/ stellarator_configuration.stella_config_wp_ratio
* fraction_area_superconductor_of_wp
) # f_a_scu_of_wp should be the fraction of the sc that is in the winding pack.
wp_width_r_min = (
r_coil_minor / 10.0e0
) ** 2 # Initial guess for intersection routine
if tfcoil_variables.i_tf_sc_mat == 6:
wp_width_r_min = (
r_coil_minor / 20.0e0
) ** 2 # If REBCO, : start at smaller winding pack ratios
# Find the intersection between LHS and RHS (or: how much awp do I need to get to the desired coil current)
wp_width_r_min = intersect(wp_width_r, lhs, wp_width_r, rhs, wp_width_r_min)
# Maximum field at superconductor surface (T)
wp_width_r_min = max(tfcoil_variables.dx_tf_turn_general**2, wp_width_r_min)
# Recalculate tfcoil_variables.b_tf_inboard_peak_symmetric at the found awp_min:
tfcoil_variables.b_tf_inboard_peak_symmetric = bmax_from_awp(
wp_width_r_min,
coilcurrent,
tfcoil_variables.n_tf_coils,
r_coil_major,
r_coil_minor,
)
# Winding pack toroidal, radial cross-sections (m)
awp_tor = (
wp_width_r_min / stellarator_configuration.stella_config_wp_ratio
) # Toroidal dimension
awp_rad = wp_width_r_min # Radial dimension
tfcoil_variables.dx_tf_wp_primary_toroidal = (
awp_tor # [m] toroidal thickness of winding pack
)
tfcoil_variables.dx_tf_wp_secondary_toroidal = (
awp_tor # [m] toroidal thickness of winding pack (region in front)
)
tfcoil_variables.dr_tf_wp_with_insulation = (
awp_rad # [m] radial thickness of winding pack
)
# [m^2] winding-pack cross sectional area including insulation (not global)
a_tf_wp_with_insulation = (
tfcoil_variables.dr_tf_wp_with_insulation
+ 2.0e0 * tfcoil_variables.dx_tf_wp_insulation
) * (
tfcoil_variables.dx_tf_wp_primary_toroidal
+ 2.0e0 * tfcoil_variables.dx_tf_wp_insulation
)
a_tf_wp_no_insulation = awp_tor * awp_rad # [m^2] winding-pack cross sectional area
tfcoil_variables.j_tf_wp = (
coilcurrent * 1.0e6 / a_tf_wp_no_insulation
) # [A/m^2] winding pack current density
tfcoil_variables.n_tf_coil_turns = a_tf_wp_no_insulation / (
tfcoil_variables.dx_tf_turn_general**2
) # estimated number of turns for a given turn size (not global). Take at least 1.
tfcoil_variables.c_tf_turn = (
coilcurrent * 1.0e6 / tfcoil_variables.n_tf_coil_turns
) # [A] current per turn - estimation
# [m^2] Total conductor cross-sectional area, taking account of void area
tfcoil_variables.a_tf_wp_conductor = (
tfcoil_variables.a_tf_turn_cable_space_no_void
* tfcoil_variables.n_tf_coil_turns
* (1.0e0 - tfcoil_variables.f_a_tf_turn_cable_space_extra_void)
)
# [m^2] Void area in cable, for He
tfcoil_variables.a_tf_wp_extra_void = (
tfcoil_variables.a_tf_turn_cable_space_no_void
* tfcoil_variables.n_tf_coil_turns
* tfcoil_variables.f_a_tf_turn_cable_space_extra_void
)
# [m^2] Insulation area (not including ground-wall)
tfcoil_variables.a_tf_coil_wp_turn_insulation = tfcoil_variables.n_tf_coil_turns * (
tfcoil_variables.dx_tf_turn_general**2
- tfcoil_variables.a_tf_turn_steel
- tfcoil_variables.a_tf_turn_cable_space_no_void
)
# [m^2] Structure area for cable
tfcoil_variables.a_tf_wp_steel = (
tfcoil_variables.n_tf_coil_turns * tfcoil_variables.a_tf_turn_steel
)
return (
awp_rad,
a_tf_wp_no_insulation,
a_tf_wp_with_insulation,
fraction_area_superconductor_of_wp,
)
|