function Tabl_EM = Modelo_reducido_completo(Primario,Secundario,h_bob,freq) % % % Modelo_reducido_completo.m % % Model exported on Jun 7 2020, 13:00 by COMSOL 5.5.0.306. import com.comsol.model.* import com.comsol.model.util.* model = ModelUtil.create('Model'); model.modelPath('C:\Instituto_Universitario_Circe_Universidad\Laboratorio\11kW\Optimizador_completo'); model.label('Modelo_reducido_completo.mph'); %Primario introduzco un array d_cable1=Primario(1); N1=Primario(2) I1=Primario(3) Ferrita11=Primario(4)/100 Ferrita12=Primario(5)/100 %Secundario introduzco un array d_cable2=Secundario(1) N2=Secundario(2) I2=Secundario(3) Ferrita2=Secundario(4)/100 %% PARÁMETROS model.param.set('Pri1', '0.65'); model.param.set('Pri2', '0.5'); model.param.set('N1', N1); model.param.set('d_cable1', d_cable1); model.param.set('seccion1', '35'); model.param.set('Sec1', '0.38'); model.param.set('Sec2', '0.38'); model.param.set('N2', '10'); model.param.set('d_cable2', d_cable2); model.param.set('seccion2', '35'); model.param.set('I1', I1); model.param.set('I2', I2); model.param.set('freq', '85e3'); model.param.set('Empaquetamiento', '1.3'); model.param.set('Sec_fe1', '0.4'); model.param.set('Sec_fe2', '0.4'); model.param.set('h_bob', '0.21-d_cable1/2-d_cable2/2'); model.param.set('z_fe2', '5[mm]'); model.param.set('d_fe_al2', '5.6[mm]'); model.param.set('z_al21', '2 [mm]'); model.param.set('d_al_al2', '1[cm]'); model.param.set('Sec_al11', '0.42'); model.param.set('Sec_al21', '0.42'); model.param.set('Sec_al12', '0.8'); model.param.set('Sec_al22', '0.8'); model.param.set('z_al22', '5[mm]'); model.param.set('Pri_fe1', '0.65'); model.param.set('Pri_fe2', '0.51'); model.param.set('z_fe1', '5[mm]'); model.param.set('d_fe_al1', '30[mm]'); model.param.set('z_al1', '3[mm]'); model.param.set('Pri_al1', '0.75'); model.param.set('Pri_al2', '0.6'); model.param.set('Ferrita2', Ferrita2); model.param.set('Ferrita11', Ferrita11); model.param.set('Ferrita12', Ferrita12); model.component.create('comp1', true); %% GEOMETRÍA model.component('comp1').geom.create('geom1', 3); model.component('comp1').geom('geom1').create('wp1', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp1').set('unite', true); model.component('comp1').geom('geom1').feature('wp1').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp1').geom.feature('r1').set('size', {'Pri1/2' 'Pri2/2'}); model.component('comp1').geom('geom1').feature('wp1').geom.create('r2', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp1').geom.feature('r2').set('size', {'(Pri1-2*N1*d_cable1*Empaquetamiento)/2' '(Pri2-2*N1*d_cable1*Empaquetamiento)/2'}); model.component('comp1').geom('geom1').feature('wp1').geom.create('fil1', 'Fillet'); model.component('comp1').geom('geom1').feature('wp1').geom.feature('fil1').set('radius', 'N1*d_cable1*Empaquetamiento'); model.component('comp1').geom('geom1').feature('wp1').geom.feature('fil1').selection('point').set('r1(1)', 3); model.component('comp1').geom('geom1').feature('wp1').geom.create('dif1', 'Difference'); model.component('comp1').geom('geom1').feature('wp1').geom.feature('dif1').selection('input').set({'fil1'}); model.component('comp1').geom('geom1').feature('wp1').geom.feature('dif1').selection('input2').set({'r2'}); model.component('comp1').geom('geom1').create('ext1', 'Extrude'); model.component('comp1').geom('geom1').feature('ext1').setIndex('distance', '-d_cable1', 0); model.component('comp1').geom('geom1').feature('ext1').selection('input').set({'wp1'}); model.component('comp1').geom('geom1').create('wp2', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp2').set('quickz', 'h_bob'); model.component('comp1').geom('geom1').feature('wp2').set('unite', true); model.component('comp1').geom('geom1').feature('wp2').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp2').geom.feature('r1').set('size', {'Sec1/2' 'Sec2/2'}); model.component('comp1').geom('geom1').feature('wp2').geom.create('r2', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp2').geom.feature('r2').set('size', {'(Sec1-2*N2*d_cable2*Empaquetamiento)/2' '(Sec2-2*N2*d_cable2*Empaquetamiento)/2'}); model.component('comp1').geom('geom1').feature('wp2').geom.create('fil1', 'Fillet'); model.component('comp1').geom('geom1').feature('wp2').geom.feature('fil1').set('radius', 'N2*d_cable2*Empaquetamiento'); model.component('comp1').geom('geom1').feature('wp2').geom.feature('fil1').selection('point').set('r1(1)', 3); model.component('comp1').geom('geom1').feature('wp2').geom.create('dif1', 'Difference'); model.component('comp1').geom('geom1').feature('wp2').geom.feature('dif1').selection('input').set({'fil1'}); model.component('comp1').geom('geom1').feature('wp2').geom.feature('dif1').selection('input2').set({'r2'}); model.component('comp1').geom('geom1').create('ext2', 'Extrude'); model.component('comp1').geom('geom1').feature('ext2').setIndex('distance', 'd_cable2', 0); model.component('comp1').geom('geom1').feature('ext2').selection('input').set({'wp2'}); model.component('comp1').geom('geom1').create('wp3', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp3').set('quickplane', 'xz'); model.component('comp1').geom('geom1').feature('wp3').set('unite', true); model.component('comp1').geom('geom1').feature('wp3').geom.create('c1', 'Circle'); model.component('comp1').geom('geom1').feature('wp3').geom.feature('c1').set('rot', -90); model.component('comp1').geom('geom1').feature('wp3').geom.feature('c1').set('r', 1.5); model.component('comp1').geom('geom1').feature('wp3').geom.feature('c1').set('angle', 180); model.component('comp1').geom('geom1').create('rev1', 'Revolve'); model.component('comp1').geom('geom1').feature('rev1').set('angle2', 90); model.component('comp1').geom('geom1').feature('rev1').selection('input').set({'wp3'}); model.component('comp1').geom('geom1').create('wp4', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp4').set('quickz', 'h_bob+d_cable2+1[mm]'); model.component('comp1').geom('geom1').feature('wp4').set('unite', true); model.component('comp1').geom('geom1').feature('wp4').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp4').geom.feature('r1').set('size', {'Sec_fe1/2' 'Sec_fe2/2'}); model.component('comp1').geom('geom1').feature('wp4').geom.create('r2', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp4').geom.feature('r2').set('size', {'Ferrita2/2' 'Ferrita2/2'}); model.component('comp1').geom('geom1').feature('wp4').geom.create('dif1', 'Difference'); model.component('comp1').geom('geom1').feature('wp4').geom.feature('dif1').selection('input').set({'r1'}); model.component('comp1').geom('geom1').feature('wp4').geom.feature('dif1').selection('input2').set({'r2'}); model.component('comp1').geom('geom1').create('ext3', 'Extrude'); model.component('comp1').geom('geom1').feature('ext3').setIndex('distance', 'z_fe2', 0); model.component('comp1').geom('geom1').feature('ext3').selection('input').set({'wp4'}); model.component('comp1').geom('geom1').create('wp5', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp5').set('quickz', '-d_cable1-1[mm]'); model.component('comp1').geom('geom1').feature('wp5').set('unite', true); model.component('comp1').geom('geom1').feature('wp5').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp5').geom.feature('r1').set('size', {'Pri_fe1/2' 'Pri_fe2/2'}); model.component('comp1').geom('geom1').feature('wp5').geom.create('r2', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp5').geom.feature('r2').set('size', {'Ferrita11/2' 'Ferrita12/2'}); model.component('comp1').geom('geom1').feature('wp5').geom.create('dif1', 'Difference'); model.component('comp1').geom('geom1').feature('wp5').geom.feature('dif1').selection('input').set({'r1'}); model.component('comp1').geom('geom1').feature('wp5').geom.feature('dif1').selection('input2').set({'r2'}); model.component('comp1').geom('geom1').create('ext4', 'Extrude'); model.component('comp1').geom('geom1').feature('ext4').setIndex('distance', '-z_fe1', 0); model.component('comp1').geom('geom1').feature('ext4').selection('input').set({'wp5'}); model.component('comp1').geom('geom1').create('wp6', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp6').set('quickz', 'h_bob+d_cable2+1[mm]+z_fe2+d_fe_al2'); model.component('comp1').geom('geom1').feature('wp6').set('unite', true); model.component('comp1').geom('geom1').feature('wp6').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp6').geom.feature('r1').set('size', {'Sec_al11/2' 'Sec_al21/2'}); model.component('comp1').geom('geom1').create('ext5', 'Extrude'); model.component('comp1').geom('geom1').feature('ext5').setIndex('distance', 'z_al21', 0); model.component('comp1').geom('geom1').feature('ext5').selection('input').set({'wp6'}); model.component('comp1').geom('geom1').create('wp7', 'WorkPlane'); model.component('comp1').geom('geom1').feature('wp7').set('quickz', '-d_cable1-1[mm]-z_fe1-d_fe_al1'); model.component('comp1').geom('geom1').feature('wp7').set('unite', true); model.component('comp1').geom('geom1').feature('wp7').geom.create('r1', 'Rectangle'); model.component('comp1').geom('geom1').feature('wp7').geom.feature('r1').set('size', {'Pri_al1/2' 'Pri_al2/2'}); model.component('comp1').geom('geom1').create('ext6', 'Extrude'); model.component('comp1').geom('geom1').feature('ext6').setIndex('distance', '-z_al1', 0); model.component('comp1').geom('geom1').feature('ext6').selection('input').set({'wp7'}); model.component('comp1').geom('geom1').create('sel1', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel1').label('Bobina1'); model.component('comp1').geom('geom1').feature('sel1').selection('selection').set('ext1(1)', 1); model.component('comp1').geom('geom1').create('sel2', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel2').label('Bobina2'); model.component('comp1').geom('geom1').feature('sel2').selection('selection').set('ext2(1)', 1); model.component('comp1').geom('geom1').create('sel3', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel3').label('Ferrita1'); model.component('comp1').geom('geom1').feature('sel3').selection('selection').set('ext4(1)', 1); model.component('comp1').geom('geom1').create('sel5', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel5').label('Al1'); model.component('comp1').geom('geom1').feature('sel5').selection('selection').set('ext6(1)', 1); model.component('comp1').geom('geom1').create('sel6', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel6').label('Al21'); model.component('comp1').geom('geom1').feature('sel6').selection('selection').set('ext5(1)', 1); model.component('comp1').geom('geom1').create('sel4', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel4').label('Ferrita2'); model.component('comp1').geom('geom1').feature('sel4').selection('selection').set('ext3(1)', 1); model.component('comp1').geom('geom1').create('sel7', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel7').label('Entrada_bob_1'); model.component('comp1').geom('geom1').feature('sel7').selection('selection').init(2); model.component('comp1').geom('geom1').feature('sel7').selection('selection').set('ext1(1)', 7); model.component('comp1').geom('geom1').create('sel10', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel10').label('Salida_bob_2'); model.component('comp1').geom('geom1').feature('sel10').selection('selection').init(2); model.component('comp1').geom('geom1').feature('sel10').selection('selection').set('ext2(1)', 1); model.component('comp1').geom('geom1').create('sel9', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel9').label('Entrada_bob_2'); model.component('comp1').geom('geom1').feature('sel9').selection('selection').init(2); model.component('comp1').geom('geom1').feature('sel9').selection('selection').set('ext2(1)', 7); model.component('comp1').geom('geom1').create('sel8', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel8').label('Salida_bob_1'); model.component('comp1').geom('geom1').feature('sel8').selection('selection').init(2); model.component('comp1').geom('geom1').feature('sel8').selection('selection').set('ext1(1)', 1); model.component('comp1').geom('geom1').create('sel11', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel11').label('Bobinas'); model.component('comp1').geom('geom1').feature('sel11').selection('selection').set('ext1(1)', 1); model.component('comp1').geom('geom1').feature('sel11').selection('selection').set('ext2(1)', 1); model.component('comp1').geom('geom1').create('sel12', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel12').label('Ferritas'); model.component('comp1').geom('geom1').feature('sel12').selection('selection').set('ext3(1)', 1); model.component('comp1').geom('geom1').feature('sel12').selection('selection').set('ext4(1)', 1); model.component('comp1').geom('geom1').create('sel13', 'ExplicitSelection'); model.component('comp1').geom('geom1').feature('sel13').label('Al'); model.component('comp1').geom('geom1').feature('sel13').selection('selection').set('ext5(1)', 1); model.component('comp1').geom('geom1').feature('sel13').selection('selection').set('ext6(1)', 1); model.component('comp1').geom('geom1').feature('fin').set('repairtoltype', 'relative'); model.component('comp1').geom('geom1').feature('fin').set('repairtol', '10E-10'); model.component('comp1').geom('geom1').run; %% VARIABLES model.component('comp1').variable.create('var1'); model.component('comp1').variable('var1').set('M12', 'imag(mf.VCoil_2/(mf.ICoil_1*2*pi*freq))'); %% MATERIALES model.component('comp1').material.create('mat1', 'Common'); model.component('comp1').material.create('mat2', 'Common'); model.component('comp1').material.create('mat3', 'Common'); model.component('comp1').material('mat2').selection.named('geom1_sel12'); model.component('comp1').material('mat3').selection.named('geom1_sel13'); model.component('comp1').material('mat1').propertyGroup('def').set('relpermeability', {'1' '0' '0' '0' '1' '0' '0' '0' '1'}); model.component('comp1').material('mat1').propertyGroup('def').set('relpermeability_symmetry', '0'); model.component('comp1').material('mat1').propertyGroup('def').set('electricconductivity', {'0.2' '0' '0' '0' '0.2' '0' '0' '0' '0.2'}); model.component('comp1').material('mat1').propertyGroup('def').set('electricconductivity_symmetry', '0'); model.component('comp1').material('mat1').propertyGroup('def').set('relpermittivity', {'1' '0' '0' '0' '1' '0' '0' '0' '1'}); model.component('comp1').material('mat1').propertyGroup('def').set('relpermittivity_symmetry', '0'); model.component('comp1').material('mat2').propertyGroup('def').set('relpermeability', {'2000' '0' '0' '0' '2000' '0' '0' '0' '2000'}); model.component('comp1').material('mat2').propertyGroup('def').set('relpermeability_symmetry', '0'); model.component('comp1').material('mat2').propertyGroup('def').set('electricconductivity', {'5' '0' '0' '0' '5' '0' '0' '0' '5'}); model.component('comp1').material('mat2').propertyGroup('def').set('electricconductivity_symmetry', '0'); model.component('comp1').material('mat2').propertyGroup('def').set('relpermittivity', {'1' '0' '0' '0' '1' '0' '0' '0' '1'}); model.component('comp1').material('mat2').propertyGroup('def').set('relpermittivity_symmetry', '0'); model.component('comp1').material('mat3').propertyGroup('def').set('relpermeability', {'1' '0' '0' '0' '1' '0' '0' '0' '1'}); model.component('comp1').material('mat3').propertyGroup('def').set('relpermeability_symmetry', '0'); model.component('comp1').material('mat3').propertyGroup('def').set('electricconductivity', {'3.7e7' '0' '0' '0' '3.7e7' '0' '0' '0' '3.7e7'}); model.component('comp1').material('mat3').propertyGroup('def').set('electricconductivity_symmetry', '0'); model.component('comp1').material('mat3').propertyGroup('def').set('relpermittivity', {'1' '0' '0' '0' '1' '0' '0' '0' '1'}); model.component('comp1').material('mat3').propertyGroup('def').set('relpermittivity_symmetry', '0'); %% FISICA model.component('comp1').physics.create('mf', 'InductionCurrents', 'geom1'); model.component('comp1').physics('mf').create('coil1', 'Coil', 3); model.component('comp1').physics('mf').feature('coil1').selection.named('geom1_sel1'); model.component('comp1').physics('mf').feature('coil1').feature('ccc1').feature('ct1').selection.named('geom1_sel7'); model.component('comp1').physics('mf').feature('coil1').feature('ccc1').create('cg1', 'CoilGround', 2); model.component('comp1').physics('mf').feature('coil1').feature('ccc1').feature('cg1').selection.named('geom1_sel8'); model.component('comp1').physics('mf').create('coil2', 'Coil', 3); model.component('comp1').physics('mf').feature('coil2').selection.named('geom1_sel2'); model.component('comp1').physics('mf').feature('coil2').feature('ccc1').feature('ct1').selection.named('geom1_sel9'); model.component('comp1').physics('mf').feature('coil2').feature('ccc1').create('cg1', 'CoilGround', 2); model.component('comp1').physics('mf').feature('coil2').feature('ccc1').feature('cg1').selection.named('geom1_sel10'); model.component('comp1').physics('mf').feature('coil1').set('ConductorModel', 'Multi'); model.component('comp1').physics('mf').feature('coil1').set('CoilType', 'Numeric'); model.component('comp1').physics('mf').feature('coil1').set('ICoil', 'I1'); model.component('comp1').physics('mf').feature('coil1').set('N', 'N1'); model.component('comp1').physics('mf').feature('coil1').set('AreaFrom', 'Diameter'); model.component('comp1').physics('mf').feature('coil1').set('coilWindDiameter', 'd_cable1'); model.component('comp1').physics('mf').feature('coil1').feature('ccc1').set('fl', 4); model.component('comp1').physics('mf').feature('coil2').set('ConductorModel', 'Multi'); model.component('comp1').physics('mf').feature('coil2').set('CoilType', 'Numeric'); model.component('comp1').physics('mf').feature('coil2').set('ICoil', 'I2'); model.component('comp1').physics('mf').feature('coil2').set('N', 'N2'); model.component('comp1').physics('mf').feature('coil2').set('AreaFrom', 'Diameter'); model.component('comp1').physics('mf').feature('coil2').set('coilWindDiameter', 'd_cable2'); model.component('comp1').physics('mf').feature('coil2').feature('ccc1').set('fl', 4); mphsave(model,'m1') %% MALLA model.component('comp1').mesh.create('mesh1'); model.component('comp1').mesh('mesh1').create('ftet2', 'FreeTet'); model.component('comp1').mesh('mesh1').create('ftet3', 'FreeTet'); model.component('comp1').mesh('mesh1').create('ftet4', 'FreeTet'); model.component('comp1').mesh('mesh1').create('ftet5', 'FreeTet'); model.component('comp1').mesh('mesh1').feature('ftet2').selection.named('geom1_sel11'); model.component('comp1').mesh('mesh1').feature('ftet3').selection.named('geom1_sel12'); model.component('comp1').mesh('mesh1').feature('ftet4').selection.named('geom1_sel13'); model.component('comp1').mesh('mesh1').feature('ftet5').create('size1', 'Size'); model.component('comp1').mesh('mesh1').feature('size').set('hauto', 3); model.component('comp1').mesh('mesh1').feature('ftet5').feature('size1').set('hauto', 4); model.component('comp1').mesh('mesh1').feature('ftet5').feature('size1').set('custom', 'on'); model.component('comp1').mesh('mesh1').feature('ftet5').feature('size1').set('hmin', 0.005); model.component('comp1').mesh('mesh1').feature('ftet5').feature('size1').set('hminactive', true); model.component('comp1').mesh('mesh1').run; %% ESTUDIO model.study.create('std1'); model.study('std1').create('ccc', 'CoilCurrentCalculation'); model.study('std1').create('freq', 'Frequency'); model.study('std1').feature('freq').set('plist', 'freq'); %% SOLVER model.sol.create('sol1'); model.sol('sol1').study('std1'); model.sol('sol1').attach('std1'); model.sol('sol1').create('st1', 'StudyStep'); model.sol('sol1').create('v1', 'Variables'); model.sol('sol1').create('s1', 'Stationary'); model.sol('sol1').create('su1', 'StoreSolution'); model.sol('sol1').create('st2', 'StudyStep'); model.sol('sol1').create('v2', 'Variables'); model.sol('sol1').create('s2', 'Stationary'); model.sol('sol1').feature('s1').create('se1', 'Segregated'); model.sol('sol1').feature('s1').feature('se1').create('ss1', 'SegregatedStep'); model.sol('sol1').feature('s1').feature('se1').create('ss2', 'SegregatedStep'); model.sol('sol1').feature('s1').feature('se1').feature.remove('ssDef'); model.sol('sol1').feature('s1').feature.remove('fcDef'); model.sol('sol1').feature('s2').create('p1', 'Parametric'); model.sol('sol1').feature('s2').create('fc1', 'FullyCoupled'); model.sol('sol1').feature('s2').create('i1', 'Iterative'); model.sol('sol1').feature('s2').feature('i1').create('mg1', 'Multigrid'); model.sol('sol1').feature('s2').feature('i1').feature('mg1').feature('pr').create('sv1', 'SORVector'); model.sol('sol1').feature('s2').feature('i1').feature('mg1').feature('po').create('sv1', 'SORVector'); model.sol('sol1').feature('s2').feature.remove('fcDef'); model.sol.create('sol3'); model.sol('sol3').study('std1'); model.sol('sol3').label(['Soluciones param' native2unicode(hex2dec({'00' 'e9'}), 'unicode') 'tricas 1']); model.sol('sol1').attach('std1'); model.sol('sol1').feature('s1').set('probesel', 'none'); model.sol('sol1').feature('s1').feature('se1').set('segterm', 'itertol'); model.sol('sol1').feature('s1').feature('se1').set('segiter', 6); model.sol('sol1').feature('s1').feature('se1').feature('ss1').set('segvar', {'comp1_mf_coil1_ccc1_s' 'comp1_mf_coil2_ccc1_s'}); model.sol('sol1').feature('s1').feature('se1').feature('ss2').set('segvar', {'comp1_mf_coil1_ccc1_p' 'comp1_mf_coil1_ccc1_lm' 'comp1_mf_coil2_ccc1_p' 'comp1_mf_coil2_ccc1_lm'}); model.sol('sol1').feature('st2').set('studystep', 'freq'); model.sol('sol1').feature('v2').set('initmethod', 'sol'); model.sol('sol1').feature('v2').set('initsol', 'sol1'); model.sol('sol1').feature('v2').set('solnum', 'auto'); model.sol('sol1').feature('v2').set('notsolmethod', 'sol'); model.sol('sol1').feature('v2').set('notsol', 'sol1'); model.sol('sol1').feature('v2').set('notsolnum', 'auto'); model.sol('sol1').feature('v2').set('clistctrl', {'p1'}); model.sol('sol1').feature('v2').set('cname', {'freq'}); model.sol('sol1').feature('v2').set('clist', {'freq'}); model.sol('sol1').feature('s2').feature('p1').set('pname', {'freq'}); model.sol('sol1').feature('s2').feature('p1').set('plistarr', {'freq'}); model.sol('sol1').feature('s2').feature('p1').set('punit', {'Hz'}); model.sol('sol1').feature('s2').feature('p1').set('pcontinuationmode', 'no'); model.sol('sol1').feature('s2').feature('p1').set('preusesol', 'auto'); model.sol('sol1').feature('s2').feature('i1').set('linsolver', 'bicgstab'); model.sol('sol1').feature('s2').feature('i1').set('prefuntype', 'right'); model.sol('sol1').feature('s2').feature('i1').set('nlinnormuse', true); model.sol('sol1').feature('s2').feature('i1').feature('mg1').feature('pr').feature('sv1').set('sorvecdof', {'comp1_A'}); model.sol('sol1').feature('s2').feature('i1').feature('mg1').feature('po').feature('sv1').set('sorvecdof', {'comp1_A'}); model.sol('sol1').runAll; %% RESULTADOS model.result.numerical.create('gev1', 'EvalGlobal'); model.result.numerical('gev1').set('probetag', 'none'); model.result.create('pg1', 'PlotGroup3D'); model.result('pg1').set('data', 'dset3'); model.result('pg1').create('mslc1', 'Multislice'); model.result.table.create('tbl1', 'Table'); model.result.table('tbl1').comments(['Evaluaci' native2unicode(hex2dec({'00' 'f3'}), 'unicode') 'n global 1']); model.result.numerical('gev1').set('table', 'tbl1'); model.result.numerical('gev1').set('expr', {'mf.LCoil_1' 'mf.LCoil_2' 'M12' 'mf.RCoil_1' 'mf.RCoil_2'}); model.result.numerical('gev1').set('unit', {'H' 'H' 'H' ['ohm' ] ['ohm' ]}); model.result.numerical('gev1').set('descr', {'Coil inductance' 'Coil inductance' '' 'Resistencia de la bobina (AC)' 'Resistencia de la bobina (AC)'}); model.result.numerical('gev1').setResult; model.result('pg1').label(['Densidad de flujo magn' native2unicode(hex2dec({'00' 'e9'}), 'unicode') 'tico, norma (mf)']); %model.result('pg1').set('looplevel', [1 3]); model.result('pg1').feature('mslc1').set('colortable', 'RainbowLight'); model.result('pg1').feature('mslc1').set('resolution', 'normal'); Tabl_EM= model.result.table('tbl1').getReal; out = model;