make_wave_C3POparam

PURPOSE ^

C3PO RAY TRACING DEFAULT PARAMETERS

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 C3PO RAY TRACING DEFAULT PARAMETERS


 Equilibrium parameters for the ray-tracing

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %
0002 % C3PO RAY TRACING DEFAULT PARAMETERS
0003 %
0004 %
0005 % Equilibrium parameters for the ray-tracing
0006 %
0007 fitparam.method = 'spline';%nearest,spline,pchip
0008 fitparam.nharm = NaN;%Number of harmonics in the magnetic equilibrium interpolation (less than ntheta_equil/2)
0009 fitparam.ngridresample = 1001;%Number of grid points for resampling the radial profile of magnetic equilibrium parameters
0010 fitparam.opt_load = 0;%Reload existing vectorial magnetic equilibrium (1) or overwrite it (0).
0011 fitparam.mode_equil = 1;%Magnetic equilibrium grid type: (1): (psi-theta), (2): (x-y)
0012 %
0013 % Global parameters for the ray-tracing
0014 %
0015 rayparam.testmode = 0;
0016 rayparam.tensortype = 0;%(0:cold,1:warm,2:hot;3:weak realtivistic,4:full relativistic)
0017 rayparam.t0 = 0;
0018 rayparam.tfinal = 50000;
0019 rayparam.dt0 = 1.e-4;
0020 rayparam.dS = 1.e-3;
0021 rayparam.tol = 1e-12;%when tolerance is increased (less accurate calculation of D=0), tfinal must be increased accordingly
0022 rayparam.kmax = 50000;
0023 rayparam.ncyclharm = 3;%number of cyclotron harmonics (just for hot and relativistic dielectric tensors)
0024 rayparam.reflection = 0;%1:Enforce wave reflection at plasma boundary, 0: the code calculates itself if the ray must leave of not the plasma
0025 rayparam.rel_opt = 1;%option for (1) relativistic or (0) non-relativistic calculations
0026 rayparam.nperp = 1000;%number of points in pperp integration for damping calculations
0027 rayparam.pperpmax = 10;%maximum value of pperp in damping calculations
0028 rayparam.tau_lim = Inf;%value of optical depth beyond which the wave is considered absorbed
0029 rayparam.kextra = 1000;%extra points if QL absorption is delayed
0030 rayparam.colldamp = 1;%non-resonant collisional damping -> (1) actived (default), (0) not activated
0031 %
0032 % C3PO computing parameters
0033 %
0034 C3POparam.clustermode.main_C3PO_jd.scheduler.mode = 0;%MatLab distributed computing environment disabled (0), enabled with the dedicated toolbox (1), enabled with a private method (2) for the function coll_dke_jd.m (MDC toolbox must be installed for option 1)
0035 C3POparam.clustermode.main_C3PO_jd.scheduler.memory = 500;%required memory (in mb)
0036 %
0037 save('C3POPARAM.mat','fitparam','rayparam','C3POparam');
0038

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.