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
27bed971
Commit
27bed971
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Ãsave matlab scripts
parent
de202fba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
matlab/plot/create_film.m
+13
-3
13 additions, 3 deletions
matlab/plot/create_film.m
matlab/plot/photomaton.m
+1
-1
1 addition, 1 deletion
matlab/plot/photomaton.m
matlab/process_field.m
+1
-0
1 addition, 0 deletions
matlab/process_field.m
wk/fast_analysis.m
+18
-12
18 additions, 12 deletions
wk/fast_analysis.m
with
33 additions
and
16 deletions
matlab/plot/create_film.m
+
13
−
3
View file @
27bed971
function
create_film
(
DATA
,
OPTIONS
,
format
)
function
create_film
(
DATA
,
OPTIONS
,
format
)
%% Plot options
%% Plot options
FPS
=
16
;
DELAY
=
1
/
FPS
;
FPS
=
16
;
DELAY
=
1
/
FPS
;
BWR
=
1
;
NORMALIZED
=
1
;
BWR
=
OPTIONS
.
BWR
;
NORMALIZED
=
1
;
if
~
strcmp
(
OPTIONS
.
PLAN
,
'sx'
)
if
~
strcmp
(
OPTIONS
.
PLAN
,
'sx'
)
T
=
DATA
.
Ts3D
;
T
=
DATA
.
Ts3D
;
else
else
...
@@ -40,7 +40,12 @@ fig = figure('Color','white');%,'Position', toplot.DIMENSIONS.*[0.5 0.5 1.0 1])
...
@@ -40,7 +40,12 @@ fig = figure('Color','white');%,'Position', toplot.DIMENSIONS.*[0.5 0.5 1.0 1])
if
~
strcmp
(
OPTIONS
.
PLAN
,
'sx'
)
if
~
strcmp
(
OPTIONS
.
PLAN
,
'sx'
)
pcolor
(
X
,
Y
,
FIELD
(:,:,
1
));
% to set up
pcolor
(
X
,
Y
,
FIELD
(:,:,
1
));
% to set up
if
BWR
if
BWR
colormap
(
bluewhitered
)
colormap
(
bluewhitered
)
else
colormap
(
gray
)
end
if
OPTIONS
.
CLIMAUTO
clim
(
'auto'
)
end
end
axis
tight
manual
% this ensures that getframe() returns a consistent size
axis
tight
manual
% this ensures that getframe() returns a consistent size
if
toplot
.
INTERP
if
toplot
.
INTERP
...
@@ -72,7 +77,12 @@ fig = figure('Color','white');%,'Position', toplot.DIMENSIONS.*[0.5 0.5 1.0 1])
...
@@ -72,7 +77,12 @@ fig = figure('Color','white');%,'Position', toplot.DIMENSIONS.*[0.5 0.5 1.0 1])
end
end
set
(
pclr
,
'edgecolor'
,
'none'
);
%pbaspect(toplot.ASPECT);
set
(
pclr
,
'edgecolor'
,
'none'
);
%pbaspect(toplot.ASPECT);
if
BWR
if
BWR
colormap
(
bluewhitered
)
colormap
(
bluewhitered
)
else
colormap
(
gray
)
end
if
OPTIONS
.
CLIMAUTO
clim
(
'auto'
)
end
end
else
% show velocity distr.
else
% show velocity distr.
contour
(
toplot
.
X
,
toplot
.
Y
,
FIELD
(:,:,
n
)/
scale
,
128
);
contour
(
toplot
.
X
,
toplot
.
Y
,
FIELD
(:,:,
n
)/
scale
,
128
);
...
...
This diff is collapsed.
Click to expand it.
matlab/plot/photomaton.m
+
1
−
1
View file @
27bed971
...
@@ -30,7 +30,7 @@ FIGURE.fig = figure; %set(gcf, 'Position', toplot.DIMENSIONS.*[1 1 Ncols Nrows]
...
@@ -30,7 +30,7 @@ FIGURE.fig = figure; %set(gcf, 'Position', toplot.DIMENSIONS.*[1 1 Ncols Nrows]
pbaspect
(
toplot
.
ASPECT
)
pbaspect
(
toplot
.
ASPECT
)
end
end
if
~
strcmp
(
OPTIONS
.
PLAN
,
'kxky'
)
if
~
strcmp
(
OPTIONS
.
PLAN
,
'kxky'
)
c
axis
([
-
1
,
1
]
*
frame_max
/
scale
);
c
lim
([
-
1
,
1
]
*
frame_max
/
scale
);
colormap
(
bluewhitered
);
colormap
(
bluewhitered
);
if
OPTIONS
.
INTERP
if
OPTIONS
.
INTERP
shading
interp
;
shading
interp
;
...
...
This diff is collapsed.
Click to expand it.
matlab/process_field.m
+
1
−
0
View file @
27bed971
...
@@ -138,6 +138,7 @@ switch REALP
...
@@ -138,6 +138,7 @@ switch REALP
case
1
% Real space plot
case
1
% Real space plot
INTERP
=
OPTIONS
.
INTERP
;
INTERP
=
OPTIONS
.
INTERP
;
process
=
@
(
x
)
real
(
fftshift
(
ifourier_GENE
(
x
)));
process
=
@
(
x
)
real
(
fftshift
(
ifourier_GENE
(
x
)));
% process = @(x) real(fftshift(ifft2(x,sz(1),sz(2))));
shift_x
=
@
(
x
)
x
;
shift_x
=
@
(
x
)
x
;
shift_y
=
@
(
x
)
x
;
shift_y
=
@
(
x
)
x
;
case
0
% Frequencies plot
case
0
% Frequencies plot
...
...
This diff is collapsed.
Click to expand it.
wk/fast_analysis.m
+
18
−
12
View file @
27bed971
...
@@ -6,14 +6,16 @@ addpath(genpath([gyacomodir,'matlab/load'])) % ... add
...
@@ -6,14 +6,16 @@ addpath(genpath([gyacomodir,'matlab/load'])) % ... add
default_plots_options
default_plots_options
% Partition of the computer where the data have to be searched
% Partition of the computer where the data have to be searched
% PARTITION='/Users/ahoffmann/gyacomo/results/paper_3/';
% PARTITION='/Users/ahoffmann/gyacomo/results/paper_3/';
PARTITION
=
'/misc/gyacomo23_outputs/paper_3/'
;
% PARTITION='/misc/gyacomo23_outputs/paper_3/';
PARITION
=
''
;
%% Paper 3
%% Paper 3
% resdir = 'DTT_rho85/3x2x192x48x32';
% resdir = 'DTT_rho85/3x2x192x48x32';
% resdir = 'DTT_rho85/3x2x192x48x32_NT';
% resdir = 'DTT_rho85/3x2x192x48x32_NT';
% resdir = 'DTT_rho98/3x2x192x48x32';
% resdir = 'DTT_rho98/3x2x192x48x32';
% resdir = 'DTT_rho98/3x2x192x48x32_0.25grad';
% resdir = 'DTT_rho98/3x2x192x48x32_0.25grad';
% resdir = 'LM_DIIID_rho95/5x3x512x92x32';
% resdir = 'LM_DIIID_rho95/5x3x512x92x32';
resdir
=
'LM_DIIID_rho95/3x2x512x92x32'
;
% resdir = 'LM_DIIID_rho95/3x2x512x92x32';
resdir
=
'../results/dev/ExB_SF'
;
%%
%%
J0
=
00
;
J1
=
02
;
J0
=
00
;
J1
=
02
;
...
@@ -22,10 +24,10 @@ DATADIR = [PARTITION,resdir,'/'];
...
@@ -22,10 +24,10 @@ DATADIR = [PARTITION,resdir,'/'];
data
=
{};
data
=
{};
data
=
compile_results_low_mem
(
data
,
DATADIR
,
J0
,
J1
);
data
=
compile_results_low_mem
(
data
,
DATADIR
,
J0
,
J1
);
if
1
if
0
%% Plot transport and phi radial profile
%% Plot transport and phi radial profile
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
[
data
.
PSI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'psi'
);
%
[data.PSI, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'psi');
options
.
TAVG_0
=
100
;
options
.
TAVG_0
=
100
;
options
.
TAVG_1
=
1000
;
options
.
TAVG_1
=
1000
;
options
.
NCUT
=
5
;
% Number of cuts for averaging and error estimation
options
.
NCUT
=
5
;
% Number of cuts for averaging and error estimation
...
@@ -37,7 +39,7 @@ options.RESOLUTION = 256;
...
@@ -37,7 +39,7 @@ options.RESOLUTION = 256;
plot_radial_transport_and_spacetime
(
data
,
options
);
plot_radial_transport_and_spacetime
(
data
,
options
);
end
end
if
0
if
1
%% MOVIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MOVIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Options
% Options
% [data.PHI, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'phi');
% [data.PHI, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'phi');
...
@@ -45,6 +47,8 @@ if 0
...
@@ -45,6 +47,8 @@ if 0
data
.
Ni00
=
reshape
(
data
.
Na00
(
1
,:,:,:,:),
data
.
grids
.
Nky
,
data
.
grids
.
Nkx
,
data
.
grids
.
Nz
,
numel
(
data
.
Ts3D
));
data
.
Ni00
=
reshape
(
data
.
Na00
(
1
,:,:,:,:),
data
.
grids
.
Nky
,
data
.
grids
.
Nkx
,
data
.
grids
.
Nz
,
numel
(
data
.
Ts3D
));
options
.
INTERP
=
1
;
options
.
INTERP
=
1
;
options
.
POLARPLOT
=
0
;
options
.
POLARPLOT
=
0
;
options
.
BWR
=
0
;
% bluewhitered plot or gray
options
.
CLIMAUTO
=
1
;
% adjust the colormap auto
% options.NAME = '\phi';
% options.NAME = '\phi';
% options.NAME = '\phi^{NZ}';
% options.NAME = '\phi^{NZ}';
% options.NAME = '\omega_z';
% options.NAME = '\omega_z';
...
@@ -54,7 +58,7 @@ options.NAME = 'N_i^{00}';
...
@@ -54,7 +58,7 @@ options.NAME = 'N_i^{00}';
% options.NAME = 'Q_x';
% options.NAME = 'Q_x';
% options.NAME = 'n_i';
% options.NAME = 'n_i';
% options.NAME = 'n_i-n_e';
% options.NAME = 'n_i-n_e';
options
.
PLAN
=
'
kxk
y'
;
options
.
PLAN
=
'
x
y'
;
% options.NAME = 'f_i';
% options.NAME = 'f_i';
% options.PLAN = 'sx';
% options.PLAN = 'sx';
options
.
COMP
=
1
;
options
.
COMP
=
1
;
...
@@ -74,18 +78,20 @@ if 0
...
@@ -74,18 +78,20 @@ if 0
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
[
data
.
PHI
,
data
.
Ts3D
]
=
compile_results_3D
(
DATADIR
,
J0
,
J1
,
'phi'
);
data
.
Ni00
=
reshape
(
data
.
Na00
(
1
,:,:,:,:),
data
.
grids
.
Nky
,
data
.
grids
.
Nkx
,
data
.
grids
.
Nz
,
numel
(
data
.
Ts3D
));
data
.
Ni00
=
reshape
(
data
.
Na00
(
1
,:,:,:,:),
data
.
grids
.
Nky
,
data
.
grids
.
Nkx
,
data
.
grids
.
Nz
,
numel
(
data
.
Ts3D
));
options
.
INTERP
=
0
;
options
.
INTERP
=
1
;
options
.
POLARPLOT
=
0
;
options
.
POLARPLOT
=
0
;
options
.
AXISEQUAL
=
0
;
options
.
AXISEQUAL
=
1
;
options
.
NORMALIZE
=
0
;
options
.
NORMALIZE
=
0
;
%
options.NAME = 'N_i^{00}';
options
.
NAME
=
'N_i^{00}'
;
options
.
NAME
=
'\phi'
;
%
options.NAME = '\phi';
options
.
PLAN
=
'kxky'
;
options
.
PLAN
=
'kxky'
;
options
.
COMP
=
'avg'
;
options
.
COMP
=
'avg'
;
options
.
TIME
=
[
0
10
20
50
];
options
.
TIME
=
[
0
];
% options.TIME = data.Ts3D(1:2:end);
% options.TIME = data.Ts3D(1:2:end);
options
.
RESOLUTION
=
256
;
options
.
RESOLUTION
=
256
;
fig
=
photomaton
(
data
,
options
);
fig
=
photomaton
(
data
,
options
);
colormap
(
gray
)
clim
(
'auto'
)
% save_figure(data,fig)
% save_figure(data,fig)
end
end
if
0
if
0
...
@@ -93,7 +99,7 @@ if 0
...
@@ -93,7 +99,7 @@ if 0
profiler
(
data
)
profiler
(
data
)
end
end
if
1
if
0
%% Hermite-Laguerre spectrum
%% Hermite-Laguerre spectrum
[
data
.
Napjz
,
data
.
Ts3D
]
=
compile_results_3Da
(
DATADIR
,
J0
,
J1
,
'Napjz'
);
[
data
.
Napjz
,
data
.
Ts3D
]
=
compile_results_3Da
(
DATADIR
,
J0
,
J1
,
'Napjz'
);
% [data.Napjz, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'Nipjz');
% [data.Napjz, data.Ts3D] = compile_results_3D(DATADIR,J0,J1,'Nipjz');
...
...
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