pub fn mtanh_profile(psi_norm: f64, params: &ProfileParams) -> f64Expand description
mTanh profile: f(psi_n) = 0.5 * h * (1 + tanh(y)) + alpha * core(psi_n) y = (ped_top - psi_n) / ped_width core(psi_n) = max(0, 1 - (psi_n/ped_top)^2)
pub fn mtanh_profile(psi_norm: f64, params: &ProfileParams) -> f64mTanh profile: f(psi_n) = 0.5 * h * (1 + tanh(y)) + alpha * core(psi_n) y = (ped_top - psi_n) / ped_width core(psi_n) = max(0, 1 - (psi_n/ped_top)^2)