You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.0 KiB

%--------------------------
% @Author: Jingqiao Hu
% @Date: 2022-01-12 20:35:58
% @LastEditTime: 2022-09-03 13:07:11
%--------------------------
function [nelx, nely, microx, poly, eps] = setting_info(optDesign)
switch optDesign
case 'Lshape'
nelx = 4; nely = 4;
microx = 64;
cx = nelx * microx / 2;
cy = nely * microx / 2;
poly = [-cx, -cy;
cx, -cy;
cx, 0;
0, 0;
0, cy;
-cx, cy];
eps = 0.6;
case 'cantilever'
nelx = 4; nely = 2; microx = 64;
eps = 0.45;
cx = nelx * microx / 2;
cy = nely * microx / 2;
poly = [-cx, -cy;
cx, -cy;
cx, cy;
-cx, cy];
case 'cantilever2'
nelx = 30; nely = 10; microx = 32;
eps = 0.45;
cx = nelx * microx / 2;
cy = nely * microx / 2;
poly = [-cx, -cy;
cx, -cy;
cx, cy;
-cx, cy];
end
end