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

to read transport from out_XX.txt files

parent 5832f8e5
No related branches found
No related tags found
No related merge requests found
function [t_all, Pxi_all, Qxi_all] = read_flux_out_XX(folderPath,PLOT)
function [t_all, Pxi_all, Qxi_all, Pxe_all, Qxe_all] = read_flux_out_XX(folderPath,PLOT)
% Check if the prompt_string is provided as an argument
if nargin < 1
% If not provided, prompt the user for input
......@@ -74,16 +74,20 @@ function [t_all, Pxi_all, Qxi_all] = read_flux_out_XX(folderPath,PLOT)
if PLOT
figure
subplot(211)
plot(t_all,Pxi_all,'r','DisplayName','$\Gamma_{xi}$'); hold on;
plot(t_all,Pxi_all,'r','DisplayName','ions'); hold on;
if(numel(t_all)==numel(Pxe_all))
plot(t_all,Pxe_all,'b','DisplayName','$\Gamma_{xe}$'); hold on;
plot(t_all,Pxe_all,'-.b','DisplayName','electrons'); hold on;
end
title('Particle flux')
xlabel('$tc_s/R$'); ylabel('$\Gamma_{x}$');
legend('show')
title('Radial particle flux')
subplot(212)
plot(t_all,Qxi_all,'r','DisplayName','$Q_{xi}$'); hold on;
plot(t_all,Qxi_all,'r','DisplayName','ions'); hold on;
if(numel(t_all)==numel(Qxe_all))
plot(t_all,Qxe_all,'b','DisplayName','$Q_{xe}$'); hold on;
plot(t_all,Qxe_all,'-.b','DisplayName','electrons'); hold on;
end
title('Heat flux')
xlabel('$tc_s/R$'); ylabel('$Q_{x}$');
legend('show');
title('Radial heat flux')
end
end
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