Skip to content

Commit

Permalink
Update figure for GMD style.
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Dec 5, 2021
1 parent 0e395dc commit 234024e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Binary file modified visu/fig_parperf3D_all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed visu/fig_perf23D_stokes.png
Binary file not shown.
Binary file modified visu/fig_perf23D_stokes_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified visu/fig_stokes_ini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified visu/fig_stokes_ve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions visu/viz_perf_stokes.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
mylimx = [0.8 3.e3];
ylab2 = 0.963;

fig1 = 0;
fig1 = 1;
fig2 = 1;

%%
Expand All @@ -81,7 +81,7 @@
xtickangle(45)
set(gca,'fontname','Courier')
xlabel('\bf{nx}', 'fontsize',FS)
text(40,ylab,'a)','fontsize',FS+2,'fontname','Courier')
text(35,ylab,'(a)','fontsize',FS+2,'fontname','Courier')


sp2 = subplot(122);
Expand All @@ -99,7 +99,7 @@
xtickangle(45)
set(gca,'fontname','Courier')
xlabel('\bf{nx}', 'fontsize',FS)
text(37,ylab,'b)','fontsize',FS+2,'fontname','Courier')
text(33,ylab,'(b)','fontsize',FS+2,'fontname','Courier')

pos1 = get(sp1,'position'); set(sp1,'position',[pos1(1)*0.97 pos1(2)*1.15 pos1(3)*1 pos1(4)*1])
pos2 = get(sp2,'position'); set(sp2,'position',[pos2(1)*0.97 pos2(2)*1.15 pos2(3)*1 pos2(4)*1])
Expand All @@ -124,7 +124,7 @@
xtickangle(45)
set(gca,'fontname','Courier')
xlabel('\bf{P (GPUs)}', 'fontsize',FS)
text(1.3,ylab2,'a)','fontsize',FS+2,'fontname','Courier')
text(1.1,ylab2,'(a)','fontsize',FS+2,'fontname','Courier')

sp2 = subplot(122);
% stokes_3D_mxpu_octo_2(1,:),stokes_3D_mxpu_octo_2(end,:)./stokes_3D_mxpu_octo_2(end,1), '-o', ...
Expand All @@ -140,7 +140,7 @@
xtickangle(45)
set(gca,'fontname','Courier')
xlabel('\bf{P (GPUs)}', 'fontsize',FS)
text(1.3,ylab2,'b)','fontsize',FS+2,'fontname','Courier')
text(1.1,ylab2,'(b)','fontsize',FS+2,'fontname','Courier')

pos1 = get(sp1,'position'); set(sp1,'position',[pos1(1)*1.04 pos1(2)*1.2 pos1(3)*1 pos1(4)*1])
pos2 = get(sp2,'position'); set(sp2,'position',[pos2(1)*0.96 pos2(2)*1.2 pos2(3)*1 pos2(4)*1])
Expand Down
18 changes: 9 additions & 9 deletions visu/viz_stokes.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
clear

fig1=0;
fig1=1;
fig2=1;

lx = 10; ly = 10; lz = 10;
Expand Down Expand Up @@ -34,7 +34,7 @@
set(gca,'fontname','Courier')
ylabel({'\bf{ly}';' ';' '}, 'fontsize',FS)
xlabel({' ';' ';'\bf{lx}'}, 'fontsize',FS)
text(-5,13,'a)','fontsize',FS+2,'fontname','Courier')
text(-5,13,'(a)','fontsize',FS+2,'fontname','Courier')

%%3D
sp2 = subplot(122);
Expand Down Expand Up @@ -87,7 +87,7 @@
cb.Position = [posCB(1)*1.06 posCB(2)*2.5 posCB(3)*1.1 posCB(4)*0.4];
% set(cb,'fontsize',FS)
set(gca,'fontsize',FS,'fontname','Courier')
text(390,0,365,'b)','fontsize',FS+2,'fontname','Courier')
text(390,0,365,'(b)','fontsize',FS+2,'fontname','Courier')
text(-400,0,80,'\bf{log_{10}\mu_{shear}}','fontsize',FS-2,'fontname','Courier')

box on
Expand Down Expand Up @@ -119,7 +119,7 @@
set(gca,'fontname','Courier')
ylabel({'\bf{∆V_{vertical}}',' ','ly'}, 'fontsize',FS)
% title({'Stokes 2D',' '})
text(0.4,9.3,'a)','fontsize',FS+2,'fontname','Courier','color','w')
text(0.4,9.3,'(a)','fontsize',FS+2,'fontname','Courier','color','w')

sp2 = subplot(323); imagesc(xc_2D, yc_2D, Pt_2D'), axis xy equal tight, set(gca, 'fontsize',FS, 'linewidth',1.3)
colorbar
Expand All @@ -128,7 +128,7 @@
set(gca,'fontname','Courier')
set(gca,'TickLength',[0,0])
ylabel({'\bf{Pressure}',' ','ly'}, 'fontsize',FS)
text(0.4,9.3,'c)','fontsize',FS+2,'fontname','Courier','color','w')
text(0.4,9.3,'(c)','fontsize',FS+2,'fontname','Courier','color','w')

sp3 = subplot(325); imagesc(xc_2D(2:end), yc_2D(2:end), Txy_2D'), axis xy equal tight, set(gca, 'fontsize',FS, 'linewidth',1.3)
cb=colorbar;
Expand All @@ -140,7 +140,7 @@
set(gca,'TickLength',[0,0])
xlabel('\bf{lx}', 'fontsize',FS)
ylabel({'\bf{\tau_{shear}}',' ','ly'}, 'fontsize',FS)
text(0.4,9.3,'e)','fontsize',FS+2,'fontname','Courier','color','w')
text(0.4,9.3,'(e)','fontsize',FS+2,'fontname','Courier','color','w')

%% 3D
sp4 = subplot(322);
Expand Down Expand Up @@ -185,7 +185,7 @@
% text(350,160,0,'lx','fontsize',FS,'fontname','Courier') %ylabel('ly','fontsize',FS)
zlabel('\bf{lz}','fontsize',FS)
% title({'Stokes 3D',' '})
text(250,0,280,'b)','fontsize',FS+2,'fontname','Courier')
text(250,0,280,'(b)','fontsize',FS+2,'fontname','Courier')

cb = colorbar;
% cb.Location = 'southoutside';
Expand Down Expand Up @@ -248,7 +248,7 @@
% text(150,315,0,'ly','fontsize',FS,'fontname','Courier') %xlabel('lx','fontsize',FS)
% text(350,160,0,'lx','fontsize',FS,'fontname','Courier') %ylabel('ly','fontsize',FS)
zlabel('\bf{lz}','fontsize',FS)
text(250,0,280,'d)','fontsize',FS+2,'fontname','Courier')
text(250,0,280,'(d)','fontsize',FS+2,'fontname','Courier')

cb = colorbar;
% cb.Location = 'southoutside';
Expand Down Expand Up @@ -311,7 +311,7 @@
text(150,315,0,'\bf{ly}','fontsize',FS,'fontname','Courier') %xlabel('lx','fontsize',FS)
text(350,160,0,'\bf{lx}','fontsize',FS,'fontname','Courier') %ylabel('ly','fontsize',FS)
zlabel('\bf{lz}','fontsize',FS)
text(250,0,280,'f)','fontsize',FS+2,'fontname','Courier')
text(250,0,280,'(f)','fontsize',FS+2,'fontname','Courier')

cb = colorbar;
% cb.Location = 'southoutside';
Expand Down

0 comments on commit 234024e

Please sign in to comment.