plot_profiles

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 close all
0002 clear all
0003 %cd('D:\Furno\Matlab\TORPEX\RFSCAT\Magnetic_field')
0004 if 0
0005 load Data4IvoRFSCAT
0006 [X,Y]=meshgrid(linspace(-0.2,0.2,50),linspace(-0.2,0.2,50));
0007 Ne=griddata(x/1000,y/1000,ne,X,Y);
0008 figure(1)
0009 contourf(X,Y,Ne)
0010 colorbar
0011 xlabel('X[m]')
0012 ylabel('Z[m]')
0013 title('electron density [m^{-3}]')
0014 
0015 figure(2)
0016 Te=griddata(x/1000,y/1000,te,X,Y);
0017 contourf(X,Y,Te)
0018 colorbar
0019 xlabel('X[m]')
0020 ylabel('Z[m]')
0021 title('electron temperature [eV]')
0022 
0023 end
0024 
0025 % plot of the toroidal component of the magnetic field
0026 load -ascii B_Tbc_y.txt
0027 figure(3)
0028 x=B_Tbc_y(1,:);
0029 y=B_Tbc_y(2,:);
0030 [X,Y]=meshgrid(x,y);
0031 contourf(X,Y,B_Tbc_y(3:end,:))
0032 colorbar
0033 xlabel('X[m]')
0034 ylabel('Z[m]')
0035 title('Toroidal magnetic field, B_y[Tesla]')
0036 
0037 % plot of the radial component of the magnetic field
0038 load -ascii B_V_x.txt
0039 figure(4)
0040 x=B_V_x(1,:);
0041 y=B_V_x(2,:);
0042 [X,Y]=meshgrid(x,y);
0043 contourf(X,Y,B_V_x(3:end,:))
0044 colorbar
0045 xlabel('X[m]')
0046 ylabel('Z[m]')
0047 title('Radial magnetic field, B_X[Tesla]')
0048 
0049 
0050 % plot of the toroidal component of the magnetic field
0051 load -ascii B_V_Z.txt
0052 figure(5)
0053 x=B_V_Z(1,:);
0054 y=B_V_Z(2,:);
0055 [X,Y]=meshgrid(x,y);
0056 contourf(X,Y,B_V_Z(3:end,:))
0057 colorbar
0058 xlabel('X[m]')
0059 ylabel('Z[m]')
0060 title('Vertical magnetic field, B_Z[Tesla]')
0061 
0062 
0063 load -ascii ne.txt
0064 figure(6)
0065 x=ne(1,:);
0066 y=ne(2,:);
0067 [X,Y]=meshgrid(x,y);
0068 contourf(X,Y,ne(3:end,:))
0069 colorbar
0070 xlabel('X[m]')
0071 ylabel('Z[m]')
0072 title('Interpolated electron density, n_e[m^{-3}]')
0073 
0074

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.