function % % % % import import model model.modelPath('D:QSQDocumentsComsol'); model.modelNode.create('mod1'); model.geom.create('geom1', model.mesh.create('mesh1', model.physics.create('solid', model.study.create('std1'); model.study('std1').feature.create('stat', model.geom('geom1').lengthUnit('mm'); model.geom('geom1').run; model.geom('geom1').feature.create('blk1', model.geom('geom1').feature('blk1').setIndex('size', model.geom('geom1').feature('blk1').setIndex('size', model.geom('geom1').feature('blk1').setIndex('size', model.geom('geom1').feature('blk1').set('base', model.geom('geom1').run('blk1'); mphgeom(model, out |
model.material.create('mat1'); model.material('mat1').name('Aluminum'); model.material('mat1').set('family', model.material('mat1').propertyGroup('def').set('relpermeability', model.material('mat1').propertyGroup('def').set('heatcapacity', model.material('mat1').propertyGroup('def').set('thermalconductivity', model.material('mat1').propertyGroup('def').set('electricconductivity', model.material('mat1').propertyGroup('def').set('relpermittivity', model.material('mat1').propertyGroup('def').set('thermalexpansioncoeffici model.material('mat1').propertyGroup('def').set('density', model.material('mat1').propertyGroup.create('Enu', model.material('mat1').propertyGroup('Enu').set('poissonsratio', model.material('mat1').propertyGroup('Enu').set('youngsmodulus', model.material('mat1').propertyGroup.create('Murnaghan', model.material('mat1').propertyGroup('Murnaghan').set('n', model.material('mat1').propertyGroup('Murnaghan').set('m', model.material('mat1').propertyGroup('Murnaghan').set('muLame', model.material('mat1').propertyGroup('Murnaghan').set('l', model.material('mat1').propertyGroup('Murnaghan').set('lambLame', model.material('mat1').propertyGroup.create('Lame', model.material('mat1').propertyGroup('Lame').set('muLame', model.material('mat1').propertyGroup('Lame').set('lambLame', model.material('mat1').propertyGroup.create('NeoHookean', model.material('mat1').propertyGroup('NeoHookean').set('mu', model.material('mat1').propertyGroup('NeoHookean').set('lambda', model.material('mat1').set('family', |
model.mesh('mesh1').run; mphmesh(model, |
model.physics('solid').feature.create('fix1', model.physics('solid').feature('fix1').selection.set([3]); model.physics('solid').feature.create('bl1', model.physics('solid').feature('bl1').set('FperVol', model.physics('solid').feature('bl1').selection.all; |
model.sol.create('sol1'); model.sol('sol1').study('std1'); model.sol('sol1').feature.create('st1', model.sol('sol1').feature('st1').set('study', model.sol('sol1').feature('st1').set('studystep', model.sol('sol1').feature.create('v1', model.sol('sol1').feature.create('s1', model.sol('sol1').feature('s1').feature.create('fc1', model.sol('sol1').feature('s1').feature.remove('fcDef'); model.sol('sol1').attach('std1'); model.result.create('pg1', model.result('pg1').set('data', model.result('pg1').feature.create('surf1', model.result('pg1').feature('surf1').set('expr', model.result('pg1').name([native2unicode(hex2dec('5e94'), model.result('pg1').feature('surf1').feature.create('def', model.result('pg1').feature('surf1').feature('def').set('expr', model.result('pg1').feature('surf1').feature('def').set('descr', model.sol('sol1').runAll; model.result('pg1').run; mphplot(model, |
联系客服