24小时热门版块排行榜    

查看: 724  |  回复: 1

xmc8g

新虫 (初入文坛)

[交流] 单元类型定义 已有1人参与

请问如何在ansys workbench里定义静压单元HSFLD242?谢谢!

单元类型定义


发自小木虫Android客户端
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

焚琴煮鹤

铜虫 (小有名气)


小木虫: 金币+0.5, 给个红包,谢谢回帖
官方例子
!*********************************************
!**  **
!**  GET NEW IDs **
!**  **
!*********************************************
finish
/PREP7
!Get the maximum element type id
*get, max_type_id, etyp, 0, num, max
mytype = max_type_id + 1
! Get the maximum node number
*get, maxnn, node, 0, num, max
mynn = maxnn + 1
!Get the maximum material type id
*get, max_mat_id, mat, 0, num, max
mymat = max_mat_id + 1
!*********************************************
!**  **
!**  DEFINE MATERIAL PROPERTIESs **
!**  **
!*********************************************
! Define material constants
K = 22000 ! MPa, bulk modulus is 22000MPa
alpha = 0.000207 ! thermal expansion coefficient 1/degree
density = 0.9e-6 ! water density 1e-6kg/mm3
! Material properties for oil.
tb,fluid,mymat,1,1,liquid
tbtemp, 22 ! Define first temperature
tbdata,1, K, alpha, density ! initial density of air =1.225e-12 Kg/mm^3
!*********************************************
!**  **
!**  CREATE NEW ELEMENTs **
!**  **
!*********************************************
!Create a new element type
et,mytype,HSFLD242  ! Hydrostatic fluid element
keyopt, mytype, 5,1  ! introduce fluid mass based on the
volume of fluid element
! Create a center node inside the volume
n, mynn, 19, 30, 0
! Create the fluid element HSFLD242
type, mytype
mat, mymat
cmsel, s, face  !Select the name selection "face"
esurf, mynn ! Create HSFLD242 elements, the pressure node is "mynn"
allsel ! select all the elements
outres, all, all ! Request all the result plot
FINISH
/SOLU ! Enter the solution module
2楼2020-11-25 13:53:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 xmc8g 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 能否申诉? +7 echo8914667 2026-08-30 8/400 2026-08-31 17:00 by yihongxu
[文学芳草园] 梦想 +5 myrtle 2026-08-26 5/250 2026-08-31 14:40 by hahaboy
[基金申请] 中青基了要发朋友圈吗? +7 349506619 2026-08-28 7/350 2026-08-31 13:39 by 冼亮淀粉酶
[基金申请] 29号明天会评吗 +4 笨笨唐 2026-08-28 4/200 2026-08-31 09:30 by huixian257
[基金申请] 基金不中,共勉 +12 eulota 2026-08-26 12/600 2026-08-31 08:42 by ZJTJZ
[基金申请] 有没有仍没收到信息的 +7 德尚中行 2026-08-27 8/400 2026-08-30 20:52 by purplejack
[考博] 找导师 +6 yuanjiabao 2026-08-29 7/350 2026-08-30 14:40 by 生科新手
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 国自然面上复盘~欢迎讨论 (金币+15) +15 晴天加油 2026-08-26 16/800 2026-08-29 18:28 by symmetry
[基金申请] 国自然评审意见 +13 wangmingqi 2026-08-28 19/950 2026-08-29 10:22 by Poppy1104
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 怎么查啊 +6 huang1991js 2026-08-26 6/300 2026-08-28 08:42 by winsaint
[基金申请] 基金未中,这种答复是模板吗? +5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
信息提示
请填处理意见