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
80d6e7cb
Commit
80d6e7cb
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
save the scripts
parent
561ef28d
No related branches found
No related tags found
No related merge requests found
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
wk/marconi_run.m
+2
-2
2 additions, 2 deletions
wk/marconi_run.m
wk/p2_heatflux_salpha_convergence.m
+53
-14
53 additions, 14 deletions
wk/p2_heatflux_salpha_convergence.m
wk/quick_run.m
+2
-2
2 additions, 2 deletions
wk/quick_run.m
with
57 additions
and
18 deletions
wk/marconi_run.m
+
2
−
2
View file @
80d6e7cb
...
...
@@ -66,8 +66,8 @@ W_NAPJ = 1; W_SAPJ = 0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% unused
KIN_E
=
1
;
% Kinetic (1) or adiabatic (2) electron model
GRAD
B
=
1.0
;
% Magnetic gradient
CURV
B
=
1.0
;
% Magnetic curvature
k_g
B
=
1.0
;
% Magnetic gradient
k_c
B
=
1.0
;
% Magnetic curvature
SG
=
0
;
% Staggered z grids option
PMAXE
=
P
;
% Highest electron Hermite polynomial degree
JMAXE
=
J
;
% Highest '' Laguerre ''
...
...
This diff is collapsed.
Click to expand it.
wk/p2_heatflux_salpha_convergence.m
+
53
−
14
View file @
80d6e7cb
%% Heat flux convergence for kt=6.96 and 5.3
figure
title
(
's-$\alpha$ turb. heat flux conv.'
);
% KT 6.96, nuDGDK = 0.05, 128x64x
16
, Nexc
1
P
=
[
2
4
12
];
Qx
=
[
5
0.00
46.00
41.0
0
];
std_
=
[
6.600
2.300
6.60
0
];
errorbar
(
P
,
Qx
,
std_
/
2
,
'
o-.
r'
,
...
% KT 6.96, nuDGDK = 0.05, 128x64x
24
, Nexc
5
P
=
[
2
4
12
];
Qx
=
[
5
2.4
46.1
0
];
std_
=
[
12.1
4.98
0
];
errorbar
(
P
,
Qx
,
std_
/
2
,
'
s-
r'
,
...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'KT 6.9, nuDGDK 0.05'
);
hold
on
xlabel
(
'$P$, $J=P/2$'
);
ylabel
(
'$Q_x$'
);
% KT 6.96, nuDGDK = 0.05, 1
28x64
x24, Nexc 5
P
=
[
4
6
8
10
];
Qx
=
[
67.62
67.50
59.21
64.17
];
std_
=
[
15.42
20.32
17.25
16
.0
5
];
% KT 6.96, nuDGDK = 0.05, 1
92x96
x24, Nexc 5
P
=
[
4
6
8
10
];
Qx
=
[
42.9
44.9
00.0
00.0
];
std_
=
[
9.15
7.12
0.00
0
.0
0
];
errorbar
(
P
,
Qx
,
std_
/
2
,
'o-r'
,
...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'KT 6.9, nuDGDK 0.05'
);
hold
on
xlabel
(
'$P$, $J=P/2$'
);
ylabel
(
'$Q_x$'
);
% KT 5.3, nuDGDK = 0.05, 128x64x24, Nexc 5
P
=
[
4
6
8
10
12
];
Qx
=
[
44.10
21.61
16.04
0.558
0.901
];
std_
=
[
10.61
6.952
4.166
0.025
0.122
];
errorbar
(
P
,
Qx
,
std_
/
2
,
'o-
b
'
,
...
Qx
=
[
0
0
0
0
0
];
std_
=
[
0
0
0
0
0
];
errorbar
(
P
,
Qx
,
std_
/
2
,
'o-
-r
'
,
...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'KT 5.3, nuDGDK 0.05'
);
xlabel
(
'$P$, $J=P/2$'
);
ylabel
(
'$Q_x$'
);
...
...
@@ -30,7 +30,7 @@ xlabel('$P$, $J=P/2$'); ylabel('$Q_x$');
Nvp
=
[
32
16
8
8
];
Qx
=
[
34.53
37.96
1.948
13.0
];
std_
=
[
7.830
6.048
0.629
3.09
];
errorbar
(
Nvp
,
Qx
,
std_
/
2
,
'
s--r
'
,
...
errorbar
(
Nvp
,
Qx
,
std_
/
2
,
'
o-b
'
,
...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'KT 6.9 GENE'
);
xlabel
(
'$P=N_{v\parallel}$, $J=P/2=N_\mu$'
);
ylabel
(
'$Q_x$'
);
...
...
@@ -42,11 +42,16 @@ xlabel('$P=N_{v\parallel}$, $J=P/2=N_\mu$'); ylabel('$Q_x$');
Nvp
=
[
32
16
8
];
Qx
=
[
0.284
0.000
0.370
];
std_
=
[
0.177
0.000
0.140
];
errorbar
(
Nvp
,
Qx
,
std_
/
2
,
'
s
--b'
,
...
errorbar
(
Nvp
,
Qx
,
std_
/
2
,
'
o
--b'
,
...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'KT 5.3 GENE'
);
xlabel
(
'$P=N_{v\parallel}$, $J=P/2=N_\mu$'
);
ylabel
(
'$Q_x$'
);
% DIMITS
Dimits_result
=
7.67
*
2
*
2.5
;
plot
([
0
32
],
Dimits_result
*
[
1
1
],
'-.k'
,
'DisplayName'
,
'Dimits CBC'
);
legend
(
'show'
);
%% KT scans 9x5x128x64x24
clrs
=
lines
(
10
);
figure
...
...
@@ -57,3 +62,37 @@ errorbar(kT_,Qx_,std_/2,'s--','color',clrs(4,:),...
'LineWidth'
,
2.0
,
'MarkerSize'
,
8
,
...
'DisplayName'
,
'(8,4)'
);
xlabel
(
'$K_T$'
);
ylabel
(
'$Q_x$'
);
%% Add Dimits results on current plot
plot
([
0
500
],
Dimits_result
*
[
1
1
],
'-.k'
);
%% Add Mandell Miller results on current plot
Mandell_result
=
7.67
*
7.5
;
plot
([
0
500
],
Mandell_result
*
[
1.3
1.3
],
'-.k'
);
plot
([
0
500
],
Mandell_result
*
[
1
1
],
'--k'
);
plot
([
0
500
],
Mandell_result
*
[
0.7
0.7
],
'-.k'
);
%% Old results (before the 2j-1 factor in mirror term)
% KT 6.96, nuDGDK = 0.05, 128x64x16, Nexc 1
% P = [2 4 12];
% Qx = [50.00 46.00 41.00];
% std_= [6.600 2.300 6.600];
% errorbar(P,Qx,std_/2,'s-r',...
% 'LineWidth',2.0,'MarkerSize',8,...
% 'DisplayName','KT 6.9, nuDGDK 0.05'); hold on
% xlabel('$P$, $J=P/2$'); ylabel('$Q_x$');
% % KT 6.96, nuDGDK = 0.05, 128x64x24, Nexc 5
% P = [4 6 8 10 ];
% Qx = [67.62 67.50 59.21 64.17];
% std_= [15.42 20.32 17.25 16.05];
% errorbar(P,Qx,std_/2,'o-r',...
% 'LineWidth',2.0,'MarkerSize',8,...
% 'DisplayName','KT 6.9, nuDGDK 0.05'); hold on
% xlabel('$P$, $J=P/2$'); ylabel('$Q_x$');
% % KT 5.3, nuDGDK = 0.05, 128x64x24, Nexc 5
% P = [4 6 8 10 12 ];
% Qx = [44.10 21.61 16.04 0.558 0.901];
% std_= [10.61 6.952 4.166 0.025 0.122];
% errorbar(P,Qx,std_/2,'o--r',...
% 'LineWidth',2.0,'MarkerSize',8,...
% 'DisplayName','KT 5.3, nuDGDK 0.05');
% xlabel('$P$, $J=P/2$'); ylabel('$Q_x$');
\ No newline at end of file
This diff is collapsed.
Click to expand it.
wk/quick_run.m
+
2
−
2
View file @
80d6e7cb
...
...
@@ -91,8 +91,8 @@ MU_J = 0.0; %
LAMBDAD
=
0.0
;
NOISE0
=
1.0e-5
;
% Init noise amplitude
BCKGD0
=
0.0
;
% Init background
GRAD
B
=
1.0
;
CURV
B
=
1.0
;
k_g
B
=
1.0
;
k_c
B
=
1.0
;
%%-------------------------------------------------------------------------
%% RUN
setup
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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