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.

How to distinguish between inner and outer bounadry conditions.

Please login with a confirmed email address before reporting spam

Hello!

I have created a MATLAB script to set up 2D and 3D RF models.
To assign the correct boundary conditions I would need to be able to distinguish between inner and outer boundaries.

Is there any way to find out which index in fem.appl.bnd.ind corresponds to an inner and which to an outer boundary?

There should be a way, because Comsol in GUI mode is able to distinguish between the boundaries, however, I couldn't find a solution yet.

Thanks alot for your ideas!!!!!

Clemens

3 Replies Last Post Sep 20, 2010, 5:55 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 9, 2010, 12:14 p.m. EDT
Hello!

This is a good question because I am having the exact same problem. If there is no way to do this, has anyone come up with any workarounds, etc? Thanks for any help in advance!
Hello! This is a good question because I am having the exact same problem. If there is no way to do this, has anyone come up with any workarounds, etc? Thanks for any help in advance!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 24, 2010, 3:38 p.m. EDT
The way that I handled this in 3.5x was to get a list of boundaries for each subdomain in my geometry (using geomcsg).
To figure out which boundaries are "interior", simply compare the list of boundaries for one subdomain to the list of boundaries for all other subdomains. If the same boundary belongs to two or more subdomains, then it is "interior".

Dont ask me how to do this in 4.0... that's part of my current dilemma.

Mark Roy
The way that I handled this in 3.5x was to get a list of boundaries for each subdomain in my geometry (using geomcsg). To figure out which boundaries are "interior", simply compare the list of boundaries for one subdomain to the list of boundaries for all other subdomains. If the same boundary belongs to two or more subdomains, then it is "interior". Dont ask me how to do this in 4.0... that's part of my current dilemma. Mark Roy

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 20, 2010, 5:55 a.m. EDT
You wouldn't hapen to have some sample code?
You wouldn't hapen to have some sample code?

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.