added file to generate mesh
This commit is contained in:
parent
46636593b5
commit
a75adaca78
1 changed files with 31 additions and 0 deletions
31
generate_mesh/coffee_cup.m
Normal file
31
generate_mesh/coffee_cup.m
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
clear all
|
||||
clc
|
||||
|
||||
g=[2 -53 53 0.00 0.00 1 0; % #vertices,v_1x, v_2x, v_1y, v_2y, subdomain_left, subdomain_right
|
||||
2 53 83 0 105 1 0;
|
||||
2 83 80 105 105 1 0;
|
||||
2 80 67.1429 105 66 1 3;
|
||||
2 67.1429 50 66 6 1 2;
|
||||
2 50 -50 6 6 1 2;
|
||||
2 -50 -67.1429 6 66 1 2;
|
||||
2 -67.1429 -80 66 105 1 3;
|
||||
2 -80 -83 105 105 1 0;
|
||||
2 -83 -53 105 0 1 0;
|
||||
|
||||
% surface between fluid and air
|
||||
2 -67.1429 67.1429 66 66 3 2;
|
||||
|
||||
% top surface
|
||||
2 -80 80 105 105 0 3
|
||||
]';
|
||||
|
||||
|
||||
[p,e,t] = initmesh(g,'hmax',10);
|
||||
pdemesh(p,e,t)
|
||||
|
||||
|
||||
ascii_write_mesh( p, t, e, mfilename);
|
||||
|
||||
ascii_write_subdomains( p, t, e, mfilename);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue