找回密码
 注册
Simdroid-非首页
查看: 52|回复: 1

[16.其它] comsol4.1参数赋值不上

[复制链接]
发表于 2011-5-12 14:21:29 | 显示全部楼层 |阅读模式 来自 大连理工大学
hold on
for i=-90:10:90
model.param.set('i',i);
model.result.create('pg1',2);
model.result('pg1').feature.create('ptr1', 'ParticleMass');
model.result('pg1').set('data', 'dset1');
model.result('pg1').feature('ptr1').set('velstartx', 'abs(300*cos(i/180*pi))');
model.result('pg1').feature('ptr1').set('velstarty', 'abs(300*sin(i/180*pi))');
model.result('pg1').feature('ptr1').set('ycoord', '0');
model.result('pg1').feature('ptr1').set('xcoord', '1.3e-3');
model.result('pg1').feature('ptr1').set('fy', '25.63e-19*es.Ey');
model.result('pg1').feature('ptr1').set('fx', '25.63e-19*es.Ex');
mphplot(model,'pg1')
end
我想画离子轨迹,但是我的i值赋不上值,默认为0。为什么,求助?
 楼主| 发表于 2011-5-13 08:59:16 | 显示全部楼层 来自 大连理工大学
Simdroid开发平台
顶上,求助
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-26 12:02 , Processed in 0.031970 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表