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

scripts update

parent e30a7e7e
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ mvm = @(x) movmean(x,OPTIONS.NMVA); ...@@ -55,7 +55,7 @@ mvm = @(x) movmean(x,OPTIONS.NMVA);
FIGURE.fig = figure; FIGURE.FIGNAME = ['ZF_transport_drphi','_',DATA.PARAMS]; set(gcf, 'Position', [100, 100, 1000, 600]) FIGURE.fig = figure; FIGURE.FIGNAME = ['ZF_transport_drphi','_',DATA.PARAMS]; set(gcf, 'Position', [100, 100, 1000, 600])
subplot(311) subplot(311)
% yyaxis left % yyaxis left
% plot(mvm(DATA.Ts0D),mvm(DATA.PGAMMA_RI*SCALE),'DisplayName','$\langle n_i \partial_y\phi \rangle_y$'); hold on; plot(mvm(DATA.Ts0D),mvm(DATA.PGAMMA_RI*SCALE),'DisplayName','$\langle n_i \partial_y\phi \rangle_y$'); hold on;
% plot(mvm(DATA.Ts3D),mvm(Gx_t_mtlb),'DisplayName','matlab comp.'); hold on; % plot(mvm(DATA.Ts3D),mvm(Gx_t_mtlb),'DisplayName','matlab comp.'); hold on;
% plot(DATA.Ts0D(its0D:ite0D),ones(ite0D-its0D+1,1)*Gx_infty_avg, '-k',... % plot(DATA.Ts0D(its0D:ite0D),ones(ite0D-its0D+1,1)*Gx_infty_avg, '-k',...
% 'DisplayName',['$\Gamma^{\infty} = $',num2str(Gx_infty_avg),'$\pm$',num2str(Gx_infty_std)]); % 'DisplayName',['$\Gamma^{\infty} = $',num2str(Gx_infty_avg),'$\pm$',num2str(Gx_infty_std)]);
......
...@@ -11,7 +11,7 @@ system(['mkdir -p ',LOCALDIR]); ...@@ -11,7 +11,7 @@ system(['mkdir -p ',LOCALDIR]);
CMD = ['rsync ', LOCALDIR,'outputs* ',MISCDIR]; disp(CMD); CMD = ['rsync ', LOCALDIR,'outputs* ',MISCDIR]; disp(CMD);
system(CMD); system(CMD);
% Load outputs from jobnummin up to jobnummax % Load outputs from jobnummin up to jobnummax
JOBNUMMIN = 00; JOBNUMMAX = 01; JOBNUMMIN = 03; JOBNUMMAX = 20;
data = compile_results(MISCDIR,JOBNUMMIN,JOBNUMMAX); %Compile the results from first output found to JOBNUMMAX if existing data = compile_results(MISCDIR,JOBNUMMIN,JOBNUMMAX); %Compile the results from first output found to JOBNUMMAX if existing
data.localdir = LOCALDIR; data.localdir = LOCALDIR;
data.FIGDIR = LOCALDIR; data.FIGDIR = LOCALDIR;
...@@ -55,7 +55,7 @@ options.PLAN = 'xy'; ...@@ -55,7 +55,7 @@ options.PLAN = 'xy';
% options.PLAN = 'sx'; % options.PLAN = 'sx';
options.COMP = 1; options.COMP = 1;
% options.TIME = data.Ts5D(end-30:end); % options.TIME = data.Ts5D(end-30:end);
options.TIME = [0:500]; options.TIME = data.Ts3D(1:end);
% options.TIME = [350:600]; % options.TIME = [350:600];
data.EPS = 0.1; data.EPS = 0.1;
data.a = data.EPS * 2000; data.a = data.EPS * 2000;
...@@ -74,11 +74,11 @@ options.NAME = '\phi'; ...@@ -74,11 +74,11 @@ options.NAME = '\phi';
% options.NAME = 'T_i'; % options.NAME = 'T_i';
% options.NAME = '\Gamma_x'; % options.NAME = '\Gamma_x';
% options.NAME = 'k^2n_e'; % options.NAME = 'k^2n_e';
options.PLAN = 'xy'; options.PLAN = 'kxky';
% options.NAME 'f_i'; % options.NAME 'f_i';
% options.PLAN = 'sx'; % options.PLAN = 'sx';
options.COMP = 1; options.COMP = 1;
options.TIME = [40 80 100 200]; options.TIME = [20 100 200 600 1900];
data.a = data.EPS * 2e3; data.a = data.EPS * 2e3;
fig = photomaton(data,options); fig = photomaton(data,options);
% save_figure(data,fig) % save_figure(data,fig)
......
...@@ -26,6 +26,6 @@ helazdir = '/home/ahoffman/HeLaZ/'; ...@@ -26,6 +26,6 @@ helazdir = '/home/ahoffman/HeLaZ/';
% outfile = 'shearless_cyclone/64x32x16x5x3_CBC_CO/64x32x16x5x3_CBC_LRGK'; % outfile = 'shearless_cyclone/64x32x16x5x3_CBC_CO/64x32x16x5x3_CBC_LRGK';
%% ZPINCH %% ZPINCH
outfile ='Zpinch_rerun/Kn_2.0_200x48x5x3'; outfile ='Zpinch_rerun/Kn_2.5_200x48x5x3';
run analysis_HeLaZ run analysis_HeLaZ
...@@ -13,31 +13,32 @@ EXECNAME = 'helaz3'; ...@@ -13,31 +13,32 @@ EXECNAME = 'helaz3';
CLUSTER.TIME = '99:00:00'; % allocation time hh:mm:ss CLUSTER.TIME = '99:00:00'; % allocation time hh:mm:ss
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PHYSICAL PARAMETERS %% PHYSICAL PARAMETERS
NU = 0.1; % Collision frequency NU = 0.0; % Collision frequency
TAU = 1.0; % e/i temperature ratio TAU = 1.0; % e/i temperature ratio
K_N = 2.22; % Density gradient drive K_N = 2.0; % Density gradient drive
K_T = 6.96; % Temperature ''' K_T = 0.5; % Temperature '''
K_E = 0.0; % Electrostat ''' K_E = 0.0; % Electrostat '''
SIGMA_E = 0.05196152422706632;%0.0233380; % mass ratio sqrt(m_a/m_i) (correct = 0.0233380) % SIGMA_E = 0.05196152422706632; % mass ratio sqrt(m_a/m_i) (correct = 0.0233380)
KIN_E = 0; % 1: kinetic electrons, 2: adiabatic electrons SIGMA_E = 0.0233380; % mass ratio sqrt(m_a/m_i) (correct = 0.0233380)
KIN_E = 1; % 1: kinetic electrons, 2: adiabatic electrons
%% GRID PARAMETERS %% GRID PARAMETERS
PMAXE = 4; % Hermite basis size of electrons PMAXE = 4; % Hermite basis size of electrons
JMAXE = 2; % Laguerre " JMAXE = 2; % Laguerre "
PMAXI = 4; % " ions PMAXI = 4; % " ions
JMAXI = 2; % " JMAXI = 2; % "
NX = 20; % real space x-gridpoints NX = 1; % real space x-gridpoints
NY = 2; % '' y-gridpoints NY = 32; % '' y-gridpoints
LX = 100; % Size of the squared frequency domain LX = 100; % Size of the squared frequency domain
LY = 62.8319; % Size of the squared frequency domain LY = 60; % Size of the squared frequency domain
NZ = 32; % number of perpendicular planes (parallel grid) NZ = 1; % number of perpendicular planes (parallel grid)
NPOL = 1; NPOL = 1;
SG = 0; % Staggered z grids option SG = 0; % Staggered z grids option
%% GEOMETRY %% GEOMETRY
% GEOMETRY= 'Z-pinch'; % Z-pinch overwrites q0, shear and eps % GEOMETRY= 'Z-pinch'; % Z-pinch overwrites q0, shear and eps
GEOMETRY= 's-alpha'; GEOMETRY= 's-alpha';
Q0 = 1.4; % safety factor Q0 = 1.0; % safety factor
SHEAR = 0.8; % magnetic shear (Not implemented yet) SHEAR = 0.0; % magnetic shear (Not implemented yet)
EPS = 0.18; % inverse aspect ratio EPS = 0.0; % inverse aspect ratio
%% TIME PARMETERS %% TIME PARMETERS
TMAX = 50; % Maximal time unit TMAX = 50; % Maximal time unit
DT = 1e-2; % Time step DT = 1e-2; % Time step
...@@ -48,7 +49,7 @@ SPS5D = 1; % Sampling per time unit for 5D arrays ...@@ -48,7 +49,7 @@ SPS5D = 1; % Sampling per time unit for 5D arrays
SPSCP = 0; % Sampling per time unit for checkpoints SPSCP = 0; % Sampling per time unit for checkpoints
JOB2LOAD= -1; JOB2LOAD= -1;
%% OPTIONS %% OPTIONS
SIMID = 'linear_CBC'; % Name of the simulation SIMID = 'dbg'; % Name of the simulation
LINEARITY = 'linear'; % activate non-linearity (is cancelled if KXEQ0 = 1) LINEARITY = 'linear'; % activate non-linearity (is cancelled if KXEQ0 = 1)
% Collision operator % Collision operator
% (LB:L.Bernstein, DG:Dougherty, SG:Sugama, LR: Lorentz, LD: Landau) % (LB:L.Bernstein, DG:Dougherty, SG:Sugama, LR: Lorentz, LD: Landau)
...@@ -162,7 +163,7 @@ save_figure(gbms_dat,fig) ...@@ -162,7 +163,7 @@ save_figure(gbms_dat,fig)
end end
if 1 if 0
%% RH TEST %% RH TEST
ikx = 2; t0 = 0; t1 = data.Ts3D(end); ikx = 2; t0 = 0; t1 = data.Ts3D(end);
[~, it0] = min(abs(t0-data.Ts3D));[~, it1] = min(abs(t1-data.Ts3D)); [~, it0] = min(abs(t0-data.Ts3D));[~, it1] = min(abs(t1-data.Ts3D));
......
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