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
b1b0b4c2
Commit
b1b0b4c2
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
ad4e64ea
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/create_gif.m
+9
-7
9 additions, 7 deletions
matlab/create_gif.m
matlab/create_gif_1D.m
+1
-1
1 addition, 1 deletion
matlab/create_gif_1D.m
wk/fort.90
+25
-25
25 additions, 25 deletions
wk/fort.90
with
35 additions
and
33 deletions
matlab/create_gif.m
+
9
−
7
View file @
b1b0b4c2
...
...
@@ -15,7 +15,7 @@ if hmax == hmin
disp
(
'Warning : h = hmin = hmax = const'
)
else
% Setup figure frame
fig
=
figure
;
fig
=
figure
(
'Color'
,
'white'
,
'Position'
,
[
100
,
100
,
400
,
400
])
;
pcolor
(
X
,
Y
,
FIELD
(:,:,
1
));
% to set up
colormap
jet
axis
tight
manual
% this ensures that getframe() returns a consistent size
...
...
@@ -25,19 +25,21 @@ fig = figure;
in
=
1
;
nbytes
=
fprintf
(
2
,
'frame %d/%d'
,
in
,
numel
(
FIELD
(
1
,
1
,:)));
for
n
=
FRAMES
% loop over selected frames
pclr
=
pcolor
(
X
,
Y
,
FIELD
(:,:,
n
));
% frame plot
scale
=
max
(
max
(
abs
(
FIELD
(:,:,
n
))));
pclr
=
pcolor
(
X
,
Y
,
FIELD
(:,:,
n
)/
scale
);
% frame plot
if
INTERP
shading
interp
;
end
set
(
pclr
,
'edgecolor'
,
'none'
);
caxis
([
min
(
min
(
FIELD
(:,:,
n
))),
max
(
max
(
FIELD
(:,:,
n
)))]);
xlabel
(
XNAME
);
ylabel
(
YNAME
);
colorbar
;
title
([
FIELDNAME
,
', $t \approx$'
,
sprintf
(
'%.3d'
,
ceil
(
T
(
n
)))]);
set
(
pclr
,
'edgecolor'
,
'none'
);
axis
square
;
% caxis([min(min(FIELD(:,:,n))),max(max(FIELD(:,:,n)))]);
xlabel
(
XNAME
);
ylabel
(
YNAME
);
%colorbar;
title
([
FIELDNAME
,
', $t \approx$'
,
sprintf
(
'%.3d'
,
ceil
(
T
(
n
)))
...
,
', scaling = '
,
sprintf
(
'%.1e'
,
scale
)]);
drawnow
% Capture the plot as an image
frame
=
getframe
(
fig
);
im
=
frame2im
(
frame
);
[
imind
,
cm
]
=
rgb2ind
(
im
,
64
);
[
imind
,
cm
]
=
rgb2ind
(
im
,
32
);
% Write to the GIF File
if
in
==
1
imwrite
(
imind
,
cm
,
GIFNAME
,
'gif'
,
'Loopcount'
,
inf
);
...
...
This diff is collapsed.
Click to expand it.
matlab/create_gif_1D.m
+
1
−
1
View file @
b1b0b4c2
...
...
@@ -21,7 +21,7 @@ fig = figure;
nbytes
=
fprintf
(
2
,
'frame %d/%d'
,
in
,
numel
(
FIELD
(
1
,
1
,:)));
for
n
=
FRAMES
% loop over selected frames
scale
=
max
(
FIELD
(:,
n
));
plot
(
X
,
FIELD
(:,
n
)/
scale
);
plot
(
X
,
FIELD
(:,
n
)/
scale
,
linestyle
);
ylim
([
YMIN
,
YMAX
]);
xlim
([
XMIN
,
XMAX
]);
title
([
'$t \approx$'
,
sprintf
(
'%.3d'
,
ceil
(
T
(
n
))),
', scaling = '
,
sprintf
(
'%.1e'
,
scale
)]);
xlabel
(
XNAME
);
ylabel
(
FIELDNAME
);
...
...
This diff is collapsed.
Click to expand it.
wk/fort.90
+
25
−
25
View file @
b1b0b4c2
&BASIC
nrun = 100000000
dt = 0.
00
01
tmax =
2
0
dt = 0.01
tmax =
15
0
RESTART = .false.
/
&GRID
pmaxe =
0
jmaxe =
6
pmaxi =
0
jmaxi =
6
Nr =
64
pmaxe =
2
jmaxe =
1
pmaxi =
2
jmaxi =
1
Nr =
100
Lr = 40
Nz =
64
Nz =
100
Lz = 40
kpar = 0
/
&OUTPUT_PAR
nsave_0d = 0
nsave_1d = 0
nsave_2d =
1000
0
nsave_5d =
100
00
nsave_2d =
2
0
nsave_5d =
2
00
write_Na00 = .true.
write_moments = .true.
write_phi = .true.
write_non_lin = .
fals
e.
write_non_lin = .
tru
e.
write_doubleprecision = .true.
resfile0 = '
KH_lin_mode_Nz_16_A_1.25_64x32
_L_40_
lin_
Pe_
0
_Je_
6
_Pi_
0
_Ji_
6
_nB_0_nN_
0
_nu_
0e+00_
_mu_
1
e-04_'
rstfile0 = '../checkpoint/cp_
KH_lin_mode_Nz_16_A_1.25_64x32
_L_40_
lin_
Pe_
0
_Je_
6
_Pi_
0
_Ji_
6
_nB_0_nN_
0
_nu_
0e+00_
_mu_
1
e-04_'
resfile0 = '
ZP_forced_sym_100x50
_L_40_Pe_
2
_Je_
1
_Pi_
2
_Ji_
1
_nB_0
.5
_nN_
1
_nu_
1e-02_DG
_mu_
5
e-04_'
rstfile0 = '../checkpoint/cp_
ZP_forced_sym_100x50
_L_40_Pe_
2
_Je_
1
_Pi_
2
_Ji_
1
_nB_0
.5
_nN_
1
_nu_
1e-02_DG
_mu_
5
e-04_'
job2load = 0
/
&MODEL_PAR
! Collisionality
CO =
0
CO =
-2
DK = .false.
NON_LIN = .
fals
e.
mu = 0.000
1
nu = 0
NON_LIN = .
tru
e.
mu = 0.000
5
nu = 0
.01
tau_e = 1
tau_i = 1
sigma_e = 0.023338
sigma_i = 1
q_e = -1
q_i = 1
eta_n =
0
eta_n =
1
eta_T = 0
eta_B = 0
eta_B = 0
.5
lambdaD = 0
kr0KH =
2.5133
A0KH =
1.25
kr0KH =
0
A0KH =
0
/
&INITIAL_CON
only_Na00 =.false.
initback_moments =0
initnoise_moments =
0.0001
initnoise_moments =
5e-05
iseed =42
selfmat_file ='../iCa/self_Coll_GKE_0_GKI_0_ESELF_1_ISELF_1_Pmaxe_
0
_Jmaxe_
6
_Pmaxi_
0
_Jmaxi_
6
_pamaxx_10.h5'
eimat_file ='../iCa/ei_Coll_GKE_0_GKI_0_ETEST_1_EBACK_1_Pmaxe_
0
_Jmaxe_
6
_Pmaxi_
0
_Jmaxi_
6
_pamaxx_10_tau_1.0000_mu_0.0233.h5'
iemat_file ='../iCa/ie_Coll_GKE_0_GKI_0_ITEST_1_IBACK_1_Pmaxe_
0
_Jmaxe_
6
_Pmaxi_
0
_Jmaxi_
6
_pamaxx_10_tau_1.0000_mu_0.0233.h5'
selfmat_file ='../iCa/self_Coll_GKE_0_GKI_0_ESELF_1_ISELF_1_Pmaxe_
2
_Jmaxe_
1
_Pmaxi_
2
_Jmaxi_
1
_pamaxx_10.h5'
eimat_file ='../iCa/ei_Coll_GKE_0_GKI_0_ETEST_1_EBACK_1_Pmaxe_
2
_Jmaxe_
1
_Pmaxi_
2
_Jmaxi_
1
_pamaxx_10_tau_1.0000_mu_0.0233.h5'
iemat_file ='../iCa/ie_Coll_GKE_0_GKI_0_ITEST_1_IBACK_1_Pmaxe_
2
_Jmaxe_
1
_Pmaxi_
2
_Jmaxi_
1
_pamaxx_10_tau_1.0000_mu_0.0233.h5'
/
&TIME_INTEGRATION_PAR
numerical_scheme='RK4'
...
...
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