Find the curvilinear couple associated to a cartesian one INPUT - equil_fit: interpolated structure - x : Cartesian coordinate x - y : Cartesian coordinate y
0001 function [x,y] = rhotheta2xy_gb(equil_fit,rho,theta) 0002 % 0003 % Find the curvilinear couple associated to a cartesian one 0004 % 0005 % INPUT 0006 % - equil_fit: interpolated structure 0007 % - x : Cartesian coordinate x 0008 % - y : Cartesian coordinate y 0009 0010 % OUTPUT: 0011 % - rho : Normalized radial coordinate 0012 % - theta : Poloidal angle 0013 0014 % By Guillaume Brochard (CEA-IRFM, guillaume.brochard@cea.fr) 0015 data = equilval_yp(equil_fit,rho,theta); 0016 x = data.x; 0017 y = data.y; 0018 end