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
d35c4f20
Commit
d35c4f20
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
scripts update
parent
cbad6e72
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
wk/analysis_3D.m
+10
-10
10 additions, 10 deletions
wk/analysis_3D.m
wk/analysis_header.m
+2
-2
2 additions, 2 deletions
wk/analysis_header.m
wk/debug_script.m
+14
-2
14 additions, 2 deletions
wk/debug_script.m
wk/quick_run.m
+1
-1
1 addition, 1 deletion
wk/quick_run.m
with
27 additions
and
15 deletions
wk/analysis_3D.m
+
10
−
10
View file @
d35c4f20
...
@@ -10,9 +10,9 @@ system(['mkdir -p ',MISCDIR]);
...
@@ -10,9 +10,9 @@ system(['mkdir -p ',MISCDIR]);
CMD
=
[
'rsync '
,
LOCALDIR
,
'outputs* '
,
MISCDIR
];
disp
(
CMD
);
CMD
=
[
'rsync '
,
LOCALDIR
,
'outputs* '
,
MISCDIR
];
disp
(
CMD
);
system
(
CMD
);
system
(
CMD
);
% Load outputs from jobnummin up to jobnummax
% Load outputs from jobnummin up to jobnummax
JOBNUMMIN
=
0
7
;
JOBNUMMAX
=
20
;
JOBNUMMIN
=
1
0
;
JOBNUMMAX
=
11
;
data
=
compile_results
(
MISCDIR
,
JOBNUMMIN
,
JOBNUMMAX
);
%Compile the results from first output found to JOBNUMMAX if existing
data
=
compile_results
(
MISCDIR
,
JOBNUMMIN
,
JOBNUMMAX
);
%Compile the results from first output found to JOBNUMMAX if existing
data
.
localdir
=
LOCALDIR
;
%% PLOTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PLOTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
default_plots_options
default_plots_options
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
if
0
if
0
%% MOVIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MOVIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Options
% Options
options
.
INTERP
=
1
;
options
.
INTERP
=
0
;
options
.
POLARPLOT
=
0
;
options
.
POLARPLOT
=
0
;
options
.
NAME
=
'\phi'
;
options
.
NAME
=
'\phi'
;
% options.NAME = 'N_i^{00}';
% options.NAME = 'N_i^{00}';
...
@@ -48,12 +48,12 @@ options.NAME = '\phi';
...
@@ -48,12 +48,12 @@ options.NAME = '\phi';
% options.NAME = 'n_i^{NZ}';
% options.NAME = 'n_i^{NZ}';
% options.NAME = '\Gamma_x';
% options.NAME = '\Gamma_x';
% options.NAME = 'n_i';
% options.NAME = 'n_i';
options
.
PLAN
=
'
x
z'
;
options
.
PLAN
=
'
y
z'
;
% options.NAME = 'f_e';
% options.NAME = 'f_e';
% options.PLAN = 'sx';
% options.PLAN = 'sx';
options
.
COMP
=
'avg'
;
options
.
COMP
=
'avg'
;
% options.TIME = dat.Ts5D;
% options.TIME = dat.Ts5D;
options
.
TIME
=
1
10
0
:
0.1
:
1
1
70
;
options
.
TIME
=
1
25
0
:
0.1
:
1
3
70
;
data
.
EPS
=
0.1
;
data
.
EPS
=
0.1
;
data
.
a
=
data
.
EPS
*
2000
;
data
.
a
=
data
.
EPS
*
2000
;
create_film
(
data
,
options
,
'.gif'
)
create_film
(
data
,
options
,
'.gif'
)
...
@@ -65,17 +65,17 @@ if 0
...
@@ -65,17 +65,17 @@ if 0
options
.
INTERP
=
0
;
options
.
INTERP
=
0
;
options
.
POLARPLOT
=
0
;
options
.
POLARPLOT
=
0
;
options
.
AXISEQUAL
=
1
;
options
.
AXISEQUAL
=
1
;
options
.
NAME
=
'\phi'
;
%
options.NAME = '\phi';
% options.NAME = 'n_i';
% options.NAME = 'n_i';
%
options.NAME = 'N_i^{00}';
options
.
NAME
=
'N_i^{00}'
;
% options.NAME = 'T_i';
% options.NAME = 'T_i';
% options.NAME = '\Gamma_x';
% options.NAME = '\Gamma_x';
% options.NAME = 'k^2n_e';
% options.NAME = 'k^2n_e';
options
.
PLAN
=
'
x
z'
;
options
.
PLAN
=
'
y
z'
;
% options.NAME = 'f_i';
% options.NAME = 'f_i';
% options.PLAN = 'sx';
% options.PLAN = 'sx';
options
.
COMP
=
9
;
options
.
COMP
=
'avg'
;
options
.
TIME
=
[
1
1
00
1
1
50
];
options
.
TIME
=
[
1
3
00
1
3
50
];
data
.
a
=
data
.
EPS
*
2e3
;
data
.
a
=
data
.
EPS
*
2e3
;
fig
=
photomaton
(
data
,
options
);
fig
=
photomaton
(
data
,
options
);
save_figure
(
data
,
fig
)
save_figure
(
data
,
fig
)
...
...
This diff is collapsed.
Click to expand it.
wk/analysis_header.m
+
2
−
2
View file @
d35c4f20
...
@@ -5,8 +5,8 @@ helazdir = '/home/ahoffman/HeLaZ/';
...
@@ -5,8 +5,8 @@ helazdir = '/home/ahoffman/HeLaZ/';
outfile
=
''
;
outfile
=
''
;
outfile
=
''
;
outfile
=
''
;
outfile
=
''
;
outfile
=
''
;
outfile
=
'shearless_cyclone/128x128x16_
12_3_L_120_CBC_1.0
'
;
outfile
=
'shearless_cyclone/128x128x16_
CBC_SG_study
'
;
% outfile ='shearless_cyclone/128x128x16xdmax_L_120_CBC_1.0';
% outfile ='shearless_cyclone/128x128x16xdmax_
6_
L_120_CBC_1.0';
% outfile ='shearless_cyclone/linear_CBC_100_D_16';
% outfile ='shearless_cyclone/linear_CBC_100_D_16';
% outfile ='quick_run/CLOS_1_64x64_5x3_L_120_kN_2.0_kT_0.5_nu_1e-01_SGGK';
% outfile ='quick_run/CLOS_1_64x64_5x3_L_120_kN_2.0_kT_0.5_nu_1e-01_SGGK';
% outfile ='pedestal/64x64x16x2x1_L_300_LnT_20_nu_0.1';
% outfile ='pedestal/64x64x16x2x1_L_300_LnT_20_nu_0.1';
...
...
This diff is collapsed.
Click to expand it.
wk/debug_script.m
+
14
−
2
View file @
d35c4f20
system('cd ../results/debug/test_diag; mpirun -np 8 ./helaz3_dbg 2 2 2; cd $HOME/HeLaZ/wk');
% system('cd ../results/dev/test_diag; ./helaz3_dbg; cd $HOME/HeLaZ/wk');
% system('cd ../results/dev/test_diag; mpirun -np 2 ./helaz3_dbg 1 2 1; cd $HOME/HeLaZ/wk');
system
(
'cd ../results/dev/test_diag; mpirun -np 8 ./helaz3_dbg 2 2 2; cd $HOME/HeLaZ/wk'
);
filename = '../results/de
bug
/test_diag/outputs_00.h5';
filename
=
'../results/de
v
/test_diag/outputs_00.h5'
;
% test phi
f_
=
h5read
(
filename
,
'/data/var3d/phi/000004/'
);
f_
=
h5read
(
filename
,
'/data/var3d/phi/000004/'
);
f_gatherv
=
h5read
(
filename
,
'/data/var3d/phi_gatherv/000004/'
);
f_gatherv
=
h5read
(
filename
,
'/data/var3d/phi_gatherv/000004/'
);
f_
=
f_
.
real
+
1
i
*
f_
.
imaginary
;
f_
=
f_
.
real
+
1
i
*
f_
.
imaginary
;
...
@@ -10,9 +13,18 @@ f_gatherv = f_gatherv.real + 1i*f_gatherv.imaginary;
...
@@ -10,9 +13,18 @@ f_gatherv = f_gatherv.real + 1i*f_gatherv.imaginary;
err
=
sum
(
sum
(
sum
(
abs
(
f_
-
f_gatherv
))))/
sum
(
sum
(
sum
(
abs
(
f_
))));
err
=
sum
(
sum
(
sum
(
abs
(
f_
-
f_gatherv
))))/
sum
(
sum
(
sum
(
abs
(
f_
))));
disp
([
'error_phi = '
,
sprintf
(
'%2.2e'
,
err
)]);
disp
([
'error_phi = '
,
sprintf
(
'%2.2e'
,
err
)]);
% test Ni00
f_
=
h5read
(
filename
,
'/data/var3d/Ni00/000004/'
);
f_
=
h5read
(
filename
,
'/data/var3d/Ni00/000004/'
);
f_gatherv
=
h5read
(
filename
,
'/data/var3d/Ni00_gatherv/000004/'
);
f_gatherv
=
h5read
(
filename
,
'/data/var3d/Ni00_gatherv/000004/'
);
f_
=
f_
.
real
+
1
i
*
f_
.
imaginary
;
f_
=
f_
.
real
+
1
i
*
f_
.
imaginary
;
f_gatherv
=
f_gatherv
.
real
+
1
i
*
f_gatherv
.
imaginary
;
f_gatherv
=
f_gatherv
.
real
+
1
i
*
f_gatherv
.
imaginary
;
err
=
sum
(
sum
(
sum
(
abs
(
f_
-
f_gatherv
))))/
sum
(
sum
(
sum
(
abs
(
f_
))));
err
=
sum
(
sum
(
sum
(
abs
(
f_
-
f_gatherv
))))/
sum
(
sum
(
sum
(
abs
(
f_
))));
disp
([
'error_Ni00 = '
,
sprintf
(
'%2.2e'
,
err
)]);
disp
([
'error_Ni00 = '
,
sprintf
(
'%2.2e'
,
err
)]);
% test Nipj
f_
=
h5read
(
filename
,
'/data/var5d/moments_i/000004/'
);
f_gatherv
=
h5read
(
filename
,
'/data/var5d/moments_i_gatherv/000004/'
);
f_
=
f_
.
real
+
1
i
*
f_
.
imaginary
;
f_gatherv
=
f_gatherv
.
real
+
1
i
*
f_gatherv
.
imaginary
;
err
=
sum
(
sum
(
sum
(
sum
(
sum
(
abs
(
f_
-
f_gatherv
))))))/
sum
(
sum
(
sum
(
sum
(
sum
(
abs
(
f_
))))));
disp
([
'error_Nipj = '
,
sprintf
(
'%2.2e'
,
err
)]);
This diff is collapsed.
Click to expand it.
wk/quick_run.m
+
1
−
1
View file @
d35c4f20
...
@@ -113,7 +113,7 @@ end
...
@@ -113,7 +113,7 @@ end
if
0
if
0
%% Ballooning plot
%% Ballooning plot
options
.
time_2_plot
=
data
.
Ts3D
(
end
);
options
.
time_2_plot
=
[
0.9
1
]
*
data
.
Ts3D
(
end
);
options
.
kymodes
=
[
0.5
];
options
.
kymodes
=
[
0.5
];
options
.
normalized
=
1
;
options
.
normalized
=
1
;
options
.
field
=
'phi'
;
options
.
field
=
'phi'
;
...
...
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