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.

Basic question about domains/subdomains

Please login with a confirmed email address before reporting spam

Hi, i'm having a hard time understanding the domain concept in Comsol. I use matlab to create a block3 geometry object and set up a mesh via meshinit:

fem.geom = block3(1,1,1,'base','corner','pos',[0 0 0]);
fem.mesh = meshinit(fem, 'hauto',9);

then i obtain the elements of that mesh:
meshelements = get(fem.mesh,'el');


then take a look at the elements and the domains:
meshelements{1}.dom
meshelements{2}.dom
meshelements{3}.dom
meshelements{4}.dom

What i see is that the vertices belong to domain numbers from 1 to 8, the edges from 1 to 12, the triangles from 1 to 6 and the tetraeders are only located in domain 1.

I guess triangles are always located on one of the 6 surfaces of the block3 but the rest of the numbering is confusing me, so how does this domain numbering work?

What would happen if i add another block3 object? Is it possible to distinguish eg between triangles located in block3 A or block3 B using the domain(subdomain?) number?

Thank you in advance

0 Replies Last Post Feb 21, 2011, 5:15 a.m. EST
COMSOL Moderator

Hello Chris Shor

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.