fluent批量处理——模型参数的设置

更新时间:2023-06-11 18:08:47 阅读: 评论:0

宇多田光 first lovefluent批量处理——模型参数的设置
对于常见的⼯程应⽤来说,计算的⼯况很多,尤其优化⼯作,少则⼏百,多则上千,⾯对如此之多的ca⽂件要写,假如按照⼀个⼀个的读写的话,相信你⼀定会为这么机械的⼯作烦躁,甚⾄影响今后好⼏天的⼼情,那么有什么简便⼀些的⽅法呢?答案是肯定的。那就是采⽤fluent的journal⽂件。
⾸先打开fluent软件,在file/write/start journal,见下图:
男士穿衣打扮网选择保存⽂件名*.journal后(看你⾃⼰怎么设置⽂件名),我⼀般按照这⼀组的类型来命名;
这样, journal⽂件就开始记录你以后的每⼀步操作。
按照原先设置模型参数⼀样,⼀步步来就是了。
等你操作完成后,原先的”start journal“现在已经是”stop journal“,所以你只需要选择”stop journal“就可以了。
此时,⽤写字板打开看看就可以看到如下的⼀些记录命令。
沈阳万象城电话(cx-gui-do cx-activate-item "MenuBar*")
(cx-gui-do cx-activate-item "Warning*OK")
(cx-gui-do cx-t-text-entry "Select File*Text" "fluent.msh")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "MenuBar*GridMenu*Check")12月 英文
(cx-gui-do cx-activate-item "MenuBar*GridMenu*")
(cx-gui-do cx-activate-item "Smooth/Swap Grid*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Smooth/Swap Grid*PanelButtons*PushButton1(Swap)")
(cx-gui-do cx-activate-item "Smooth/Swap Grid*PanelButtons*PushButton2(Cancel)")
(cx-gui-do cx-activate-item "MenuBar*")
(cx-gui-do cx-activate-item "Solver*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*")
apoint(cx-gui-do cx-activate-item "Viscous Model*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*DefineMenu*")
limes(cx-gui-do cx-activate-item "Boundary Conditions*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-t-real-entry-list "velocity-inlet-10-1*Frame4*Frame3(Momentum)*Table1*Table4*RealEntry2(Velocity Magnitude)" '( 10))
(cx-gui-do cx-activate-item "velocity-inlet-10-1*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "Boundary Conditions*PanelButtons*PushButton2(Cancel)")
(cx-gui-do cx-activate-item "MenuBar*")
(cx-gui-do cx-t-list-lections "Solution Controls*Table1*Frame2(Pressure-Velocity Coupling)*Table2(Pressure-Velocity Coupling)*DropDownList1" '( 1))
(cx-gui-do cx-activate-item "Solution Controls*Table1*Frame2(Pressure-Velocity Coupling)*Table2(Pressure-Velocity Coupling)*DropDownList1")
(cx-gui-do cx-t-list-lections "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList1(Pressure)" '( 3))
(cx-gui-do cx-activate-item "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList1(Pressure)")
(cx-gui-do cx-t-list-lections "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList2(Momentum)" '( 1))
(cx-gui-do cx-activate-item "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList2(Momentum)")
(cx-gui-do cx-t-list-lections "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList3(Turbulent Kinetic Energy)" '( 1))
(cx-gui-do cx-activate-item "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList3(Turbulent Kinetic Energy)")
(cx-gui-do cx-t-list-lections "Solution
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList4(Turbulent Dissipation Rate)" '( 1))
(cx-gui-do cx-activate-item "Solution英语格言警句
Controls*Table2*Frame1(Discretization)*Table1(Discretization)*DropDownList4(Turbulent Dissipation Rate)")
(cx-gui-do cx-activate-item "Solution Controls*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*")
cn(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry11" '( 1e-005))
(cx-gui-do cx-t-toggle-button "Residual Monitors*Table1*Frame1(Options)*ToggleBox1(Options)*CheckButton2(Plot)" #f) (cx-gui-do cx-activate-item "Residual Monitors*Table1*Frame1(Options)*ToggleBox1(Options)*CheckButton2(Plot)")spirality
(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry17" '( 1e-005))
(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry23" '( 1e-005))
(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry29" '( 1e-005))
(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry35" '( 1e-005))
(cx-gui-do cx-t-real-entry-list "Residual Monitors*Table2*RealEntry41" '( 1e-005))见证奇迹的人生
(cx-gui-do cx-activate-item "Residual Monitors*PanelButtons*PushButton1(OK)")
(cx-gui-do cx-activate-item "MenuBar*")
(cx-gui-do cx-t-text-entry "Select File*Text" "fluent.cas")
(cx-gui-do cx-activate-item "Select File*OK")
(cx-gui-do cx-activate-item "Warning*OK")
这样⼀个ca⽂件就写完了,你后⾯需要做的就是替换"fluent.msh"与"fluent.cas“为你⾃⼰的⽂件名就⾏。复制粘贴写好的⼀个ca的journal⽂件,替换成下⼀个mesh⽂件名;值得注意的是,模型⽂件中的边界数量要⼀致,否则会出现错误,因为GUI语⾔是按照fluent⾥边界的ID号来识别的。
基本上,这样写ca⽂件还是很省事的,你到时就可以在⼀边听着⾳乐,⼀边看着它⾃动编写!

本文发布于:2023-06-11 18:08:47,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/931341.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:打开   选择   记录   模型   相信   定会   看看   参数
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图