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.
Solved! Good in comsol, failed in Matlab: Illegal input vector illegal entity number
Posted 2019年1月9日 GMT-5 11:38 Low-Frequency Electromagnetics, LiveLink for MATLAB Version 5.4 2 Replies
Please login with a confirmed email address before reporting spam
Hello every body, I am using comsol 5.4 and I built my model and solved the problem and everything went fine and a good solution was obtained in comsol. Exporting the same exact model to matlab is problematic! Exactly the same model and when running this model in matlab I got the following error:
Error using file (line 912)
Java exception occurred:
Exception:
com.comsol.util.exceptions.UnexpectedServerException: java.lang.IllegalArgumentException: Illegal input vector illegal entity number (rethrown as com.comsol.util.exceptions.FlException)
Messages:
java.lang.IllegalArgumentException: Illegal input vector illegal entity number
Stack trace:
at com.comsol.model.selections.GeomObjectSelectionMethod.a(SourceFile:1465)
at com.comsol.model.selections.GeomObjectSelectionMethod.a(SourceFile:1382)
at com.comsol.model.selections.GeomObjectSelectionMethod.set(SourceFile:806)
at com.comsol.model.selections.GeomObjectSelectionMethod.set(SourceFile:791)
at com.comsol.model.data.primitive.GeomObjectSelectionPrim.set(SourceFile:334)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.comsol.bridge.command.b.a(SourceFile:145)
at com.comsol.bridge.command.b.run(SourceFile:90)
at com.comsol.bridge.command.i.execute(SourceFile:45)
at com.comsol.bridge.command.j.d(SourceFile:711)
at com.comsol.bridge.command.j.a(SourceFile:699)
at com.comsol.bridge.command.j$3.a(SourceFile:600)
at com.comsol.bridge.command.j$3.call(SourceFile:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
and the corresponding line is a selection set line :
model.component('comp1').geom('geom1').feature('del1').selection('input').set({'par3(12)' 'par3(7)' 'par3(4)' 'par3(2)' 'par3(5)' 'par3(11)' 'par3(6)' 'par3(9)' 'par3(10)' 'par3(8)' ... 'par3(3)' 'par3(1)'}, [1 2 3 4 5 6 7; 1 2 3 0 0 0 0; 1 2 3 0 0 0 0; 1 2 3 4 0 0 0; 1 2 3 4 0 0 0; 1 2 3 4 0 0 0; 1 2 3 4 0 0 0; 1 2 3 0 0 0 0; 1 2 3 0 0 0 0; 1 2 3 0 0 0 0; 1 2 3 4 0 0 0; 1 2 3 4 5 6 7]);
what's the problem with matlab?? thanks!