• 回答数

    3

  • 浏览数

    2293

  • 收藏数

    0

作者:浪者不回头 发表于 2018-11-1 13:50:54
跳转到指定楼层
最近升级了matlab到2007b版本,发现再次启动comsol with matlab时,matlab只闪了一下就终止了,comsol也无法启动,注册了comsol,再knowledge base里找到了相应的解决方案,现记录如下:

Problem Description
When I start COMSOL 3.4 with MATLAB, neither MATLAB nor the COMSOL Multiphysics user interface appear.


Solution
This problem has been reported by some users of COMSOL 3.4 with MATLAB 2007b on Windows. MATLAB 2007a and earlier versions are not affected by this problem.
The problem seems to be related to 32-bit MATLAB on a dual core (or more) Windows machines.
The solution is to change how MATLAB's Java Heap size is set. When COMSOL starts with MATLAB the maximum size of the Java heap is set to 256 MB. We need to disable this and use the default Java Heap size instead. The maximum size of the Java heap can be given by providing a line in a file java.opts in the directory where MATLAB is started.
The workaround is as follows:

Try to start COMSOL with MATLAB once. It will fail but a file java.opts will be written to the COMSOL  3.4 installation directory.
Open the java.opts file, remove the line -Xmx256m and save the file.
Open the file comsol.opts in the bin directory under your COMSOL installation and change the line
  JAVAOPTS=on
to
  JAVAOPTS=off
This will ensure that a new java.opts file is not written automatically every time you start COMSOL with MATLAB and your manually edited comsol.opts will always be used.
When you use "Connect to MATLAB" from the File menu in COMSOL Multiphysics it will look for a java.opts file in your home directory. This means that you should copy the edited java.opts file to the home directory as well. This will be something like

分享:
回复

使用道具

该用户从未签到

新手上路

Rank: 1

积分
38
极客币
99
主题
13
帖子
42
注册时间
2018-10-19
在线时间
2 小时
性别
保密
发表于 2018-11-1 13:51:08 | 显示全部楼层

顶一下!!
回复

使用道具 举报

该用户从未签到

新手上路

Rank: 1

积分
40
极客币
102
主题
14
帖子
46
注册时间
2018-10-19
在线时间
2 小时
性别
保密
发表于 2018-11-1 13:51:21 | 显示全部楼层
非常感谢,我试验了一下,通过
回复

使用道具 举报

该用户从未签到

新手上路

Rank: 1

积分
46
极客币
113
主题
13
帖子
55
注册时间
2018-10-19
在线时间
2 小时
性别
保密
 楼主| 发表于 2018-11-1 13:51:54 | 显示全部楼层
回复

使用道具 举报

高级模式 评论
您需要登录后才可以回帖 登录 | 立即注册 微信登录
关于作者
浪者不回头

用户组:新手上路

  • 主题

    13

  • 帖子

    55

  • 关注者

    1