Skip to content
Snippets Groups Projects
Commit 79443f28 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann :seedling:
Browse files

update scripts for adiab ions

parent 000bf3ea
No related branches found
No related tags found
No related merge requests found
kN=2.22; kN=2.22;
figure figure
ERRBAR = 1; LOGSCALE = 0; ERRBAR = 0; LOGSCALE = 0; AU = 1;
resstr={}; resstr={};
msz = 10; lwt = 2.0; msz = 10; lwt = 2.0;
% CO = 'DGGK'; mrkstyl='d'; % CO = 'DGGK'; mrkstyl='d';
...@@ -66,7 +66,7 @@ for j = 1:numel(directories) ...@@ -66,7 +66,7 @@ for j = 1:numel(directories)
data = {}; data = {};
for i = 1:N for i = 1:N
subdir = subdirectories{i}; subdir = subdirectories{i};
data = compile_results_low_mem(data,subdir,00,10); data = compile_results_low_mem(data,subdir,00,20);
try try
Trange = data.Ts0D(end)*[0.5 1.0]; Trange = data.Ts0D(end)*[0.5 1.0];
catch % if data does not exist put 0 everywhere catch % if data does not exist put 0 everywhere
...@@ -79,8 +79,8 @@ for j = 1:numel(directories) ...@@ -79,8 +79,8 @@ for j = 1:numel(directories)
data.inputs.K_N = kN; data.inputs.K_N = kN;
data.inputs.NU = nus(i); data.inputs.NU = nus(i);
end end
Trange = data.Ts0D(end)*[0.5 1.0]; % Trange = data.Ts0D(end)*[0.5 1.0];
% Trange = [200 400]; Trange = [200 400];
% %
[~,it0] = min(abs(Trange(1) -data.Ts0D)); [~,it0] = min(abs(Trange(1) -data.Ts0D));
[~,it1] = min(abs(Trange(end)-data.Ts0D)); [~,it1] = min(abs(Trange(end)-data.Ts0D));
...@@ -93,6 +93,9 @@ for j = 1:numel(directories) ...@@ -93,6 +93,9 @@ for j = 1:numel(directories)
subplot(N,2,2*i-1) subplot(N,2,2*i-1)
hold on; hold on;
Qx = data.HFLUX_X; Qx = data.HFLUX_X;
if AU
Qx = Qx./max(Qx);
end
T = data.Ts0D; T = data.Ts0D;
% Plot heatflux vs time % Plot heatflux vs time
plot(T,Qx,'DisplayName',[scanvarname,'=',num2str(x(i))],... plot(T,Qx,'DisplayName',[scanvarname,'=',num2str(x(i))],...
......
File moved
File moved
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