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.

domain index

Please login with a confirmed email address before reporting spam

I'm trying to write a code where i need to determine the index of different domains so i can attribute different charges and dielectric constants. this procedure is in a loop where in every step these constants change so i need to know the index of each domain. is there any way ?

2 Replies Last Post 10.07.2017, 05:48 GMT-4
COMSOL Moderator

Hello Micheal Anderson

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.


Please login with a confirmed email address before reporting spam

Posted: 7 years ago 09.07.2017, 19:13 GMT-4
Hi Micheal,

Did you succeed to solve your problem ?
Because I want to do the same thing...
Hi Micheal, Did you succeed to solve your problem ? Because I want to do the same thing...

Lorant Olasz COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 10.07.2017, 05:48 GMT-4
Hi Loic,

Instead of domain numbers I would like to direct your attention to selections. Selections will enable you to do the type of model set-up that I understand you would like to do.

The following video series is a good introduction to selections:
www.comsol.com/video/selections-streamline-comsol-multiphysics-modeling-workflow

The apps linked to from the blogs below are just a couple of examples you will find on our website (if you search for "selections") of how powerful selections are in helping with assigning physics to geometry:
www.comsol.com/blogs/intro-to-optimizing-mixer-design-by-creating-an-app/
www.comsol.com/blogs/how-to-dynamically-modify-geometries-in-simulation-apps/

There is also a blog series discussing selections in the context of LiveLink for MATLAB, which you will find here:
www.comsol.com/blogs/tag/working-with-m-files/

Best regards,
Lorant
Hi Loic, Instead of domain numbers I would like to direct your attention to selections. Selections will enable you to do the type of model set-up that I understand you would like to do. The following video series is a good introduction to selections: https://www.comsol.com/video/selections-streamline-comsol-multiphysics-modeling-workflow The apps linked to from the blogs below are just a couple of examples you will find on our website (if you search for "selections") of how powerful selections are in helping with assigning physics to geometry: https://www.comsol.com/blogs/intro-to-optimizing-mixer-design-by-creating-an-app/ https://www.comsol.com/blogs/how-to-dynamically-modify-geometries-in-simulation-apps/ There is also a blog series discussing selections in the context of LiveLink for MATLAB, which you will find here: https://www.comsol.com/blogs/tag/working-with-m-files/ Best regards, Lorant

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.