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.

Command to extract the number of selection

Please login with a confirmed email address before reporting spam

Hello, I'm working with livelink for Matlab. Is there any command to extract the number of domains in the geometry?

2 Replies Last Post Oct 28, 2016, 12:00 p.m. EDT
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Oct 28, 2016, 8:05 a.m. EDT
Hi

This should work:
model.geom('geom1').getNDomains

All such low level methods are mentioned in the Programming Reference Manual in the section titles "Geometry Object Information".


Hello, I'm working with livelink for Matlab. Is there any command to extract the number of domains in the geometry?



--
Lars Gregersen
Comsol Denmark

Hi This should work: model.geom('geom1').getNDomains All such low level methods are mentioned in the Programming Reference Manual in the section titles "Geometry Object Information". [QUOTE] Hello, I'm working with livelink for Matlab. Is there any command to extract the number of domains in the geometry? [/QUOTE] -- Lars Gregersen Comsol Denmark

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Oct 28, 2016, 12:00 p.m. EDT

Thank you so much. That's exactly what I have been looking for.
Thank you so much. That's exactly what I have been looking for.

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.