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.

help on boundary index

Please login with a confirmed email address before reporting spam

Hi,
I have a simple 2D heat transfer problem defined on a rectangular geometry of a copper plate. Once I open the history (.m) file of the model saved by COMSOL in matlab editor, I see the boundary index entry which looks something like: bnd.ind = [1,3,2,1]; I understand that these four entries are some way related to the four boundaries of my 2D model. But what do the number [1, 3, 2, 1] possibly mean? Could someone please help me sort out this little mystery. I swamped through the COMSOL manual but did not see any answer.

Thanks,

Sandra

2 Replies Last Post 4 gen 2010, 01:36 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 4 gen 2010, 01:12 GMT-5
Hi
After some trial I could figure it out something but needs confirmation from someone. In the test case I cited, bnd.ind = [1,3,2,1]; the integer index list possibly refers to the grouped boundaries i.e. the boundaries sharing the same settings in COMSOL model. In my case, left and right boundaries have same setting so they get the same list index 1, while the top and the bottom boundaries settings being different, are therefore, indexed as 2 and 3. However, it is still a mystery to me as to how the COMSOL decides their order. Thanks.

Sandra
Hi After some trial I could figure it out something but needs confirmation from someone. In the test case I cited, bnd.ind = [1,3,2,1]; the integer index list possibly refers to the grouped boundaries i.e. the boundaries sharing the same settings in COMSOL model. In my case, left and right boundaries have same setting so they get the same list index 1, while the top and the bottom boundaries settings being different, are therefore, indexed as 2 and 3. However, it is still a mystery to me as to how the COMSOL decides their order. Thanks. Sandra

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 4 gen 2010, 01:36 GMT-5
Hi

As you say, the indexes are heavily used in the fem structure, the number are pointers into the next part of the structure, you have the groups, the BC's , index to constants, to their names etc.

I agree that I have also problems to understand this, as I havnt either found many expalanations in the doc, but by playing with simple models, and cross checking what the GUI odes to the fem structure you find your way out.

there are lso few discussions about the fem structure, and the index if you run a search on the forum

Hope it helps
Ivar
Hi As you say, the indexes are heavily used in the fem structure, the number are pointers into the next part of the structure, you have the groups, the BC's , index to constants, to their names etc. I agree that I have also problems to understand this, as I havnt either found many expalanations in the doc, but by playing with simple models, and cross checking what the GUI odes to the fem structure you find your way out. there are lso few discussions about the fem structure, and the index if you run a search on the forum Hope it helps Ivar

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.