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.
Working with Geometric measurements tool
Posted May 24, 2011, 10:49 a.m. EDT Interfacing Version 4.1, Version 4.3a 2 Replies
Please login with a confirmed email address before reporting spam
I'm trying to get the area of a boundary, unfortunately without success.
Reading the help for measurement tool in the API document (P.151), I can conclude to the following code lines:
ie: to measure a face on a single block
__________________________________________________________________
model.geom('geom1').measure.selection.init(2);
model.geom('geom1').measure.selection.set('blk1', [4]); % Measure face #4
model.geom('geom1').measure.getArea(4);
__________________________________________________________________
This code sequence generate error : No appropriate method, property, or field getArea
The only line on which help document is passing quickly over is the last one: I don't know how to correctly write this line. getBoundaryArea, getArea ?
Regards,
Hello Gabriel Caron
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.