,
This commit is contained in:
parent
88607cf5e6
commit
4ed27f6ca8
5 changed files with 4668 additions and 0 deletions
1086
Sheet7/Ex_9to13/accu_template/square_2.txt
Normal file
1086
Sheet7/Ex_9to13/accu_template/square_2.txt
Normal file
File diff suppressed because it is too large
Load diff
71
Sheet7/Ex_9to13/accu_template/square_4.m
Normal file
71
Sheet7/Ex_9to13/accu_template/square_4.m
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
% Square:
|
||||||
|
% flatpak run org.octave.Octave <filename>
|
||||||
|
% or
|
||||||
|
% octave --no-window-system --no-gui -qf <filename>
|
||||||
|
|
||||||
|
clear all
|
||||||
|
clc
|
||||||
|
% %% L-shape
|
||||||
|
% g=[2 0 2 0 0 1 0; % #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
% 2 2 2 0 1 1 0;
|
||||||
|
% 2 2 1 1 0.5 1 0;
|
||||||
|
% 2 1 1 0.5 2 1 0;
|
||||||
|
% 2 1 0 2 2 1 0;
|
||||||
|
% 2 0 0 2 0 1 0]';
|
||||||
|
|
||||||
|
%% square
|
||||||
|
% g=[2 0 1 0 0 1 0; % #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
% 2 1 1 0 1 1 0;
|
||||||
|
% 2 1 0 1 1 1 0;
|
||||||
|
% 2 0 0 1 0 1 0]';
|
||||||
|
|
||||||
|
% %% 2 squares
|
||||||
|
% g=[2 0 1 0 0 1 0; % 1 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
% 2 1 1 0 1 1 2;
|
||||||
|
% 2 1 0 1 1 1 0;
|
||||||
|
% 2 0 0 1 0 1 0;
|
||||||
|
% 2 1 2 0 0 2 0; % 2 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
% 2 2 2 0 1 2 0;
|
||||||
|
% 2 2 1 1 1 2 0
|
||||||
|
% ]';
|
||||||
|
|
||||||
|
%% 4 squares
|
||||||
|
g=[2 0 1 0 0 1 0; % 1 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
2 1 1 0 1 1 2;
|
||||||
|
2 1 0 1 1 1 3;
|
||||||
|
2 0 0 1 0 1 0;
|
||||||
|
2 1 2 0 0 2 0; % 2 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
2 2 2 0 1 2 0;
|
||||||
|
2 2 1 1 1 2 4;
|
||||||
|
% 2 1 1 1 0 2 1;
|
||||||
|
% 2 0 1 1 1 3 1; % 3 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
2 1 1 1 2 3 4;
|
||||||
|
2 1 0 2 2 3 0;
|
||||||
|
2 0 0 2 1 3 0;
|
||||||
|
% 2 1 2 1 1 4 2; % 4 #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||||
|
2 2 2 1 2 4 0;
|
||||||
|
2 2 1 2 2 4 0
|
||||||
|
% 2 1 1 2 1 4 3
|
||||||
|
]';
|
||||||
|
|
||||||
|
[p,e,t] = initmesh(g,'hmax',0.1);
|
||||||
|
pdemesh(p,e,t)
|
||||||
|
|
||||||
|
%% GH
|
||||||
|
% output from <https://de.mathworks.com/help/pde/ug/initmesh.html initmesh>
|
||||||
|
%
|
||||||
|
% coordinates p: [2][nnode]
|
||||||
|
% connectivity t: [4][nelem] with t(4,:) are the subdomain numbers
|
||||||
|
% edges e: [7][nedges] boundary edges
|
||||||
|
% e([1,2],:) - start/end vertex of edge
|
||||||
|
% e([3,4],:) - start/end values
|
||||||
|
% e(5,:) - segment number
|
||||||
|
% e([6,7],:) - left/right subdomain
|
||||||
|
|
||||||
|
ascii_write_mesh( p, t, e, mfilename);
|
||||||
|
|
||||||
|
ascii_write_subdomains( p, t, e, mfilename);
|
||||||
|
|
||||||
|
|
||||||
|
% tmp=t(1:3,:)
|
||||||
|
|
||||||
BIN
Sheet7/Ex_9to13/accu_template/square_4.pdf
Normal file
BIN
Sheet7/Ex_9to13/accu_template/square_4.pdf
Normal file
Binary file not shown.
2176
Sheet7/Ex_9to13/accu_template/square_4.txt
Normal file
2176
Sheet7/Ex_9to13/accu_template/square_4.txt
Normal file
File diff suppressed because it is too large
Load diff
1335
Sheet7/Ex_9to13/accu_template/square_4_sd.txt
Normal file
1335
Sheet7/Ex_9to13/accu_template/square_4_sd.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue