Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Out of memory error running Comsol 4.0a with Matlab

Please login with a confirmed email address before reporting spam

Hi all,

I'm trying to run Comsol 4.0a with Matlab following the example in the manual, but I get this error:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EDU>> addpath C:\Users\Kjetil\Documents
EDU>> simple_geometry
??? Java exception occurred:
Exception:
java.lang.OutOfMemoryError: PermGen space
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
PermGen space


Stack trace:


Error in ==> simple_geometry at 20
model.physics.create('emw', 'ElectromagneticWaves', 'geom1');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I then tried with a VERY simple 2D geometry (the attached model) and, as you see, I still get the same error. I dont get this. The geometry is extremely simple and the mesh is "extra coarse".

Anyone with a solution to this? I would be a happy student and comsoler!

Regards
Kjetil

2 Replies Last Post 2011年3月15日 GMT-4 11:26
COMSOL Moderator

Hello Kjetil Haukalid

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年3月15日 GMT-4 11:26
Hi, did you ever figure this out? I'm having the same problem
Hi, did you ever figure this out? I'm having the same problem

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年3月15日 GMT-4 11:26

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.