New smoothing procedure for radial electric field is implemented


New procedure for smoothing of radial electric field profile is implemented in the fmcfm_call routine. Different levels of smoothing is applied in the plasma core and in the plasma edge. The radial electric field profile in the plasma edge is smoothed fm_nsmooth times together other plasma profiles such as electron and ion temperatures and plasma density profiles. The radial electric field in the plasma core is smoothed fm_nsmooth_er times. The new smoothed profiles are merge together using the following formula:

{Huge E_r} = displaystylefrac{1}{2} left[ E_r^{rm core} left( 1 -  tanh(C_{er} (rho-rho_b)) )  + E_r^{rm edge} ( 1 + tanh(C_{er} (rho-rho_b)) right) right]

and used in the computation of the ExB flow shear. Here, C_{er} is the coefficient that describes sharpness of the transition between two smoothed profiles The fm_smooth_er_coef is used to set this coefficient in the XGC-0 code through the namelist. The rho_b parameter controls the location of the transition. The fm_smooth_er_rhob variable is used to set this parameter in the code. The default values for these parameters are: C_{er}=75 and rho_b=0.95.