Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 2194

Correct syntax for creating domain selection in the JAVA Api?

$
0
0
I am trying to follow the busbar tutorial using Comsol + Matlab.

To create a variable representing multiple boundaries to avoid redundancy the following code is given:

<code>
sel1 = model.selection.create('sel1');
sel1.set([2 3 4 5 6 7]);
sel1.name('Ti bolts');
</code>

Matlab returns the following error:

Error using busbar (line 54)
Java exception occurred:
Exception:
java.lang.IllegalArgumentException: Illegal input vector
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Illegal input vector

Line 54 refers to the second line of code.
Any one knows what the issue may be with the syntax if that's the problem?

Thank you,
Kayode

Viewing all articles
Browse latest Browse all 2194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>