% Schematic27.m %
clear; clc; clf;
figure1=figure(1);
axes('Visible','on','Parent',figure1);
hold('all');
patch([0.2 0.8 0.8 0.2 0.2],[0.2 0.2 0.8 0.8 0.2],[0.78 0.78 0.78]);
plot([-0.2 1.2],[0.2 0.2],'k')
plot([-0.2 1.2],[0.8 0.8],'k')
plot([0.2 0.2],[-0.2 1.2],'k')
plot([0.8 0.8],[-0.2 1.2],'k')
plot(-0.1,0.2,'kd','MarkerSize',8);
plot(-0.1,0.8,'kd','MarkerSize',8);
plot(0.5,0.2,'kd','MarkerSize',8);
plot(0.5,0.8,'kd','MarkerSize',8);
plot(1.1,0.2,'kd','MarkerSize',8);
plot(1.1,0.8,'kd','MarkerSize',8);
plot(0.2,-0.1,'kO','MarkerSize',8);
plot(0.8,-0.1,'kO','MarkerSize',8);
plot(0.2,0.5,'kO','MarkerSize',8);
plot(0.8,0.5,'kO','MarkerSize',8);
plot(0.2,1.1,'kO','MarkerSize',8);
plot(0.8,1.1,'kO','MarkerSize',8);
plot(0.5,0.5,'ks','MarkerSize',8);
text('Interpreter','latex','String','$$v_{i-1,j-\frac{1}{2}}$$','Position',[-0.26 0.1],'FontSize',25);
text('Interpreter','latex','String','$$v_{i-1,j+\frac{1}{2}}$$','Position',[-0.26 0.7],'FontSize',25);
text('Interpreter','latex','String','$$v_{i,j-\frac{1}{2}}$$','Position',[0.39 0.1],'FontSize',25);
text('Interpreter','latex','String','$$v_{i,j+\frac{1}{2}}$$','Position',[0.39 0.7],'FontSize',25);
text('Interpreter','latex','String','$$v_{i+1,j-\frac{1}{2}}$$','Position',[0.94 0.1],'FontSize',25);
text('Interpreter','latex','String','$$v_{i+1,j+\frac{1}{2}}$$','Position',[0.94 0.7],'FontSize',25);
text('Interpreter','latex','String','$$u_{i-\frac{1}{2},j-1}$$','Position',[-0.15 -0.17],'FontSize',25)
text('Interpreter','latex','String','$$u_{i+\frac{1}{2},j-1}$$','Position',[0.82  -0.17],'FontSize',25)
text('Interpreter','latex','String','$$u_{i-\frac{1}{2},j}$$','Position',[-0.06 0.43],'FontSize',25)
text('Interpreter','latex','String','$$u_{i+\frac{1}{2},j}$$','Position',[0.82 0.43],'FontSize',25)
text('Interpreter','latex','String','$$u_{i-\frac{1}{2},j+1}$$','Position',[-0.15 1.03],'FontSize',25)
text('Interpreter','latex','String','$$u_{i+\frac{1}{2},j+1}$$','Position',[0.82 1.03],'FontSize',25)
text('Interpreter','latex','String','$p_{ij}$','Position',[0.53 0.5],'FontSize',25);
text('Interpreter','latex','String','$\phi_{ij}$','Position',[0.36 0.5],'FontSize',25);
text('Interpreter','latex','String','$\Omega_{ij}$','Position',[0.3 0.3],'FontSize',25);
axis([-0.3 1.3 -0.3 1.3])
box on; axis image; axis off
set(gcf,'PaperPositionMode','auto')