From 1558f61925ff9c4e63bc4b65b6c44e3d92f54422 Mon Sep 17 00:00:00 2001
From: Antonia Frank <antonia.frank@epfl.ch>
Date: Wed, 14 Aug 2024 09:51:52 +0200
Subject: [PATCH] Correct comment for TORAY to j_par transformation

---
 matlab/TCV_IMAS/tcv_get_ids_core_sources.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/matlab/TCV_IMAS/tcv_get_ids_core_sources.m b/matlab/TCV_IMAS/tcv_get_ids_core_sources.m
index 445fdfe3..96e8def3 100644
--- a/matlab/TCV_IMAS/tcv_get_ids_core_sources.m
+++ b/matlab/TCV_IMAS/tcv_get_ids_core_sources.m
@@ -173,7 +173,9 @@ if ~isempty(ec_gdat.ec.data) % if EC data available, fill sources
   end
 
   % load LIUQE data to convert
-  % \tilde{j}_// = <jdotB>/(R0<Bphi/R>) to j_//0 = <jdotB>/B0; Bphi=T(psi)/R
+  % \tilde{V,TORAY}_// = dI_\phi/dV = (1/2\pi)<j_\phi/R> to j_//0 = <jdotB>/B0;
+  % conversion using j_//,cd = <j_cd/B> B, thus
+  % j_// = 2\pi <B^2> / (R_0 <B_\phi/R>^2)
   [L,~,LY] = liuqe(shot,ec_tgrid_toray,'iterq',50,'ilim',3,'icsint',true);
   rho_pol_norm_liu = L.pQ; % normalized sqrt poloidal flux including axis
   mu0     = 4*pi*10^-7;
-- 
GitLab