g_to_f0 Subroutine

private subroutine g_to_f0(g, phi, f)

the Fourier components of the guiding centre distribution function normalized by the equilibrium Maxwellian is passed in as g, along with the Fourier components of the electrostatic potential, phi. g_to_f calculates the Maxwellian-normalized distribution function f, which is related to g via f = g + (Ze/T)*(_R - phi)

compute phi * maxwellian in real space and transform back to k-space

phiy = maxwellian * ( - phi) Put this back into k-space for future calculations calculate the normalized f, given phi and _R (temporarily stored in f)

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension(:, :, -nzgrid:, :, vmu_lo%llim_proc:) :: g
complex, intent(in), dimension(:, :, -nzgrid:, :) :: phi
complex, intent(out), dimension(:, :, -nzgrid:, :, vmu_lo%llim_proc:) :: f