demo14

Contents

2D Hyperrectangle [-1,1]x[0,1] - mesh with 3-order orthotopes

type='orthotope';order=3;

fprintf('--------------- fc_hypermesh.demos.demo14\n')
fprintf('2D Hyperrectangle [-1,1]x[0,1] - mesh with %d-order %s elements\n',order,type);
fprintf('---------------\n')

Oh=fc_hypermesh.OrthMesh([10,7],'box',[-1,1;0,1],'type',type,'order',order);

close all
fc_tools.graphics.monitors.onGrid(2,3,'figures',1:5,'covers',0.9)
% plot the main mesh
figure(1)
Oh.plotmesh('legend',true)
% plot the 1-face meshes
figure(2)
Oh.plotmesh('color',[0.8,0.8,0.8])
hold on
Oh.plotmesh('m',1,'Linewidth',2,'legend',true)
axis off
% plot the 0-face meshes
figure(3)
Oh.plotmesh('m',1,'color','k')
hold on
Oh.plotmesh('m',0,'legend',true)
axis off

% plot the main mesh
figure(4)
Oh.plotmesh()
hold on
Oh.plotnodes()
% plot the 1-face meshes
figure(5)
Oh.plotmesh('color','Olive')
hold on
Oh.plotmesh('m',1,'Linewidth',2)
Oh.plotnodes('m',1,'vsize',25,'vcolor','Purple','nsize',20,'ncolor','MediumPurple')
axis off
--------------- fc_hypermesh.demos.demo14
2D Hyperrectangle [-1,1]x[0,1] - mesh with 3-order orthotope elements
---------------
demo14-1.pngdemo14-2.pngdemo14-3.pngdemo14-4.pngdemo14-5.png