%-------------------------- % @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