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.
a livelink problem for point probe coordinate
Posted Aug 30, 2011, 9:41 a.m. EDT Interfacing, LiveLink for MATLAB, Parameters, Variables, & Functions, Results & Visualization Version 4.2 3 Replies
Please login with a confirmed email address before reporting spam
I'm testing the livelink version of my COMSOL code as attached. In general, I set two point probes at different locations (e.g. each end of a line). The COMSOL code is runing regardless whether the result is meaningful. But the .m file stops with error.
Somehow there is a bug regarding the following probe definition lines in .m file:
model.result.table('tbl1').name('Probe Table 1');
model.probe('pdom1').set('bndsnap1', true);
model.probe('pdom1').feature('ppb1').set('table', 'tbl1');
model.probe('pdom1').feature('ppb1').set('window', 'window1');
model.probe('pdom2').set('coords1', {'1'});
model.probe('pdom2').feature('ppb2').set('table', 'tbl1');
model.probe('pdom2').feature('ppb2').set('window', 'window1');
The Matlab error information as follow (unrecognized coordinate or units):
??? Java exception occurred:
Exception:
com.comsol.nativeutil.properties.InvalidPropertyValueException:
Invalid property value
Messages:
Invalid property value
- Property: coords1
X is Y#Coordinates#a matrix of real numbers
- : Expected size is 1×1
- : Expected unit is: m.
Anyone has a hint of the correct livelink setting regarding the probe?
Somehow there is a bug regarding the following probe definition lines in .m file:
model.result.table('tbl1').name('Probe Table 1');
model.probe('pdom1').set('bndsnap1', true);
model.probe('pdom1').feature('ppb1').set('table', 'tbl1');
model.probe('pdom1').feature('ppb1').set('window', 'window1');
model.probe('pdom2').set('coords1', {'1'});
model.probe('pdom2').feature('ppb2').set('table', 'tbl1');
model.probe('pdom2').feature('ppb2').set('window', 'window1');
The Matlab error information as follow (unrecognized coordinate or units):
??? Java exception occurred:
Exception:
com.comsol.nativeutil.properties.InvalidPropertyValueException:
Invalid property value
Messages:
Invalid property value
- Property: coords1
X is Y#Coordinates#a matrix of real numbers
- : Expected size is 1×1
- : Expected unit is: m.
Anyone has a hint of the correct livelink setting regarding the probe?
Attachments:
3 Replies Last Post Dec 17, 2011, 7:55 a.m. EST