|
67 | 67 | "With Newton-Raphson stepper and adaptive timestep (backtracking)\n",
|
68 | 68 | "\"\"\"\n",
|
69 | 69 | "\n",
|
70 |
| - "_NBI_MW_TO_A = 1/16e6 # rough estimate of NBI heating power to current drive\n", |
| 70 | + "_NBI_W_TO_MA = 1/16e6 # rough estimate of NBI heating power to current drive\n", |
71 | 71 | "W_to_Ne_ratio = 0\n",
|
72 | 72 | "\n",
|
73 | 73 | "# No NBI during rampup. Rampup all NBI power between 99-100 seconds\n",
|
74 | 74 | "nbi_times = np.array([0, 99, 100])\n",
|
75 | 75 | "nbi_powers = np.array([0, 0, 33e6])\n",
|
76 |
| - "nbi_cd = nbi_powers * _NBI_MW_TO_A\n", |
| 76 | + "nbi_cd = nbi_powers * _NBI_W_TO_MA\n", |
77 | 77 | "\n",
|
78 |
| - "# Gaussian perscription of \"NBI\" deposition profiles and fractional deposition\n", |
| 78 | + "# Gaussian prescription of \"NBI\" deposition profiles and fractional deposition\n", |
79 | 79 | "r_nbi = 0.25\n",
|
80 | 80 | "w_nbi = 0.25\n",
|
81 | 81 | "el_heat_fraction = 0.66\n",
|
|
697 | 697 | " config['runtime_params']['profile_conditions']['Ip_tot'] = {0: 3, LH_transition_time: 12.5}\n",
|
698 | 698 | " config['sources']['electron_cyclotron_source']['gaussian_ec_total_power'] = {0: 0, LH_transition_time-1: 0, LH_transition_time: 20.0e6}\n",
|
699 | 699 | " config['sources']['generic_ion_el_heat_source']['Ptot'] = {0: 0, LH_transition_time-1: 0, LH_transition_time: 33.0e6}\n",
|
| 700 | + " config['sources']['generic_current_source']['Iext'] = {0: 0, LH_transition_time-1: 0, LH_transition_time: 33.0e6 * _NBI_W_TO_MA}\n", |
700 | 701 | " config['pedestal']['Tiped'] = {0: 0.5, LH_transition_time: 0.5, LH_transition_time+5: 3.0}\n",
|
701 | 702 | " config['pedestal']['Teped'] = {0: 0.5, LH_transition_time: 0.5, LH_transition_time+5: 3.0}\n",
|
702 | 703 | " return config\n",
|
|
773 | 774 | " if nbi_power is not None:\n",
|
774 | 775 | " _validate_input_dict(nbi_power, \"nbi_power\", (0.0, 33e6), \"W\")\n",
|
775 | 776 | " config['sources']['generic_ion_el_heat_source']['Ptot'] = nbi_power\n",
|
776 |
| - " nbi_current = {time: value*_NBI_MW_TO_A for time, value in nbi_power.items()}\n", |
| 777 | + " nbi_current = {time: value*_NBI_W_TO_MA for time, value in nbi_power.items()}\n", |
777 | 778 | " config['sources']['generic_current_source']['Iext'] = nbi_current\n",
|
778 | 779 | " if off_axis_ec_power is not None:\n",
|
779 | 780 | " _validate_input_dict(off_axis_ec_power, \"off_axis_ec_power\", (0.0, 40e6), \"W\")\n",
|
|
0 commit comments