0001 function [ output_args ] = luke_disp_ohms_mt( equils, ohms, axs, style )
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 if nargin < 3 || ~ishandle(axs(1))
0025 figure;
0026 ax=gca();
0027 else
0028 ax = axs(1);
0029 end
0030
0031
0032 ntr=2;
0033
0034 Vloopunit='V';
0035 Vloopref=1;
0036 sVloopref=sprintf('%s',Vloopunit);
0037
0038
0039
0040 nohm=numel(ohms);
0041
0042 time=zeros(1,nohm);
0043 dat=zeros(ntr,nohm);
0044 for i=1:nohm
0045 time(i)=equils{i}.shotime;
0046
0047 dat(:,i)=ohms{i}.epsi([1 end])*2*pi*equils{i}.Rp/Vloopref;
0048 end
0049
0050 legstr={'core','edge'};
0051
0052
0053 if nargin < 4 || isempty(style),
0054 for j=1:ntr
0055 plot(ax,time,dat(j,:),gti_plot_symcol('sym',j,ntr),'Color',gti_plot_symcol('col',j,ntr));
0056 if(j==1)
0057 hold on;
0058 end
0059 end
0060 hold off;
0061 legend(legstr);
0062 YL=ylim;
0063 if(YL(1)>0)
0064 ylim([0 YL(2)]);
0065 elseif(YL(2)<0)
0066 ylim([YL(1) 0]);
0067 end
0068 else
0069 colors = {'r','b',[0,0.5,0],'k'};
0070 markers = {'s','d','+','o'};
0071 for j=1:ntr-1
0072 [ax] = graph1D_jd(time,dat(j,:),0,0,'','','',NaN,NaN,NaN,'-',markers{j},colors{j},2,style,ax);
0073 end
0074 [ax] = graph1D_jd(time,dat(ntr,:),0,0,'t (s)',sprintf('V_{loop}/%s',sVloopref),'',legstr,0,NaN,'-',markers{ntr},colors{ntr},2,style,ax);
0075 end
0076
0077
0078 if nargin < 3 || ~ishandle(axs(2))
0079 figure;
0080 ax=gca();
0081 else
0082 ax = axs(2);
0083 end
0084
0085 EoEc_0 = NaN(nohm,2);
0086 for i=1:nohm
0087 E_c = Ecritical_jd(equils{i},[0,1]);
0088 EoEc_0(1,i) = abs(ohms{i}.epsi(1))/E_c(1);
0089 EoEc_0(2,i) = abs(ohms{i}.epsi(end))/E_c(end);
0090 end
0091
0092 if nargin > 3 || ~isempty(style)
0093 colors = {'r','b',[0,0.5,0],'k'};
0094 markers = {'s','d','+','o'};
0095 for j=1:ntr-1
0096 [ax] = graph1D_jd(time,EoEc_0(j,:),0,0,'','','',NaN,NaN,NaN,'-',markers{j},colors{j},2,style,ax);
0097 end
0098 [ax] = graph1D_jd(time,EoEc_0(ntr,:),0,0,'t (s)','|E|/E_c','',legstr,0,NaN,'-',markers{ntr},colors{ntr},2,style,ax);
0099 end
0100
0101
0102
0103
0104
0105 end
0106