| 查看: 1815 | 回复: 0 | ||
[求助]
comsol4.2怎样在matlab中通过函数输出数据
|
|
急!comsol4.2怎样在matlab中运行输出数据,怎样通过mpheval等函数读取comsol4.2计算结果。 运行以下代码老是报错:Corrupt P-file "...\COMSOL42\mli\mphplot.p" import com.comsol.model.* import com.comsol.model.util.* model = ModelUtil.create('Model'); model = ModelUtil.create('Model'); % Create the geometry model.geom.create('geom1', 2); model.geom('geom1').feature.create('sq1', 'Square'); model.geom('geom1').run; % Create the mesh model.mesh.create('mesh1', 'geom1'); model.mesh('mesh1').feature.create('fre1', 'FreeTri'); model.mesh('mesh1').run; model.mesh('mesh1') % Setup physics es=model.physics.create('es', 'Electrostatics', 'geom1'); es.feature('ccn1').set('epsilonr_mat', 1, 'userdef'); es.feature.create('gnd1', 'Ground', 1); es.feature('gnd1').selection.set([2]); es.feature.create('sfcd1', 'SurfaceChargeDensity', 1); es.feature('sfcd1').selection.set([4]); es.feature('sfcd1').set('rhoqs', 1, '1e-10'); %Create the study model.study.create('std1'); model.study('std1').feature.create('stat1', 'Stationary'); model.study('std1').run; % Create a plot group model.result.create('pg1', 2); model.result('pg1').set('data', 'dset1'); model.result('pg1').feature.create('surf1', 'Surface'); mphplot(model,'pg1'); figure(2); mphmesh(model,'mesh1'); |
» 猜你喜欢
全日制(定向)博士
已经有5人回复
假如你的研究生提出不合理要求
已经有10人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
参与限项
已经有3人回复
实验室接单子
已经有4人回复
对氯苯硼酸纯化
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有12人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
找到一些相关的精华帖子,希望有用哦~
matlab中正弦函数不能正常显示的原因。
已经有3人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
MATLAB中有意思的why函数
已经有5人回复
请问有谁在用comsol4.2,小弟请教些问题,谢谢
已经有9人回复
comsol4.2无法创建三维图问题
已经有5人回复
求助小波变换的函数,我的matlab中怎么没有啊?
已经有11人回复
请教个matlab中的rand函数
已经有3人回复
【求助】关于matlab中的函数代换
已经有10人回复
科研从小木虫开始,人人为我,我为人人












回复此楼
点击这里搜索更多相关资源