- 积分
- 15
- 注册时间
- 2008-7-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
本帖最后由 TBE_Legend 于 2009-6-11 08:44 编辑
Dear Ricky;
I had a similar problem. I was using a m-file script that automatically generates geometry and do the analysis in for-next loop. But every time i changed a geometry dimension(like scaling), the subdomain IDs were changing.
I solved it by "geomcsg" command.
The syntax of this command is :
[g,st] = geomcsg(sl)
Here, st is a variable that subdomain IDs are stored.
If you use FIND(x) command on that variable, you can get the subdomain IDs that are associated with the geometry ID x.
I hope this will work for you,too..
Oguz
From: Ricky Dunbar <ricky.dunbar@physik.uni-muenchen.de>
To: COMSOL_Users@yahoogroups.com
Sent: Sunday, June 7, 2009 5:16:14 PM
Subject: [COMSOL_Users] extracting face and subdomain levels in 3D using matlab-comsol
Dear COMSOL support,
I am defining a problem in 3D, my model is written in an m-file. I need
to extract the face and subdomain labels. What commands can I use? I
have tried:
figure,geomplot( fem, 'edgelabels' , 'on')
but it is not possible to see the interior boundaries. I would consider
opening the m-file with the GUI, but it only allows me to open .mph
files unfortunately.
Thank you very much
Ricky
|
评分
-
1
查看全部评分
-
|