24小时热门版块排行榜    

查看: 706  |  回复: 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 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 关于filecode +3 布布和一二 2026-08-07 4/200 2026-08-07 16:34 by 医学老男孩
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[论文投稿] 十年后又回来了,论文投稿求助 +4 哈哈114477 2026-08-01 4/200 2026-08-07 14:39 by jgy194592
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] 关于豆爷回答的JTJC与%2F数量 +4 yang182083 2026-08-06 6/300 2026-08-07 12:43 by 虫友是什么虫
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 基金中了 +11 laoda193707 2026-08-06 11/550 2026-08-07 10:54 by TT和NN
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 求各位大神看下 100+6 hpkpkpkp 2026-08-05 33/1650 2026-08-06 14:49 by zhiyanjiang
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 4/200 2026-08-05 09:59 by lfy8008
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
[基金申请] 纯娱乐,不喜欢勿喷 +7 Tide man 2026-08-04 10/500 2026-08-04 15:10 by loufangrui
[基金申请] 面上提前没消息,有中的吗 +14 archvillain 2026-08-02 18/900 2026-08-04 14:42 by archvillain
[基金申请] 娱乐 +4 Tide man 2026-08-03 4/200 2026-08-04 11:51 by wgch518
[基金申请] 什么时候能放榜呀? +3 Jacob678 2026-08-03 3/150 2026-08-03 16:14 by gltch
信息提示
请填处理意见