找回密码
 注册
Simdroid-非首页
楼主: ying111

[前后处理] 【问题征解】请问这种前处理网格如何画?

[复制链接]
发表于 2004-11-12 10:30:38 | 显示全部楼层 来自 湖北武汉

Re:【问题征解】请问这种前处理网格如何画?

用fish很容易做的
把要变成圆弧的地方用椭圆的方程来控制坐标就可以搞定,现在忙,改天做一个。
发表于 2004-11-12 14:01:33 | 显示全部楼层 来自 湖北武汉

Re:【问题征解】请问这种前处理网格如何画?

Simdroid开发平台
边界还不知道如何处理,
认为很简单做起来还是很费劲,要是用ansys应该会简单很多!
gen zone brick size 10 10 10
def tuoyuan
gp=gp_head
loop while gp # null
dd=90*(1-gp_xpos(gp)/10)*degrad
xx=0.5*gp_zpos(gp)*cos(dd)
zz=1*gp_zpos(gp)*sin(dd)
gp_xpos(gp)=xx
gp_zpos(gp)=zz
gp=gp_next(gp)
endloop
end
tuoyuan
pl show
pl add surf

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

发表于 2004-11-12 16:46:48 | 显示全部楼层 来自 湖北武汉

Re:【问题征解】请问这种前处理网格如何画?

又做了一个好像效果不好啊,还是一块看看评论一下吧,大家一块改进了!
gen zone brick size 10 10 10
def tuoyuan
gp=gp_head
loop while gp # null
mmax=max(gp_xpos(gp),gp_zpos(gp))
if gp_xpos(gp) # 10
if gp_zpos(gp) # 10
if gp_zpos(gp) # 0
aa=gp_zpos(gp)/sqrt(gp_xpos(gp)^2+gp_zpos(gp)^2)
dd=asin(aa)
xx=0.5*mmax*cos(dd)
zz=1*mmax*sin(dd)
gp_xpos(gp)=xx
gp_zpos(gp)=zz
endif
endif
endif
if gp_xpos(gp) = 10
if gp_zpos(gp) # 0
if gp_zpos(gp) # 10
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
endif
endif
if gp_zpos(gp) = 0
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
if gp_zpos(gp) = 10
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
gp=gp_next(gp)
endloop
end
tuoyuan
pl show
pl add surf

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

发表于 2004-11-14 22:38:05 | 显示全部楼层 来自 天津

Re:【问题征解】请问这种前处理网格如何画?

hanfengleng wrote:
又做了一个好像效果不好啊,还是一块看看评论一下吧,大家一块改进了!
gen zone brick size 10 10 10
def tuoyuan
gp=gp_head
loop while gp # null
mmax=max(gp_xpos(gp),gp_zpos(gp))
if gp_xpos(gp) # 10
if gp_zpos(gp) # 10
if gp_zpos(gp) # 0
aa=gp_zpos(gp)/sqrt(gp_xpos(gp)^2+gp_zpos(gp)^2)
dd=asin(aa)
xx=0.5*mmax*cos(dd)
zz=1*mmax*sin(dd)
gp_xpos(gp)=xx
gp_zpos(gp)=zz
endif
endif
endif
if gp_xpos(gp) = 10
if gp_zpos(gp) # 0
if gp_zpos(gp) # 10
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
endif
endif
if gp_zpos(gp) = 0
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
if gp_zpos(gp) = 10
gp_xpos(gp) =0.5*gp_xpos(gp)
endif
gp=gp_next(gp)
endloop
end
tuoyuan
pl show
pl add surf

很快了哦,思路绝对正确哦!!!
发表于 2004-11-15 09:53:48 | 显示全部楼层 来自 湖北武汉

Re:【问题征解】请问这种前处理网格如何画?

hanfengleng,做的不错,加油!
 楼主| 发表于 2004-11-22 18:03:54 | 显示全部楼层 来自 同济大学

Re:【问题征解】请问这种前处理网格如何画?

3D只能建到这地步了,

用2D来建模是不是可以?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2004-11-23 16:03:57 | 显示全部楼层 来自 同济大学

Re:【问题征解】请问这种前处理网格如何画?

用2D来建模是不是可以?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-3 21:13 , Processed in 0.031099 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

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