找回密码
 注册
Simdroid-非首页
查看: 224|回复: 5

解决comsol3.3a和matlab 2007b无法同时启动问题

[复制链接]
发表于 2008-1-16 12:30:39 | 显示全部楼层 |阅读模式 来自 湖北武汉
最近升级了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
C:\Documents and Settings\<user name>

评分

1

查看全部评分

发表于 2008-1-18 13:27:30 | 显示全部楼层 来自 上海黄浦区
Simdroid开发平台
顶一下!!
回复 不支持

使用道具 举报

发表于 2008-1-20 09:31:26 | 显示全部楼层 来自 大连理工大学
非常感谢,我试验了一下,通过 :victory: :victory:
回复 不支持

使用道具 举报

发表于 2008-1-23 16:37:49 | 显示全部楼层 来自 北京
谢谢楼主。我也遇到了相同的问题。
回复 不支持

使用道具 举报

发表于 2008-3-27 17:26:18 | 显示全部楼层 来自 云南昆明
学习中
回复 不支持

使用道具 举报

发表于 2018-6-3 11:26:06 | 显示全部楼层 来自 安徽淮南
comsol3.3a大佬们在哪下载啊?
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-27 12:42 , Processed in 0.046884 second(s), 17 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表