24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1461  |  回复: 7
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

哥本哈根月光

铁杆木虫 (正式写手)

[求助] fluent. 如何用journal编写patch

请问采用journal如何对固体patch初始温度? 下面是我的代码,求高手帮忙翻译成TUI

(cx-gui-do cx-activate-item "MenuBar*InitializeSubMenu*Patch..." )
(cx-gui-do cx-set-list-selections "Patch*Frame3*Frame1*List1(Zones to Patch)" '( 0) )
(cx-gui-do cx-activate-item "Patch*Frame3*Frame1*List1(Zones to Patch)" )
(cx-gui-do cx-set-list-selections "Patch*Frame3*Frame1*List1(Zones to Patch)" '( 0 1) )
(cx-gui-do cx-activate-item "Patch*Frame3*Frame1*List1(Zones to Patch)" )
(cx-gui-do cx-set-list-selections "Patch*Frame1*Table2*Frame2*List2(Variable)" '( 4))
(cx-gui-do cx-activate-item "Patch*Frame1*Table2*Frame2*List2(Variable)" )
(cx-gui-do cx-set-position "Patch" '(x 510 y 143))
(cx-gui-do cx-set-position "Patch" '(x 506 y 112))
(cx-gui-do cx-set-real-entry-list "Patch*Frame2*RealEntry1(Value)" '( 303.15))
(cx-gui-do cx-activate-item "Patch*PanelButtons*PushButton1(Patch)" )
(cx-gui-do cx-activate-item "Patch*PanelButtons*PushButton1(Close)" )
(cx-gui-do cx-activate-item "MenuBar*WriteSubMenu*Stop Journal" )

[ Last edited by 哥本哈根月光 on 2012-11-20 at 17:04 ]
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

你眉目如当年,流转我心间
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

哥本哈根月光

铁杆木虫 (正式写手)

引用回帖:
3楼: Originally posted by fangdian at 2012-11-21 11:40:53
如果你确实整洁一点,就采用DEFINE_INIT这个宏进行UDF编写吧。
  当然只是一个建议,因为我感觉这些简洁的办法,也许不是重要的问题。

谢谢,直接采用这段代码能用,而且可以和TUI命令混合使用。
你眉目如当年,流转我心间
4楼2012-11-23 17:54:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

fangdian

木虫 (正式写手)

★ ★
xiegangmai: 金币+2, 谢谢参与 2012-11-24 20:53:08
直接用这个也是一样用的,你是不是想将此journal用到linux下?如果用到无界面的linux下就会有问题,否则在有界面的情况下,这个代码还是符合的。
  虽然你是通过记录菜单操作生成的,难看一点。
2楼2012-11-21 11:38:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fangdian

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
哥本哈根月光: 金币+15, ★★★★★最佳答案 2012-11-23 17:54:42
xiegangmai: 金币+1, 谢谢参与 2012-11-24 20:53:17
如果你确实整洁一点,就采用DEFINE_INIT这个宏进行UDF编写吧。
  当然只是一个建议,因为我感觉这些简洁的办法,也许不是重要的问题。
3楼2012-11-21 11:40:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

饥饿召唤师

新虫 (初入文坛)

请问楼主这些代码是从哪里得到的,是自己编写的吗?
5楼2017-04-24 09:25:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见