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.

dealing with subdomain IDs

Please login with a confirmed email address before reporting spam

Hi all Comsol users,

I am still very new to Comsol. When I try to draw some 2D structure in matlab, I do not know how to get subdomian IDs using certain functions in Comsol.
I tried:

[fem.geom,ft] = geomcsg(fem.draw);
find(ft);

ft looks like:
(1,1) 1
(2,1) 1
(3,1) 1
(4,1) 1
(1,2) 1
(2,2) 1
(3,2) 1
(4,2) 1
(5,2) 1

I know that in total there are 5 subdomains, but I am not sure how to get the subdomain IDs so I can use a for loop to change the individual subdomain dimension slightly and optimize my design.

Thanks,

Linlin

0 Replies Last Post Jul 19, 2010, 6:37 p.m. EDT
COMSOL Moderator

Hello Vicky Lee

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.