-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinitPlasma.m
32 lines (31 loc) · 1.67 KB
/
initPlasma.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function plasma = initPlasma()
plasma =struct(... % A struct which will contain the system config variables
'EQ',[], ... % equilibrium (either 'Solovev' or a filename)
'MODEL',[], ... % dispersion equation model (msw1x1, cld2x2, cld3x3, etc)
'PROBL',[], ... % problem (tok=tokamak, oth=Steve define your own)
'acharge',[], ...% atomic charge of species (e.g. -1 for electron)
'amass',[], ... % atomic mass of species (e.g. 4 for helium)
'b0',[], ... % magnetic field on axis
'elong',[], ... % plasma elongation
'freq',[], ... % antenna linear frequency
'iaspr',[], ... % plasma inverse aspect ratio
'psin',[], ... % magnetic flux at the plasma edge for normalization
'q0',[], ... % plasma safety factor on axis
'r0',[], ... % plasma major radius
'n0',[], ... % densities on axis
'na',[], ... % densities profile factor in n=n0*(1-na*s^2)^nb
'nb',[], ... % densities profile factor in n=n0*(1-na*s^2)^nb
't0',[], ... % temperatures on axis
'ta',[], ... % temperatures profile factor in t=t0*(1-ta*s^2)^tb
'tb',[], ... % temperatures profile factor in t=t0*(1-ta*s^2)^tb
'kant',[], ... % antenna wave vector in (r,phi,z)
'sant',[], ... % antenna normalized radius
'thant',[], ... % antenna lower and upper poloidal angles
'omega',[], ... % antenna circular frequency
'r',[],...
'z',[],...
'Rho',[],...
'Theta',[],...
's',[], ... % normalized radial mesh
'theta',[], ... % poloidal mesh
'depo',[]); % radial deposition profiles per species