Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
f71fde26
Commit
f71fde26
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
cleaning
parent
7de2e048
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wk/fast_analysis.m
+15
-97
15 additions, 97 deletions
wk/fast_analysis.m
with
15 additions
and
97 deletions
wk/fast_analysis.m
+
15
−
97
View file @
f71fde26
...
...
@@ -5,97 +5,15 @@ addpath(genpath([gyacomodir,'matlab/compute'])) % ... add
addpath
(
genpath
([
gyacomodir
,
'matlab/load'
]))
% ... add
default_plots_options
% Partition of the computer where the data have to be searched
PARTITION
=
'/misc/gyacomo23_outputs/'
;
% PARTITION = '/home/ahoffman/gyacomo/';
%% Tests
% resdir = 'test_stepon_AA/CBC_stepon_AA';
% resdir = 'test_stepon_AA/CBC_no_stepon_AA'; % No clear conclusions
%% CBC benchmark
% resdir = 'paper_2_GYAC23/CBC/3x2x128x64x24';
% resdir = 'paper_2_GYAC23/CBC/3x2x128x64x24_nu_5e-2';
% resdir = 'paper_2_GYAC23/CBC/5x3x128x64x24';
% resdir = 'paper_2_GYAC23/CBC/7x4x128x64x24';
% resdir = 'paper_2_GYAC23/CBC/21x6x192x96x24';
%% low precision kT scan
% resdir = 'paper_2_GYAC23/local_runs/1x2x64x48x16/CBC';
% resdir = 'paper_2_GYAC23/local_runs/1x2x64x48x16/CBC_dp';
% resdir = 'paper_2_GYAC23/local_runs/1x2x128x64x16/CBC';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/5x2x64x48x16/kT_3.5';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/5x2x64x48x16/kT_4.0';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/5x2x64x48x16/kT_4.5';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/5x2x64x48x16/kT_5.3';
% resdir = 'paper_2_GYAC23/local_runs/5x2x64x48x16/CBC';
% resdir = 'paper_2_GYAC23/local_runs/5x2x64x48x16/CBC_noise_init';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/9x2x64x48x16/kT_3.5';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/9x2x64x48x16/kT_4.0';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/9x2x64x48x16/kT_4.5';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/9x2x64x48x16/kT_5.3';
% resdir = 'paper_2_GYAC23/local_runs/9x2x64x48x16/CBC';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/11x2x64x48x16/kT_4.0';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/11x2x64x48x16/kT_4.5';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/11x2x64x48x16/kT_5.3';
% resdir = 'paper_2_GYAC23/local_runs/nu=0.05/11x2x64x48x16/CBC';
% resdir = 'paper_2_GYAC23/local_runs/11x2x64x48x16/CBC';
%% Collision scan
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_CBC/7x2x64x48x16/nu_0.1';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_CBC/9x2x64x48x16/nu_0.1';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_CBC/9x2x64x48x16/nu_0.1';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/9x5x128x64x24/nu_0.5';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/5x3x128x64x24/nu_0.5';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/9x5x128x64x24/nu_0.5';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/9x5x128x64x24_Lx200/nu_0.5';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/9x5x128x64x24/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/11x6x192x96x24/nu_0.1';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/9x5x192x96x24/nu_0.2';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/17x9x192x96x24/nu_0.2';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/17x9x192x96x24/nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/17x9x192x96x24/nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/9x5x192x96x24/nu_0.2';
% resdir = 'paper_2_GYAC23/collision_study/nuDGGK_scan_kT_5.3/17x9x192x96x24/continue_SG_nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/5x3x192x96x24/nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/9x5x192x96x24/nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/17x9x192x96x24/nu_0.02';
% resdir = 'paper_2_GYAC23/collision_study/nuSGGK_scan_kT_5.3/17x9x192x96x24/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/5x3x192x96x24/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/9x5x192x96x24/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/17x9x128x64x24/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/17x9x128x64x24_large_box/nu_0.005';
% resdir = 'paper_2_GYAC23/collision_study/nuLDGK_scan_kT_5.3/17x9x128x64x24_ckcut_0.8/nu_0.005';
%% kT eff study
% resdir = 'paper_2_GYAC23/kT_eff_study/1x3x128x64x24_kT_3.0/Lx120';
% resdir = 'paper_2_GYAC23/kT_eff_study/1x3x128x64x24_kT_3.0/Lx240';
% resdir = 'paper_2_GYAC23/kT_eff_study/3x3x128x64x24_kT_3.4/Lx120';
% resdir = 'paper_2_GYAC23/kT_eff_study/3x3x128x64x24_kT_3.4/Lx240';
% resdir = 'paper_2_GYAC23/kT_eff_study/5x3x128x64x24_kT_3.5';
% resdir = 'paper_2_GYAC23/kT_eff_study/7x3x128x64x24_kT_3.6/truncation';
% resdir = 'paper_2_GYAC23/kT_eff_study/7x3x128x64x24_kT_3.6/dmax';
%% dev
PARTITION
=
''
;
% resdir = '/home/ahoffman/gyacomo/testcases/zpinch_3D';
% resdir = '/home/ahoffman/gyacomo/results/dev/3D_kine_zpinch_test';
%% CBC benchmark
% resdir = '/misc/gyacomo23_outputs/paper_2_GYAC23/kT_scan_nu_1e-3/3x2x128x64x24/kT_7.0';
% resdir = '/misc/gyacomo23_outputs/paper_2_GYAC23/kT_scan_nu_1e-3/5x3x128x64x24/kT_7.0';
% resdir = '/misc/gyacomo23_outputs/paper_2_GYAC23/kT_scan_nu_1e-3/9x5x128x64x24/kT_7.0';
% resdir = '/misc/gyacomo23_outputs/paper_2_GYAC23/kT_scan_nu_1e-3/17x9x128x64x24/kT_7.0';
% resdir = '/misc/gyacomo23_outputs/paper_2_GYAC23/kT_scan_nu_1e-3/31x16x128x64x24/kT_7.0';
%% Paper 3
resdir
=
'/misc/gyacomo23_outputs/paper_3_GYAC23/CBC_kine'
;
resdir
=
'/Users/ahoffmann/gyacomxlio/results/paper_3/DTT_rho85/3x2x192x48x32'
;
% resdir = '/Users/ahoffmann/gyacomo/results/paper_3/DTT_rho85/3x2x192x48x32_NT';
% resdir = '/Users/ahoffmann/gyacomo/results/paper_3/DTT_rho98/3x2x192x48x32';
resdir
=
'/Users/ahoffmann/gyacomo/results/paper_3/DTT_rho98/3x2x192x48x32_0.25grad'
;
%%
J0
=
00
;
J1
=
2
0
;
J0
=
00
;
J1
=
0
2
;
% Load basic info (grids and time traces)
DATADIR
=
[
PARTITION
,
resdir
,
'/'
];
...
...
@@ -105,7 +23,7 @@ data = compile_results_low_mem(data,DATADIR,J0,J1);
if
1
%% Plot transport and phi radial profile
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
[
data
.
PSI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'psi'
);
options
.
TAVG_0
=
100
;
options
.
TAVG_1
=
1000
;
options
.
NCUT
=
5
;
% Number of cuts for averaging and error estimation
...
...
@@ -121,23 +39,23 @@ if 0
%% MOVIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Options
% [data.PHI, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'phi');
%
[data.Na00, data.Ts3D] = compile_results_3Da(DATADIR,J0,J1,'Na00');
%
data.Ni00 = reshape(data.Na00(1,:,:,:,:),data.grids.Nky,data.grids.Nkx,data.grids.Nz,numel(data.Ts3D));
[
data
.
Na00
,
data
.
Ts3D
]
=
compile_results_3Da
(
DATADIR
,
J0
,
J1
,
'Na00'
);
data
.
Ni00
=
reshape
(
data
.
Na00
(
1
,:,:,:,:),
data
.
grids
.
Nky
,
data
.
grids
.
Nkx
,
data
.
grids
.
Nz
,
numel
(
data
.
Ts3D
));
options
.
INTERP
=
1
;
options
.
POLARPLOT
=
0
;
options
.
NAME
=
'\phi'
;
%
options.NAME = '\phi';
% options.NAME = '\phi^{NZ}';
% options.NAME = '\omega_z';
%
options.NAME = 'N_i^{00}';
options
.
NAME
=
'N_i^{00}'
;
% options.NAME = 's_{Ey}';
% options.NAME = 'n_i^{NZ}';
% options.NAME = 'Q_x';
% options.NAME = 'n_i';
% options.NAME = 'n_i-n_e';
options
.
PLAN
=
'y
z
'
;
options
.
PLAN
=
'
kxk
y'
;
% options.NAME = 'f_i';
% options.PLAN = 'sx';
options
.
COMP
=
'avg'
;
options
.
COMP
=
1
;
% options.TIME = data.Ts5D(end-30:end);
options
.
TIME
=
data
.
Ts3D
(
1
:
1
:
end
);
% options.TIME = [0:1500];
...
...
@@ -148,7 +66,7 @@ create_film(data,options,'.gif')
end
if
0
%% field
s
snapshots
%% field snapshots
% Options
[
data
.
Na00
,
data
.
Ts3D
]
=
compile_results_3Da
(
DATADIR
,
J0
,
J1
,
'Na00'
);
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
...
...
@@ -162,7 +80,7 @@ options.NORMALIZE = 0;
options
.
NAME
=
'\phi'
;
options
.
PLAN
=
'kxky'
;
options
.
COMP
=
'avg'
;
options
.
TIME
=
[
0
:
0.02
:
0.14
];
options
.
TIME
=
[
0
10
20
50
];
% options.TIME = data.Ts3D(1:2:end);
options
.
RESOLUTION
=
256
;
fig
=
photomaton
(
data
,
options
);
...
...
@@ -177,7 +95,7 @@ if 1
%% Hermite-Laguerre spectrum
[
data
.
Napjz
,
data
.
Ts3D
]
=
compile_results_3Da
(
DATADIR
,
J0
,
J1
,
'Napjz'
);
% [data.Napjz, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'Nipjz');
options
.
ST
=
1
;
options
.
ST
=
0
;
options
.
NORMALIZED
=
0
;
options
.
LOGSCALE
=
1
;
options
.
FILTER
=
0
;
%filter the 50% time-average of the spectrum from
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment