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
Posted 19 juil. 2010, 18:37 UTC−4 0 Replies
Please login with a confirmed email address before reporting spam
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
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.