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.
Irritating error using livelink
Posted 29 sept. 2015, 21:01 UTC−4 RF & Microwave Engineering 0 Replies
Please login with a confirmed email address before reporting spam
I am a new ComSol user at the National University of Singapore and am excited to get LiveLink up and running so that I can use Matlab in tandem with ComSol.
I am using Comsol 5.1 and Matlab 2015a
I have come across a very irritating problem as I am trying to construct a model using LiveLink. I am trying to use the Radio Frequency (RF) constructor and the 'emw' interface. When I do this through ComSol without LiveLink, this is no problem at all. However, in MatLab using LiveLink, the following error surfaces:
__________
Error using plasmaTest1 (line 14)
Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Failed to initialize
physics interface
(rethrown as com.comsol.util.exceptions.FlException)
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Failed to initialize physics interface
Failed to initialize physics interface
Failed to initialize physics interface.
Unknown physics interface.
- Physics interface: RF
Stack trace:
at com.comsol.clientapi.engine.c.handleException(Unknown
Source)
at com.comsol.client.interfaces.f$d.f(Unknown Source)
at com.comsol.client.interfaces.f.a(Unknown Source)
at com.comsol.client.interfaces.f.runAndWait(Unknown Source)
at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown
Source)
at com.comsol.clientapi.impl.PhysicsListClient.create(Unknown
Source)
Caused by: Exception:
com.comsol.util.exceptions.FlException: Failed to initialize
physics interface
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Failed to initialize physics interface
Failed to initialize physics interface.
Unknown physics interface.
- Physics interface: RF
at com.comsol.clientapi.engine.c.handleException(Unknown
Source)
at com.comsol.client.interfaces.f.a(Unknown Source)
at
com.comsol.client.interfaces.f.processCommandAnswer(Unknown
Source)
... 5 more
Caused by: Exception:
com.comsol.util.exceptions.FlException: Failed to initialize
physics interface
Messages:
Failed to initialize physics interface.
Unknown physics interface.
- Physics interface: RF
at com.comsol.model.method.PhysicsMethod.initialize(Unknown
Source)
at
com.comsol.model.internal.physics.impl.PhysicsImpl.initialize(Unknown
Source)
at
com.comsol.model.internal.impl.PhysicsListImpl.internalAdd(Unknown
Source)
at
com.comsol.model.internal.impl.PhysicsListImpl.internalAdd(Unknown
Source)
at com.comsol.model.method.PhysicsListMethod.create(Unknown
Source)
at com.comsol.model.internal.impl.PhysicsListImpl.a(Unknown
Source)
at com.comsol.model.internal.impl.PhysicsListImpl.a(Unknown
Source)
at com.comsol.model.internal.impl.PhysicsListImpl$2.a(Unknown
Source)
at
com.comsol.model.internal.impl.PhysicsListImpl$2.execute(Unknown
Source)
at com.comsol.model.clientserver.ClientManager$1.call(Unknown
Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
__________
I have checked my 'comsolpath.txt' file in the 'bin' directory, and a line for the rf jar file exists. Also, the fact that I can use the constructor in the ComSol environment but not in LiveLink tells me that the error lies in LiveLink not accessing the correct file.
Can anyone suggest a solution?
I should add that when I try to do the same with model.physics.create('ht','HeatTransfer','geom1') I have no error at all.
Hello Thorin Duffin
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.