Skip to content
Snippets Groups Projects
Commit bac56c18 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

make rhopol x-coordinate of all radial dependecies

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11877 d63d8f72-b253-0410-a779-e742ad2e26cf
parent b9830b26
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,7 @@ ylabel('Te') ...@@ -118,6 +118,7 @@ ylabel('Te')
subplot(2,1,2) subplot(2,1,2)
plot(zzz.ne(:,1),zzz.ne(:,2)) plot(zzz.ne(:,1),zzz.ne(:,2))
ylabel('ne') ylabel('ne')
xlabel('rhopol')
figure; figure;
subplot(2,1,1) subplot(2,1,1)
...@@ -126,6 +127,7 @@ ylabel('Pdens') ...@@ -126,6 +127,7 @@ ylabel('Pdens')
subplot(2,1,2) subplot(2,1,2)
plot(zzz.t2_new_LIB(:,1),zzz.t2_new_LIB(:,3)) plot(zzz.t2_new_LIB(:,1),zzz.t2_new_LIB(:,3))
ylabel('jcd') ylabel('jcd')
xlabel('rhopol')
figure figure
theta=linspace(0,2.*pi,300); theta=linspace(0,2.*pi,300);
......
...@@ -163,7 +163,7 @@ end ...@@ -163,7 +163,7 @@ end
% run TORBEAM % run TORBEAM
current_dir = pwd; current_dir = pwd;
eval(['cd ' torbeam_in.dir_torbeam]) eval(['cd ' torbeam_in.dir_torbeam])
% namelist, ol proj 3 rays(R,z)*100, not used now, tor proj 3 rays(R,Y), vol() dP/dV(r/a) j(r/a) % namelist, ol proj 3 rays(R,z)*100, not used now, tor proj 3 rays(R,Y), vol() dP/dV(rhopol) j(rhopol)
%tb_out_files_to_cp = {'echo.dat', 't1_LIB.dat', 't2_LIB.dat', 't1tor_LIB.dat', 'volumes.dat', 't2_new_LIB.dat', 'cntpr.dat'}; %tb_out_files_to_cp = {'echo.dat', 't1_LIB.dat', 't2_LIB.dat', 't1tor_LIB.dat', 'volumes.dat', 't2_new_LIB.dat', 'cntpr.dat'};
tb_out_files_to_cp = {'t1_LIB.dat', 't1tor_LIB.dat', 'volumes.dat', 't2_new_LIB.dat'}; tb_out_files_to_cp = {'t1_LIB.dat', 't1tor_LIB.dat', 'volumes.dat', 't2_new_LIB.dat'};
tb_out_files_to_cp_varname = strrep(tb_out_files_to_cp,'.dat',''); tb_out_files_to_cp_varname = strrep(tb_out_files_to_cp,'.dat','');
...@@ -190,8 +190,8 @@ for it_eff=1:length(times_for_torbeam_eff) ...@@ -190,8 +190,8 @@ for it_eff=1:length(times_for_torbeam_eff)
ima = findstr('(MA)',b); ima = findstr('(MA)',b);
torbeam_out.icd(ibeam,it_eff) = 1e6 * sscanf(b(ima+4:end),'%f',1); torbeam_out.icd(ibeam,it_eff) = 1e6 * sscanf(b(ima+4:end),'%f',1);
imaxat = findstr('max. at',b); imaxat = findstr('max. at',b);
torbeam_out.pabs_roamax(ibeam,it_eff) = sscanf(b(imaxat(1)+7:end),'%f',1); torbeam_out.pabs_rhopolmax(ibeam,it_eff) = sscanf(b(imaxat(1)+7:end),'%f',1);
torbeam_out.icd_roamax(ibeam,it_eff) = sscanf(b(imaxat(2)+7:end),'%f',1); torbeam_out.icd_rhopolmax(ibeam,it_eff) = sscanf(b(imaxat(2)+7:end),'%f',1);
for j=1:length(tb_out_files_to_cp) for j=1:length(tb_out_files_to_cp)
torbeam_out.(tb_out_files_to_cp_varname{j}){ibeam,it_eff} = load(fullfile(torbeam_in.dir_torbeam,[tb_out_files_to_cp{j}])); torbeam_out.(tb_out_files_to_cp_varname{j}){ibeam,it_eff} = load(fullfile(torbeam_in.dir_torbeam,[tb_out_files_to_cp{j}]));
end end
...@@ -214,11 +214,11 @@ for ibeam=find(any(torbeam_out.run_torbeam,2))' ...@@ -214,11 +214,11 @@ for ibeam=find(any(torbeam_out.run_torbeam,2))'
plot(squeeze(torbeam_out.pdens_jcd_rho(:,ibeam,:)),squeeze(torbeam_out.pdens(:,ibeam,:))) plot(squeeze(torbeam_out.pdens_jcd_rho(:,ibeam,:)),squeeze(torbeam_out.pdens(:,ibeam,:)))
title(['AUG shot #' num2str(shot) ': for beam = ' num2str(ibeam)]) title(['AUG shot #' num2str(shot) ': for beam = ' num2str(ibeam)])
ylabel('Pdens') ylabel('Pdens')
xlabel('r/a') xlabel('rhopol')
subplot(2,1,2) subplot(2,1,2)
plot(squeeze(torbeam_out.pdens_jcd_rho(:,ibeam,:)),squeeze(torbeam_out.jcd(:,ibeam,:))) plot(squeeze(torbeam_out.pdens_jcd_rho(:,ibeam,:)),squeeze(torbeam_out.jcd(:,ibeam,:)))
ylabel('jcd') ylabel('jcd')
xlabel('r/a') xlabel('rhopol')
end end
figure figure
...@@ -233,8 +233,8 @@ plot(torbeam_out.t,torbeam_out.icd/1e6,'*-') ...@@ -233,8 +233,8 @@ plot(torbeam_out.t,torbeam_out.icd/1e6,'*-')
ylabel('Icd [MA]') ylabel('Icd [MA]')
subplot(3,1,3) subplot(3,1,3)
plot(torbeam_out.t,torbeam_out.pabs_roamax,'*-') plot(torbeam_out.t,torbeam_out.pabs_rhopolmax,'*-')
ylabel('r(max Pdens) / a') ylabel('rhopol(max Pdens)')
xlabel('t [s]') xlabel('t [s]')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment