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.

Trouble with Livelink-tutorial

Please login with a confirmed email address before reporting spam

Hello,

I am trying to set up the busbar example taken from the 'Introduction to LiveLink for MATLAB'-PDF.

I am using Ubuntu 12.04, MATLAB 2013a and COMSOL 4.3a. I am able to proceed until mphgeom() is called the first time to plot the geometry. It gives me the following error:

>> mphgeom(model,'geom1')
Error using mphpatch (line 124)
Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: You need to provide input objects
Messages:
You need to provide input objects

Stack trace:
at com.comsol.geommesh.geom.z.a(Unknown Source)
at com.comsol.geommesh.geom.f.execute(Unknown Source)
at com.comsol.model.internal.impl.GeomFeatureImpl.au(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.l(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.F(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.k(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.aW(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.runAll(Unknown Source)
at com.comsol.geommesh.geom.al.j(Unknown Source)
at com.comsol.geommesh.geom.f.execute(Unknown Source)
at com.comsol.model.internal.impl.GeomFeatureImpl.au(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.l(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(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.b.a(Unknown Source)
at com.comsol.server.internal.b.a(Unknown Source)
at com.comsol.server.internal.b$a.a(Unknown Source)
at com.comsol.server.internal.b$a.a(Unknown Source)
at com.comsol.server.internal.b$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.serverBuild(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.F(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.aN(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl$l.a(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl$l.execute(Unknown Source)
at com.comsol.model.clientserver.ClientManagerImpl$d.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: You need to provide input objects
Messages:
You need to provide input objects
- Property: input

at com.comsol.geommesh.geom.z.a(Unknown Source)
at com.comsol.geommesh.geom.f.execute(Unknown Source)
at com.comsol.model.internal.impl.GeomFeatureImpl.au(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.l(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.F(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.k(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.aW(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.runAll(Unknown Source)
at com.comsol.geommesh.geom.al.j(Unknown Source)
at com.comsol.geommesh.geom.f.execute(Unknown Source)
at com.comsol.model.internal.impl.GeomFeatureImpl.au(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.l(Unknown Source)
at com.comsol.model.internal.impl.GeomSequenceImpl.serverBuild(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.b.a(Unknown Source)
at com.comsol.server.internal.b.a(Unknown Source)
at com.comsol.server.internal.b$a.a(Unknown Source)
at com.comsol.server.internal.b$a.a(Unknown Source)
at com.comsol.server.internal.b$a$a.run(Unknown Source)
... 3 more

Error in /usr/local/comsol43a/mli/mphgeom.p>mphgeom (line 86)

--

Is there a fix for this?

Thank you!

1 Reply Last Post May 28, 2013, 9:36 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago May 28, 2013, 9:36 a.m. EDT
Hi Damian,

try first using

mphgeom(model)

since you have just one geometry, I think that'll do it.

Tell me if that solves the problem.
--
cheers,
Felipe BM
Hi Damian, try first using mphgeom(model) since you have just one geometry, I think that'll do it. Tell me if that solves the problem. -- cheers, Felipe BM

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.