找回密码
 注册
Simdroid-非首页
查看: 85|回复: 2

[15.分享让我牛B] using command "geomcsg" to store subdaims' IDs

[复制链接]
发表于 2009-6-9 10:24:17 | 显示全部楼层 |阅读模式 来自 黑龙江哈尔滨
本帖最后由 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

查看全部评分

发表于 2009-6-9 14:20:34 | 显示全部楼层 来自 浙江杭州
Simdroid开发平台
Very useful, thanks for share with us
回复 不支持

使用道具 举报

 楼主| 发表于 2009-6-9 17:34:25 | 显示全部楼层 来自 黑龙江哈尔滨
Very useful, thanks for share with us
flyingmind 发表于 2009-6-9 14:20


actually,  "Postprocessing and Associativity" in mlinterface.pdf can better  handle this kind of problem.
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-3-29 17:43 , Processed in 0.041952 second(s), 18 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表