| 查看: 1844 | 回复: 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'); |
» 猜你喜欢
网上报道青年教师午睡中猝死、熬夜猝死的越来越多,主要哪些原因引起的?
已经有10人回复
为什么中国大学工科教授们水了那么多所谓的顶会顶刊,但还是做不出宇树机器人?
已经有13人回复
什么是人一生最重要的?
已经有8人回复
版面费该交吗
已经有17人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有19人回复
【博士招生】太原理工大学2026化工博士
已经有8人回复
280求调剂
已经有4人回复
面上可以超过30页吧?
已经有12人回复
找到一些相关的精华帖子,希望有用哦~
matlab中正弦函数不能正常显示的原因。
已经有3人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
MATLAB中有意思的why函数
已经有5人回复
请问有谁在用comsol4.2,小弟请教些问题,谢谢
已经有9人回复
comsol4.2无法创建三维图问题
已经有5人回复
求助小波变换的函数,我的matlab中怎么没有啊?
已经有11人回复
请教个matlab中的rand函数
已经有3人回复
【求助】关于matlab中的函数代换
已经有10人回复
科研从小木虫开始,人人为我,我为人人













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