Debian Codegraph @

packages/rol/example/PDE-OPT/flow-opt/3dim/models/darcy/plotmesh.m

raw
1 adj = load('cell_to_node_quad.txt') + 1; %% load node adjacency, increment by 1 for 1-based indexing
2 nodes = load('nodes.txt'); %% load node coordinates
3
4 x = nodes(:,1);
5 y = nodes(:,2);
6 d = adj(:,[1 2 3 4 1]).';
7
8 figure,
9 plot(x(d), y(d), 'k')
10 axis('equal','tight')
11 print('mesh.eps','-depsc2','-r800');