2% flatpak run org.octave.Octave <filename>
4% octave --no-window-system --no-gui -qf <filename>
9%
g=[2 0 2 0 0 1 0; % #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
17g=[2 0 1 0 0 1 0; % #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
22%[p,e,t] = initmesh(
g,
'hmax',0.01);
23[p,e,t] = initmesh(
g,
'hmax',0.5);
29% coordinates
p: [2][nnode]
31% edges
e: [7][nedges] boundary edges
32%
e([1,2],:) - start/
end vertex of edge
33%
e([3,4],:) - start/
end values
34%
e(5,:) - segment number
35%
e([6,7],:) - left/right subdomain
function ascii_write_mesh(xc, ia, e, basename) % % Saves the 2D triangular mesh in the minimal way(only coordinates
function vertex connectivity