% COMSOL Multiphysics Model M-file % Generated by COMSOL 3.4 (COMSOL 3.4.0.248, $Date: 2007/10/10 16:07:51 $) flclear fem % COMSOL version clear vrsn vrsn.name = 'COMSOL 3.4'; vrsn.ext = ''; vrsn.major = 0; vrsn.build = 248; vrsn.rcs = '$Name: $'; vrsn.date = '$Date: 2007/10/10 16:07:51 $'; fem.version = vrsn; % Geometry % Import CAD data garr = geomimport('C:\Documents and Settings\Bodo\Desktop\New Folder\gyroid999(S).x_b'); [g1,g2,g3]=deal(garr{:}); % Analyzed geometry clear f s f.objs={g2,g3}; f.name={'F1','F2'}; f.tags={'g2','g3'}; s.objs={g1}; s.name={'CO1'}; s.tags={'g1'}; fem.draw=struct('f',f,'s',s); fem.geom=geomcsg(fem); % (Default values are not included) % Application mode 1 clear appl appl.mode.class = 'SmeSolid3'; appl.module = 'SME'; appl.gporder = 4; appl.cporder = 2; appl.assignsuffix = '_smsld'; clear equ equ.nu = 'mat1_nu'; equ.rho = 'mat1_rho'; equ.E = 'mat1_E'; equ.alpha = 'mat1_alpha'; equ.ind = [1,1,1]; appl.equ = equ; fem.appl{1} = appl; fem.frame = {'ref'}; fem.border = 1; clear units; units.basesystem = 'SI'; fem.units = units; % Library materials clear lib lib.mat{1}.name='Au'; lib.mat{1}.varname='mat1'; lib.mat{1}.variables.nu='0.44'; lib.mat{1}.variables.E='70e9[Pa]'; lib.mat{1}.variables.sigma='45.6e6[S/m]'; lib.mat{1}.variables.alpha='14.2e-6[1/K]'; lib.mat{1}.variables.C='129[J/(kg*K)]'; lib.mat{1}.variables.rho='19300[kg/m^3]'; lib.mat{1}.variables.k='317[W/(m*K)]'; fem.lib = lib; % ODE Settings clear ode clear units; units.basesystem = 'SI'; ode.units = units; fem.ode=ode; % Multiphysics fem=multiphysics(fem); % COMSOL Multiphysics Model M-file % Generated by COMSOL 3.4 (COMSOL 3.4.0.248, $Date: 2007/10/10 16:07:51 $) % Geometry g4=geomcomp({g1},'ns',{'CO1'},'sf','CO1','face','all','edge','all'); [g5]=geomcopy({g4}); [g6]=geomcopy({g5}); g6=move(g6,[0.048644,0,0]); [g7,g8]=geomcopy({g4,g6}); [g9,g10]=geomcopy({g7,g8}); g9=move(g9,[0,0,0.048644]); g10=move(g10,[0,0,0.048644]); [g11,g12,g13,g14]=geomcopy({g4,g6,g9,g10}); [g15,g16,g17,g18]=geomcopy({g11,g12,g13,g14}); g15=move(g15,[0,0.048644,0]); g16=move(g16,[0,0.048644,0]); g17=move(g17,[0,0.048644,0]); g18=move(g18,[0,0.048644,0]); % Geometry objects clear f s f.objs={g2,g3}; f.name={'F1','F2'}; f.tags={'g2','g3'}; s.objs={g4,g6,g9,g10,g15,g16,g17,g18}; s.name={'CO2','CO1','CO3','CO4','CO5','CO6','CO7','CO8'}; s.tags={'g4','g6','g9','g10','g15','g16','g17','g18'}; fem.draw=struct('f',f,'s',s);