| 查看: 1835 | 回复: 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'); |
» 猜你喜欢
酰胺脱乙酰基
已经有9人回复
有时候真觉得大城市人没有县城人甚至个体户幸福
已经有3人回复
CSC & MSCA 博洛尼亚大学能源材料课题组博士/博士后招生|MSCA经费充足、排名优
已经有5人回复
有70后还继续奋斗在职场上的吗?
已经有6人回复
博士延得我,科研能力直往上蹿
已经有7人回复
退学或坚持读
已经有27人回复
面上基金申报没有其他的参与者成吗
已经有5人回复
遇见不省心的家人很难过
已经有22人回复
找到一些相关的精华帖子,希望有用哦~
matlab中正弦函数不能正常显示的原因。
已经有3人回复
Matlab中如何自己定义一个新函数,然后计算时可以调用?
已经有12人回复
MATLAB中有意思的why函数
已经有5人回复
请问有谁在用comsol4.2,小弟请教些问题,谢谢
已经有9人回复
comsol4.2无法创建三维图问题
已经有5人回复
求助小波变换的函数,我的matlab中怎么没有啊?
已经有11人回复
请教个matlab中的rand函数
已经有3人回复
【求助】关于matlab中的函数代换
已经有10人回复
科研从小木虫开始,人人为我,我为人人













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