<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="http://www.comsol.fi/community/forums/general/rss/thread/617.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: Numbering of the boundaries in *.m file</title>
  <link>http://www.comsol.fi/community/forums/general/thread/617/</link>
  <description>Most recent forum messages</description>
  <pubDate>Fri, 26 Nov 2010 13:44:09 +0000</pubDate>
  <image>
   <title>COMSOL Forums: Numbering of the boundaries in *.m file</title>
   <url>http://www.comsol.fi/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.fi/community/forums/general/thread/617/</link>
  </image>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30352</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
but COMSOL is so complex that there might be other reasons why things change, ... no ?&lt;br /&gt;&#13;
This does not mean that renumering is not (very) important, I agree, send a suggestion to COMSOL&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
V4 can do much more than v3.5 so I'm rather happy&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
--&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
Ivar</description>
   <pubDate>Fri, 26 Nov 2010 13:44:09 +0000</pubDate>
   <guid isPermaLink="false">617.1290779049.30352</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30346</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I agree with you, and I can only suggest that you ask support too, it might already be on their to do list, but will not be there if nobody asks for it ;)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
--&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
Ivar</description>
   <pubDate>Fri, 26 Nov 2010 13:33:01 +0000</pubDate>
   <guid isPermaLink="false">617.1290778381.30346</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30343</link>
   <description>&lt;div class=&quot;quote&quot;&gt;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
...  It was very extensive to do this and you had to use some creepy, badly documented functions, but it worked. ;)  In COMSOL 4.0a there seems to be no way to do this...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
... Is everyone else using the GUI only? ;-)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;/div&gt;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
If a code is working okay, why update it in the first place ;)&lt;br /&gt;&#13;
/Onur</description>
   <pubDate>Fri, 26 Nov 2010 13:31:47 +0000</pubDate>
   <guid isPermaLink="false">617.1290778307.30343</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30334</link>
   <description>Hi Ivar,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
thanks for your reply! I think that's the point: Why does the user have to care about some numbering methods when using the Matlab LiveLink? Why is there no method to reference e.g. all boundarys that belong to a certain 3D-block by the feature-tag of the block? Every COMSOL 4 example that I could find had a hard-coded list like this:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
model.geom('geom1').feature.create('blk1', 'Block'); ...&lt;br /&gt;&#13;
model.selection('sel1').set([1 2 3 4 7 8]); ...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
But what I need is something like this:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
model.geom('geom1').feature.create('blk1', 'Block'); ...&lt;br /&gt;&#13;
model.selection('sel1').set(getAllBoundarysFromFeature('blk1')); ...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I often have to make hundreds of simulations with complex geometry variations via script, and there is no way to know the boundary-numbers in advance and code them hard into the script. For 3.5a it was possible to create a reliable workaround to receive the numbers/ids of faces, subdomains etc. corresponding to a certain geometry. It was very extensive to do this and you had to use some creepy, badly documented functions, but it worked. ;) In COMSOL 4.0a there seems to be no way to do this...&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I think I'll wait until I get my hands on the 4.1 Version next week and If I don't get it working in 4.1, I contact the support. I don't understand, why there are so few people with the same problem. Is everyone else using the GUI only? ;-)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
kind regards&lt;br /&gt;&#13;
David</description>
   <pubDate>Fri, 26 Nov 2010 13:13:09 +0000</pubDate>
   <guid isPermaLink="false">617.1290777189.30334</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30226</link>
   <description>Hi&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
