Skip to content
Snippets Groups Projects
Commit ccf2889f authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann
Browse files

interface change

parent d13bdf73
No related branches found
No related tags found
No related merge requests found
%% Load results %% Load results
if 0 if 1
%% %%
outfile = '/marconi_scratch/userexternal/ahoffman/HeLaZ/results/Marconi/512x256_L_100_Pe_6_Je_3_Pi_6_Ji_3_nB_0.8_nN_1_nu_1e-01_FC_mu_5e-04/out.txt'; outfile = '/marconi_scratch/userexternal/ahoffman/HeLaZ/results/Marconi/200x100_L_100_Pe_2_Je_1_Pi_2_Ji_1_nB_0.66_nN_1_nu_1e-01_FC_mu_1e-03/out.txt';
BASIC.RESDIR = load_marconi(outfile); BASIC.RESDIR = load_marconi(outfile);
end end
%% %%
...@@ -236,7 +236,7 @@ save_figure ...@@ -236,7 +236,7 @@ save_figure
end end
%% %%
t0 = 1; t0 = 40;
skip_ = 1; skip_ = 1;
DELAY = 0.01*skip_; DELAY = 0.01*skip_;
FRAMES = floor(t0/(Ts2D(2)-Ts2D(1)))+1:skip_:numel(Ts2D); FRAMES = floor(t0/(Ts2D(2)-Ts2D(1)))+1:skip_:numel(Ts2D);
...@@ -264,7 +264,7 @@ create_gif ...@@ -264,7 +264,7 @@ create_gif
end end
if 0 if 0
%% Phi %% Phi
GIFNAME = ['phi',sprintf('_%.2d',JOBNUM)];INTERP = 1; GIFNAME = ['phi',sprintf('_%.2d',JOBNUM)];INTERP = 0;
FIELD = real(phi); X = RR; Y = ZZ; T = Ts2D; FIELD = real(phi); X = RR; Y = ZZ; T = Ts2D;
FIELDNAME = '$\phi$'; XNAME = '$r/\rho_s$'; YNAME = '$z/\rho_s$'; FIELDNAME = '$\phi$'; XNAME = '$r/\rho_s$'; YNAME = '$z/\rho_s$';
create_gif create_gif
...@@ -334,7 +334,7 @@ end ...@@ -334,7 +334,7 @@ end
%% %%
if 0 if 0
%% Show frame in kspace %% Show frame in kspace
tf = 100; [~,it2] = min(abs(Ts2D-tf)); [~,it5] = min(abs(Ts5D-tf)); tf = 300; [~,it2] = min(abs(Ts2D-tf)); [~,it5] = min(abs(Ts5D-tf));
fig = figure; FIGNAME = ['krkz_frame',sprintf('t=%.0f',Ts2D(it2))];set(gcf, 'Position', [100, 100, 700, 600]) fig = figure; FIGNAME = ['krkz_frame',sprintf('t=%.0f',Ts2D(it2))];set(gcf, 'Position', [100, 100, 700, 600])
subplot(221); plt = @(x) fftshift((abs(x)),2); subplot(221); plt = @(x) fftshift((abs(x)),2);
pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(PHI(:,:,it2))); set(pclr, 'edgecolor','none'); colorbar; pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(PHI(:,:,it2))); set(pclr, 'edgecolor','none'); colorbar;
...@@ -345,11 +345,9 @@ fig = figure; FIGNAME = ['krkz_frame',sprintf('t=%.0f',Ts2D(it2))];set(gcf, 'Pos ...@@ -345,11 +345,9 @@ fig = figure; FIGNAME = ['krkz_frame',sprintf('t=%.0f',Ts2D(it2))];set(gcf, 'Pos
subplot(223); plt = @(x) fftshift(abs(x),2); subplot(223); plt = @(x) fftshift(abs(x),2);
pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(Ne00(:,:,it2))); set(pclr, 'edgecolor','none'); colorbar; pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(Ne00(:,:,it2))); set(pclr, 'edgecolor','none'); colorbar;
xlabel('$k_r$'); ylabel('$k_z$'); legend('$|\hat n_e^{00}|$'); xlabel('$k_r$'); ylabel('$k_z$'); legend('$|\hat n_e^{00}|$');
if strcmp(OUTPUTS.write_non_lin,'.true.')
subplot(224); plt = @(x) fftshift((abs(x)),2); subplot(224); plt = @(x) fftshift((abs(x)),2);
pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(Si00(:,:,it5))); set(pclr, 'edgecolor','none'); colorbar; pclr = pcolor(fftshift(KR,2),fftshift(KZ,2),plt(Si00(:,:,it5))); set(pclr, 'edgecolor','none'); colorbar;
xlabel('$k_r$'); ylabel('$k_z$');legend('$\hat S_i^{00}$'); xlabel('$k_r$'); ylabel('$k_z$');legend('$\hat S_i^{00}$');
end
save_figure save_figure
end end
......
...@@ -7,7 +7,7 @@ addpath(genpath('../matlab')) % ... add ...@@ -7,7 +7,7 @@ addpath(genpath('../matlab')) % ... add
CLUSTER.TIME = '24:00:00'; % allocation time hh:mm:ss CLUSTER.TIME = '24:00:00'; % allocation time hh:mm:ss
CLUSTER.NODES = '1'; % MPI process CLUSTER.NODES = '1'; % MPI process
CLUSTER.CPUPT = '1'; % CPU per task CLUSTER.CPUPT = '1'; % CPU per task
CLUSTER.NTPN = '20'; % N tasks per node CLUSTER.NTPN = '24'; % N tasks per node
CLUSTER.PART = 'prod'; % dbg or prod CLUSTER.PART = 'prod'; % dbg or prod
CLUSTER.MEM = '16GB'; % Memory CLUSTER.MEM = '16GB'; % Memory
CLUSTER.JNAME = 'gamma_inf'; % Job name CLUSTER.JNAME = 'gamma_inf'; % Job name
...@@ -17,17 +17,15 @@ TAU = 1.0; % e/i temperature ratio ...@@ -17,17 +17,15 @@ TAU = 1.0; % e/i temperature ratio
ETAB = 0.66; % Magnetic gradient ETAB = 0.66; % Magnetic gradient
ETAN = 1.0; % Density gradient ETAN = 1.0; % Density gradient
ETAT = 0.0; % Temperature gradient ETAT = 0.0; % Temperature gradient
MU = 5e-4; % Hyper diffusivity coefficient HD_CO = 0.5; % Hyper diffusivity cutoff ratio
NOISE0 = 1.0e-5; NOISE0 = 1.0e-5;
%% GRID PARAMETERS %% GRID PARAMETERS
N = 512; % Frequency gridpoints (Nkr = N/2) N = 200; % Frequency gridpoints (Nkr = N/2)
L = 100; % Size of the squared frequency domain L = 100; % Size of the squared frequency domain
PMAXE = 8; % Highest electron Hermite polynomial degree P = 4; % Electron and Ion highest Hermite polynomial degree
JMAXE = 4; % Highest '' Laguerre '' J = 2; % Electron and Ion highest Laguerre polynomial degree
PMAXI = 8; % Highest ion Hermite polynomial degree
JMAXI = 4; % Highest '' Laguerre ''
%% TIME PARAMETERS %% TIME PARAMETERS
TMAX = 400; % Maximal time unit TMAX = 500; % Maximal time unit
DT = 1e-2; % Time step DT = 1e-2; % Time step
SPS0D = 10; % Sampling per time unit for profiler SPS0D = 10; % Sampling per time unit for profiler
SPS2D = 1; % Sampling per time unit for 2D arrays SPS2D = 1; % Sampling per time unit for 2D arrays
...@@ -48,7 +46,12 @@ KREQ0 = 0; % put kr = 0 ...@@ -48,7 +46,12 @@ KREQ0 = 0; % put kr = 0
KPAR = 0.0; % Parellel wave vector component KPAR = 0.0; % Parellel wave vector component
LAMBDAD = 0.0; LAMBDAD = 0.0;
NON_LIN = 1 *(1-KREQ0); % activate non-linearity (is cancelled if KREQ0 = 1) NON_LIN = 1 *(1-KREQ0); % activate non-linearity (is cancelled if KREQ0 = 1)
PMAXE = P; % Highest electron Hermite polynomial degree
JMAXE = J; % Highest '' Laguerre ''
PMAXI = P; % Highest ion Hermite polynomial degree
JMAXI = J; % Highest '' Laguerre ''
kmax = N*pi/L;% Highest fourier mode
MU = 0.1/(HD_CO*kmax)^4 % Hyperdiffusivity coefficient
%% Run following scripts %% Run following scripts
setup setup
......
...@@ -10,24 +10,24 @@ TAU = 1.0; % e/i temperature ratio ...@@ -10,24 +10,24 @@ TAU = 1.0; % e/i temperature ratio
ETAB = 0.5; % Magnetic gradient ETAB = 0.5; % Magnetic gradient
ETAN = 1.0; % Density gradient ETAN = 1.0; % Density gradient
ETAT = 0.0; % Temperature gradient ETAT = 0.0; % Temperature gradient
MU = 5e-4; % Hyper diffusivity coefficient HD_CO = 0.5; % Hyper diffusivity cutoff ratio
NOISE0 = 1.0e-5; NOISE0 = 1.0e-5;
%% GRID PARAMETERS %% GRID PARAMETERS
N = 128; % Frequency gridpoints (Nkr = N/2) N = 128; % Frequency gridpoints (Nkr = N/2)
L = 33; % Size of the squared frequency domain L = 66; % Size of the squared frequency domain
PMAXE = 2; % Highest electron Hermite polynomial degree PMAXE = 2; % Highest electron Hermite polynomial degree
JMAXE = 1; % Highest '' Laguerre '' JMAXE = 1; % Highest '' Laguerre ''
PMAXI = 2; % Highest ion Hermite polynomial degree PMAXI = 2; % Highest ion Hermite polynomial degree
JMAXI = 1; % Highest '' Laguerre '' JMAXI = 1; % Highest '' Laguerre ''
%% TIME PARAMETERS %% TIME PARAMETERS
TMAX = 20; % Maximal time unit TMAX = 500; % Maximal time unit
DT = 2e-2; % Time step DT = 1e-2; % Time step
SPS0D = 1/DT; % Sampling per time unit for profiler SPS0D = 1/DT; % Sampling per time unit for profiler
SPS2D = 2; % Sampling per time unit for 2D arrays SPS2D = 2; % Sampling per time unit for 2D arrays
SPS5D = 2; % Sampling per time unit for 5D arrays SPS5D = 2; % Sampling per time unit for 5D arrays
SPSCP = 1/10; % Sampling per time unit for checkpoints SPSCP = 1/10; % Sampling per time unit for checkpoints
RESTART = 0; % To restart from last checkpoint RESTART = 1; % To restart from last checkpoint
JOB2LOAD= 0; JOB2LOAD= 1;
%% OPTIONS %% OPTIONS
SIMID = 'debug'; % Name of the simulation SIMID = 'debug'; % Name of the simulation
CO = 0; % Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty) CO = 0; % Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty)
...@@ -41,5 +41,6 @@ KPAR = 0.0; % Parellel wave vector component ...@@ -41,5 +41,6 @@ KPAR = 0.0; % Parellel wave vector component
LAMBDAD = 0.0; LAMBDAD = 0.0;
NON_LIN = 1 *(1-KREQ0); % activate non-linearity (is cancelled if KREQ0 = 1) NON_LIN = 1 *(1-KREQ0); % activate non-linearity (is cancelled if KREQ0 = 1)
LOAD_MARCONI = 0; LOAD_MARCONI = 0;
kmax = N*pi/L;% Highest fourier mode
MU = 0.1/(HD_CO*kmax)^4 % Hyperdiffusivity coefficient
setup setup
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