| 查看: 1803 | 回复: 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人回复
最近几年招的学生写论文不引自己组发的文章
已经有11人回复
需要合成515-64-0,50g,能接单的留言
已经有3人回复
中科院杭州医学所招收博士生一名(生物分析化学、药物递送)
已经有3人回复
临港实验室与上科大联培博士招生1名
已经有8人回复
想换工作。大多数高校都是 评职称时 认可5年内在原单位取得的成果吗?
已经有4人回复
找到一些相关的精华帖子,希望有用哦~
matlab中正弦函数不能正常显示的原因。
已经有3人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
MATLAB中有意思的why函数
已经有5人回复
请问有谁在用comsol4.2,小弟请教些问题,谢谢
已经有9人回复
comsol4.2无法创建三维图问题
已经有5人回复
求助小波变换的函数,我的matlab中怎么没有啊?
已经有11人回复
请教个matlab中的rand函数
已经有3人回复
【求助】关于matlab中的函数代换
已经有10人回复
科研从小木虫开始,人人为我,我为人人







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