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
ccf2889f
Commit
ccf2889f
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
interface change
parent
d13bdf73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
wk/analysis_2D.m
+5
-7
5 additions, 7 deletions
wk/analysis_2D.m
wk/marconi_run.m
+12
-9
12 additions, 9 deletions
wk/marconi_run.m
wk/test_parallel.m
+8
-7
8 additions, 7 deletions
wk/test_parallel.m
with
25 additions
and
23 deletions
wk/analysis_2D.m
+
5
−
7
View file @
ccf2889f
%% 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_
5
e-0
4
/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_
1
e-0
3
/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
=
1
00
;
[
~
,
it2
]
=
min
(
abs
(
Ts2D
-
tf
));
[
~
,
it5
]
=
min
(
abs
(
Ts5D
-
tf
));
tf
=
3
00
;
[
~
,
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
...
...
This diff is collapsed.
Click to expand it.
wk/marconi_run.m
+
12
−
9
View file @
ccf2889f
...
@@ -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
=
'2
0
'
;
% N tasks per node
CLUSTER
.
NTPN
=
'2
4
'
;
% 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 c
oefficient
HD_CO
=
0.5
;
% Hyper diffusivity c
utoff 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
=
4
00
;
% Maximal time unit
TMAX
=
5
00
;
% 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
...
...
This diff is collapsed.
Click to expand it.
wk/test_parallel.m
+
8
−
7
View file @
ccf2889f
...
@@ -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 c
oefficient
HD_CO
=
0.5
;
% Hyper diffusivity c
utoff 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
=
2
0
;
% Maximal time unit
TMAX
=
50
0
;
% Maximal time unit
DT
=
2
e-2
;
% Time step
DT
=
1
e-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
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