rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
test_mic_mac_grid.m
Go to the documentation of this file.
1 %zum Testen: Micro und Macrogitter
2 
3 macro_pts_x = [3,8,8,3];
4 macro_pts_y = [1,1,6,6];
5 macro_tria = [1,2,4;...
6  2,3,4];
7 
8 micro_pts_x = [3, 8, 8, 3, 5.5, 3, 5.5, 8, 5.5];
9 micro_pts_y = [1, 1, 6, 6, 1, 3.5, 3.5, 3.5, 6];
10 micro_tria = [1, 5, 6;...
11  5, 7, 6;...
12  5, 2, 7;...
13  2, 8, 7;...
14  6, 7, 4;...
15  7, 9, 4;...
16  7, 3, 9;...
17  7, 8, 3];
18 
19 macrogrid = triagrid([macro_pts_x;macro_pts_y],macro_tria',[]);
20 microgrid = triagrid([micro_pts_x;micro_pts_y],micro_tria',[]);
21 
22 
23 % PDE-Toolbox:
24 % for k=1:size(macro_tria,1)
25 % tria_pts_x = macro_pts_x(macro_tria(k,:));
26 % tria_pts_y = macro_pts_y(macro_tria(k,:));
27 % pdepoly(tria_pts_x, tria_pts_y, ['MakroT',num2str(k)])
28 % end
29 %
30 % for k=1:size(micro_tria,1)
31 % tria_pts_x = micro_pts_x(micro_tria(k,:));
32 % tria_pts_y = micro_pts_y(micro_tria(k,:));
33 % pdepoly(tria_pts_x, tria_pts_y, ['MikroT',num2str(k)])
34 % end
A triangular conforming grid in two dimensions.
Definition: triagrid.m:17