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.

Work on COMSOL through MATLAB

Please login with a confirmed email address before reporting spam

Hi
I would like to run COMSOL from MATLAB. I saved the model as M-file and tried to run it in MATLAB.
I found the error. MATLAB command line showed
??? Java exception occurred:
Exception:
com.comsol.nativeutil.properties.InvalidPropertyValueException: Invalid property value
Messages:
Invalid property value
- Property: dstmap

X is Y#Destination map#an array of strings
- : Expected array length is 2.


Stack trace:

at com.comsol.nativeutil.properties.Property.b(Unknown Source)

at com.comsol.nativeutil.properties.bu.setIndex(Unknown Source)

at com.comsol.model.internal.impl.PropValueImpl.setIndex(Unknown Source)

at com.comsol.model.internal.impl.PropFeatureImpl.a(Unknown Source)

at com.comsol.model.internal.impl.PropFeatureImpl$f.a(Unknown Source)

at com.comsol.model.internal.impl.PropFeatureImpl$f.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)


Error in ==> m3 at 173
model.cpl('genext2').setIndex('dstmap', ' ', 1);

I tried to read COMSOL Java reference guide. I found that the value of dstmap property must be string array but I don't know what value I should input.
How can I do this?
Thank for any help.
I have simulated convection-diffusion model (1D and 2D) and used general extrusion to mapped an expression.


0 Replies Last Post 5 avr. 2013, 00:07 UTC−4
COMSOL Moderator

Hello Ldawan Wandee

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.

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.