be aware that the numbering methode might well have changed between 3.5a and 4, and could too in the future, from what I have understood, but to be sure ask directly &amp;quot;support&amp;quot; (I'm not COMSOL;)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
--&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
Ivar</description>
   <pubDate>Thu, 25 Nov 2010 19:20:20 +0000</pubDate>
   <guid isPermaLink="false">617.1290712820.30226</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p30184</link>
   <description>Sorry for bringing up this old Thread, but I still find this an important question. Imho the whole usability of the MATLAB LiveLink depends on this feature, e.g. if you have simulations with geometrie-sweeps. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Edit: Just found this Thread: http://www.comsol.de/community/forums/general/thread/8837/ where the problem seems to be discussed in more detail.&lt;br /&gt;&#13;
</description>
   <pubDate>Thu, 25 Nov 2010 10:25:27 +0000</pubDate>
   <guid isPermaLink="false">617.1290680727.30184</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p20441</link>
   <description>In 3.5a I was able to do this using a combination of geomcsg and flgeomnbs.  However, I cannot figure out how to do this with version 4.0a?  Has anyone figured out how to track the boundaries or more specifically how to determine what boundary numbers are assigned to a specific geometry feature?</description>
   <pubDate>Mon, 26 Jul 2010 13:26:06 +0000</pubDate>
   <guid isPermaLink="false">617.1280150766.20441</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p11912</link>
   <description>Hi Yannick,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
This is amazing, but I cannot seem to get it to work in 2D :( can you advise me on how to get it done into2D? and it will give me the index of boundaries if I'm not wrong.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks!</description>
   <pubDate>Tue, 13 Apr 2010 01:59:11 +0000</pubDate>
   <guid isPermaLink="false">617.1271123951.11912</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p10057</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks for the great functions.  I have another problem setting the boundary of a complicated geometry in Matlab that is somewhat related to the above topic.  The problem that I am trying to solve is involving more than 400 faces.  A lot of them are in contact.  I am wondering if there is function or list of commands able to find faces that are in contact.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Regards,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Francis&lt;br /&gt;&#13;
</description>
   <pubDate>Mon, 15 Mar 2010 15:04:10 +0000</pubDate>
   <guid isPermaLink="false">617.1268665450.10057</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p3805</link>
   <description>Hi,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
This is an excellent function! Just should have provided an example of its use.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;div class=&quot;quote&quot;&gt; function result = face(geometry,x,y,z,tol,density) &lt;/div&gt;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I would emphasis that the x,y,z co-ordinates are &amp;quot;rubberband&amp;quot; co-ordinates i.e. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
face(fem.geom,[3.6e-6 3.8e-6],[4e-6 4.5e-6],[0 40e-6],1e-3,2)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Orginally I entered tol=1 which resulted in all the boundaries in the model being returned, this is because this is the tolerance and 1 = 1m which is larger than my model space. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am still to work-out what the density is? I have it set to 2 and it is working well!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Good Work!!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Regards,&lt;br /&gt;&#13;
Tom</description>
   <pubDate>Tue, 03 Nov 2009 16:42:26 +0000</pubDate>
   <guid isPermaLink="false">617.1257266546.3805</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p1844</link>
   <description>Hello Jean and Yannick,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks to both of you! It seems I am benefiting fully form the experiences of the users who have been there before. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
/Onur</description>
   <pubDate>Fri, 04 Sep 2009 10:52:52 +0000</pubDate>
   <guid isPermaLink="false">617.1252061572.1844</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p1838</link>
   <description>Hello,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Comsol increment with a sort of triple loop (for x=1:end; for y=1:end; for z=1:end) to find the boundary number.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I have a matlab code which finds a face (or boundary) number (If you know the boundary position (x,y,z)).&lt;br /&gt;&#13;
the second matlab code finds vertex number.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I hope codes will help you,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Y.</description>
   <pubDate>Fri, 04 Sep 2009 06:28:20 +0000</pubDate>
   <guid isPermaLink="false">617.1252045700.1838</guid>
  </item>
  <item>
   <title>Re: Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p1828</link>
   <description>Hi,&lt;br /&gt;&#13;
It seems that the index of boundary begins on the left bottom corner of your windows and then increase until the right top corner with priority to the horizontal boundaries.&lt;br /&gt;&#13;
It's what I noticed. I hope it can help you in your project.</description>
   <pubDate>Thu, 03 Sep 2009 09:45:38 +0000</pubDate>
   <guid isPermaLink="false">617.1251971138.1828</guid>
  </item>
  <item>
   <title>Numbering of the boundaries in *.m file</title>
   <link>http://www.comsol.fi/community/forums/general/thread/617/#p1622</link>
   <description>Hello all,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am working on a parametric geometry model and I want to create my geometry/solution fully in script. I have to say that it is a rather complex geometry and till now I took the short and easy way by first creating my geometry in MatLab script with Comsol functions, exporting it to Comsol, doing the necessary subdomain and boundary settings there, exporting the model back to a &amp;quot;*.m&amp;quot; file (letting Comsol deal with the numbering for me) and proceeding with the solution. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Now, the geometry became more complex and the number of boundaries are not constant anymore and I need to understand how Comsol numbers the boundaries so that I can assign the correct boundary conditions without switching between Comsol and MatLab. When I look at bnd.ind=[] and equ.ind=[] there seems to be a logic behind the numbering but I couldn't be able to find any documentation explaining that systematic.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Thanks in advance,&lt;br /&gt;&#13;
Onur</description>
   <pubDate>Fri, 28 Aug 2009 11:01:35 +0000</pubDate>
   <guid isPermaLink="false">617.1251457295.1622</guid>
  </item>
 </channel>
</rss>

