divertor_model.m
SYNTAX: [nec,Wth,Qtard,nec2,nrc2,nrd2,output_data]=
divertor_model(Gamec,Gamrc,Gamrd,nec1,nrc1,nrd1,dt);
PURPOSE: Model evolution of divertor (and core) plasma states in response
to changing gas flow rates. Outputs quantities useful to
measure for active feedback control of divertor (and core)
properties. Evolves single time step on call
INPUTS:
Gamec = core fueling gas flow rate (hydrogenic, so same as electron)
[atoms/m^3/sec = electrons/m^3/sec]
Gamrc = core radiating impurity (RI) flow rate [atoms/m^3/sec]
Gamrd = divertor radiating impurity flow rate [atoms/m^3/sec]
nec1 = initial core electron density [electrons/m^3]
nrc1 = initial core RI density [ions/m^3]
nrd1 = initial divertor RI density [ions/m^3]
dt = time step [sec]
OUTPUTS:
nec = present core electron density output (same as nec2) [electrons/m^3]
Wth = core thermal stored energy output [J]
Qtard = heat flux to divertor target output [W/s]
nec2 = core electron density after time step dt [electrons/m^3]
nrc2 = core RI density after time step dt [ions/m^3]
nrd2 = divertor RI density after time step dt [ions/m^3]
output_data = structure with useful data to provide to analyze output:
Pradc, Pradd
RESTRICTIONS:
METHOD:
State equations are the three continuity equations for nec, nrc, nrd.
Output equations describe Wth Qtard as function of input heating power Pheat and
radiated core power Pradc. nec is the third output variable.
Pradc represented by Bremsstrahlung-like expression including both core
electron-electron and electron-impurity collisions. Pradd (radiation
from divertor) represented by empirical function to capture observed
behavior of ionization/density front up and along divertor legs, with
corresponding maximum in radiation as function of upstream density (nec).
Scale factor of 150 makes function produce ~ 1 MW total rad pwr
for 2 keV, 2e19 plasma w/ no impurity...
Pradd coeff Crd is chosen so 2e19 core density makes ~1.5 MW rad in div
State equations evolved by implicit scheme (exponential solution over time step)
Dependencies