get_max_valid_l_c Function

public function get_max_valid_l_c(bounce_integrals, Omega_hat) result(l_c_max)

Longest l_c for which the flux modes are resolved by the eta grid (m=1). For large l_c*Omega_hat the solution is confined to a layer at eta_c of width delta^2 = eta_c I_B/(|kappa| tau_b) with kappa = l_c nfp Omega_hat/(2 (M iota - N)); the layer has to contain at least min_points_in_layer grid points (eta - eta_c = k^2 x_1). The weak log dependence of tau_b on delta is neglected.

Arguments

Type IntentOptional Attributes Name
type(bounce_integrals_t), intent(in) :: bounce_integrals
real(kind=dp), intent(in) :: Omega_hat

Return Value real(kind=dp)