Skip to content

Commit abfa939

Browse files
committed
simplify
1 parent 82e9e19 commit abfa939

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

examples/gpumd_dynamic/plot_thermo.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
clear; close all;
22

3-
data = table2array(readtable('thermo.out', 'FileType', 'text', 'CommentStyle', '#'));
3+
load thermo.out;
44

5-
t = (1:size(data,1))*0.01;
5+
t = (1:size(thermo,1))*0.01;
66

77
figure;
8-
plot(t, data(:,1));
8+
plot(t, thermo(:,1));
99
xlabel('Time (ps)');
1010
ylabel('Temperature (K)');
1111

examples/gpumd_dynamic/thermo.out

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# col 1: T K
2-
# col 2: K eV
3-
# col 3: U eV
4-
# col 4: Pxx GPa
5-
# col 5: Pyy GPa
6-
# col 6: Pzz GPa
7-
# col 7: Pyz GPa
8-
# col 8: Pzx GPa
9-
# col 9: Pxy GPa
10-
# col 10: ax A
11-
# col 11: ay A
12-
# col 12: az A
13-
# col 13: bx A
14-
# col 14: by A
15-
# col 15: bz A
16-
# col 16: cx A
17-
# col 17: cy A
18-
# col 18: cz A
191
3.2901675025e+02 1.0632188211e+01 -9.3233109522e+02 2.5264497095e+00 2.3874599720e+00 2.2408542079e+00 -3.4999634436e-02 -1.0998127630e-02 2.4265131671e-02 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00
202
3.7768877384e+02 1.2205026418e+01 -9.3354942107e+02 2.4813589890e+00 2.3383718954e+00 2.1892942028e+00 -3.3589290751e-02 -7.5052532169e-03 2.3182020496e-02 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00
213
4.1280651672e+02 1.3339857552e+01 -9.3508436656e+02 2.4092906027e+00 2.2613438205e+00 2.1146969118e+00 -3.5966813685e-02 -9.0295475387e-03 1.2172690049e-02 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00 1.6425982650e+01 1.6425982650e+01 1.6425982650e+01 0.0000000000e+00

0 commit comments

Comments
 (0)