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
ebf7a53b
Commit
ebf7a53b
authored
10 months ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
update matlab scripts
parent
c2d1d7a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
matlab/compile_results.m
+9
-9
9 additions, 9 deletions
matlab/compile_results.m
matlab/plot/photomaton.m
+1
-5
1 addition, 5 deletions
matlab/plot/photomaton.m
matlab/process_field.m
+3
-21
3 additions, 21 deletions
matlab/process_field.m
with
13 additions
and
35 deletions
matlab/compile_results.m
+
9
−
9
View file @
ebf7a53b
...
...
@@ -63,15 +63,15 @@ while(CONTINUE)
% CPUTIME = h5readatt(filename,'/data/input','cpu_time');
% DT_SIM = h5readatt(filename,'/data/input','dt');
[
P
,
J
,
kx
,
ky
,
z
]
=
load_grid_data
(
filename
);
W_GAMMA
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_gamma'
),
'y'
);
W_HF
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_hf'
),
'y'
);
W_PHI
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_phi'
),
'y'
);
W_NA00
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_Na00'
),
'y'
);
W_NAPJ
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_Napj'
),
'y'
);
W_SAPJ
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_Sapj'
),
'y'
);
W_DENS
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_dens'
),
'y'
);
W_TEMP
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'write_temp'
),
'y'
);
KIN_E
=
strcmp
(
h5readatt
(
filename
,
'/data/input'
,
'
KIN
_E'
),
'
y
'
);
W_GAMMA
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_gamma'
),
'y'
);
W_HF
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_hf'
),
'y'
);
W_PHI
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_phi'
),
'y'
);
W_NA00
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_Na00'
),
'y'
);
W_NAPJ
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_Napj'
),
'y'
);
W_SAPJ
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_Sapj'
),
'y'
);
W_DENS
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_dens'
),
'y'
);
W_TEMP
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/diagnostics
'
,
'write_temp'
),
'y'
);
KIN_E
=
strcmp
(
h5readatt
(
filename
,
'/data/input
/model
'
,
'
ADIAB
_E'
),
'
n
'
);
try
BETA
=
h5readatt
(
filename
,
'/data/input'
,
'beta'
);
catch
...
...
This diff is collapsed.
Click to expand it.
matlab/plot/photomaton.m
+
1
−
5
View file @
ebf7a53b
...
...
@@ -75,17 +75,13 @@ FIGURE.fig = figure; %set(gcf, 'Position', toplot.DIMENSIONS.*[1 1 Ncols Nrows]
tshot
=
DATA
.
Ts5D
(
FRAMES
(
i_
));
end
xlabel
(
toplot
.
XNAME
);
ylabel
(
toplot
.
YNAME
);
% if i_ > 1; set(gca,'ytick',[]); end;
title
([
sprintf
(
'$t c_s/R=%5.2f$'
,
tshot
),
', max = '
,
sprintf
(
'%.1e'
,
frame_max
)]);
if
OPTIONS
.
CLIMAUTO
clim
(
'auto'
)
end
end
if
OPTIONS
.
AXISEQUAL
pbaspect
(
toplot
.
ASPECT
)
end
if
~
strcmp
(
OPTIONS
.
PLAN
,
'kxky'
)
clim
([
-
1
,
1
]
*
frame_max
/
scale
);
%
clim([-1,1]*frame_max/scale);
colormap
(
bluewhitered
);
if
OPTIONS
.
INTERP
shading
interp
;
...
...
This diff is collapsed.
Click to expand it.
matlab/process_field.m
+
3
−
21
View file @
ebf7a53b
...
...
@@ -52,25 +52,8 @@ Lmin_ = min([Xmax_,Ymax_]);
Rx
=
Xmax_
/
Lmin_
*
SCALE
+
(
1
-
SCALE
)
*
1.2
;
Ry
=
Ymax_
/
Lmin_
*
SCALE
+
(
1
-
SCALE
)
*
1.2
;
ASPECT
=
[
Rx
,
Ry
,
1
];
DIMENSIONS
=
[
500
,
1000
,
OPTIONS
.
RESOLUTION
*
Rx
,
OPTIONS
.
RESOLUTION
*
Ry
];
% Polar grid
POLARNAME
=
[];
if
POLARPLOT
POLARNAME
=
'polar'
;
X__
=
(
X
+
DATA
.
a
)
.*
cos
(
Y
);
Y__
=
(
X
+
DATA
.
a
)
.*
sin
(
Y
);
X
=
X__
;
Y
=
Y__
;
XNAME
=
'X'
;
YNAME
=
'Z'
;
DIMENSIONS
=
[
100
,
100
,
OPTIONS
.
RESOLUTION
,
OPTIONS
.
RESOLUTION
];
ASPECT
=
[
1
,
1
,
1
];
sz
=
size
(
X
);
FIELD
=
zeros
(
sz
(
1
),
sz
(
2
),
Nt
);
else
sz
=
size
(
X
);
FIELD
=
zeros
(
sz
(
1
),
sz
(
2
),
Nt
);
end
sz
=
size
(
X
);
FIELD
=
zeros
(
sz
(
1
),
sz
(
2
),
Nt
);
%% Process the field to plot
% --
switch
OPTIONS
.
COMP
...
...
@@ -346,8 +329,7 @@ TOPLOT.Z = Z;
TOPLOT
.
FIELDNAME
=
FIELDNAME
;
TOPLOT
.
XNAME
=
XNAME
;
TOPLOT
.
YNAME
=
YNAME
;
TOPLOT
.
FILENAME
=
[
NAME
,
'_'
,
OPTIONS
.
PLAN
,
'_'
,
COMPNAME
,
'_'
,
POLARNAME
];
TOPLOT
.
DIMENSIONS
=
DIMENSIONS
;
TOPLOT
.
FILENAME
=
[
NAME
,
'_'
,
OPTIONS
.
PLAN
,
'_'
,
COMPNAME
];
TOPLOT
.
ASPECT
=
ASPECT
;
TOPLOT
.
FRAMES
=
FRAMES
;
TOPLOT
.
INTERP
=
INTERP
;
...
...
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