- 积分
- 15
- 注册时间
- 2008-7-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2010-5-16 22:08:29
|
显示全部楼层
来自 黑龙江哈尔滨
本帖最后由 TBE_Legend 于 2010-5-17 09:42 编辑
15# TBE_Legend
运行comsol with matlab后,只有一个comsol的启动界面(并没有进去)
然后matlab被启动了,这样就可以了
你可以试着在comsol中将一个例子保存为m文件,然后在matlab中运行了(comsol with ma ...
flyingmind 发表于 2010-5-16 21:56
多谢fly,你说得很对,两者的确是连上了,但desktop of comsol 不出现也的确不正常。
比如 那个guide中的例子:-
- clear; clc
- 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');
- model.save('model1');
复制代码 的确可以正常运行,并在当期工作目录下生成mph文件。但是文档中所说的“You can save the model on file and continue modeling in the COMSOL Desktop.” 不能进行,因为comsol界面始终处于启动状态。
你的系统也是这样的? |
|