Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Livelink for MATALB

Please login with a confirmed email address before reporting spam

Hello all,

I'm trying to run a model in MATLAB 2012, built with Comsol 4.2a. Once i export the Comsol model into MATLAb's interface, i can't run it. I've got these error messages:

Error using com.comsol.model.impl.GeomSequenceImpl/setGeom
Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: File not found
Messages:
File not found


Stack trace:

at com.comsol.model.util.ModelInternalUtil.getExistingFileOrThrow(Unknown Source)

at com.comsol.geommesh.geom.bx.doExecutePrimitive(Unknown Source)

at com.comsol.geommesh.geom.bq.a(Unknown Source)

at com.comsol.geommesh.geom.f.execute(Unknown Source)

at com.comsol.model.internal.impl.GeomFeatureImpl.av(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.m(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.E(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.aM(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.D(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.setGeom(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.comsol.clientserver.impl.JobImpl.run(Unknown Source)

at com.comsol.server.internal.a.a(Unknown Source)

at com.comsol.server.internal.a.a(Unknown Source)

at com.comsol.server.internal.a$a.a(Unknown Source)

at com.comsol.server.internal.a$a.a(Unknown Source)

at com.comsol.server.internal.a$a$a.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



at com.comsol.model.clientserver.ClientManagerImpl.a(Unknown Source)

at com.comsol.model.clientserver.ClientManagerImpl.runServerJob(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl$g.a(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl$g.execute(Unknown Source)

at com.comsol.model.clientserver.ClientManagerImpl$e.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: Exception:
com.comsol.util.exceptions.FlException: File not found
Messages:
File not found


at com.comsol.model.util.ModelInternalUtil.getExistingFileOrThrow(Unknown Source)

at com.comsol.geommesh.geom.bx.doExecutePrimitive(Unknown Source)

at com.comsol.geommesh.geom.bq.a(Unknown Source)

at com.comsol.geommesh.geom.f.execute(Unknown Source)

at com.comsol.model.internal.impl.GeomFeatureImpl.av(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.m(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.E(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.aM(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.D(Unknown Source)

at com.comsol.model.internal.impl.GeomSequenceImpl.setGeom(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.comsol.clientserver.impl.JobImpl.run(Unknown Source)

at com.comsol.server.internal.a.a(Unknown Source)

at com.comsol.server.internal.a.a(Unknown Source)

at com.comsol.server.internal.a$a.a(Unknown Source)

at com.comsol.server.internal.a$a.a(Unknown Source)

at com.comsol.server.internal.a$a$a.run(Unknown Source)

... 3 more


Error in Azerty (line 27)
model.geom('geom1').setGeom('null\Model_geom1.mphbin');

Can someone help me to fix this?
Thanks.

2 Replies Last Post 04.06.2012, 03:20 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.06.2012, 13:49 GMT-4
Sometimes I get these type of errors, I believe it happens because (some how) the link between Matlab and Comsol brokes. What I do in those cases is to close Matlab (with the Livelink) and re-open it. Then, I export again my comsol model (File >> Client Server >> Export Model To Server) and that's all.

Tell me if that works.
--
Felipe
Sometimes I get these type of errors, I believe it happens because (some how) the link between Matlab and Comsol brokes. What I do in those cases is to close Matlab (with the Livelink) and re-open it. Then, I export again my comsol model (File >> Client Server >> Export Model To Server) and that's all. Tell me if that works. -- Felipe

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 04.06.2012, 03:20 GMT-4
Thank you for your answer Felipe. So, i tried to it in that way but i still got the same errors.
Thank you for your answer Felipe. So, i tried to it in that way but i still got the same errors.

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.