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.
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.