24小时热门版块排行榜    

查看: 1662  |  回复: 2

YEFU大人

新虫 (小有名气)

[求助] CFX批量计算 已有1人参与

请问有大佬可以将CFX-Pre计算的时候改成依次计算每一个.def文件吗?不是一次性让它都在计算,这样就可以算完一个先看一个

@wuming524 发自小木虫IOS客户端
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

klzg77541812

专家顾问 (正式写手)

NVH-FEA工程师

【答案】应助回帖

感谢参与,应助指数 +1
用command去控制吧,分为多行,算完一个,你就可以看一个了,具体命令如下,仔细看看
Answer:

The steps below assume that ANSYS CFX 19.2 is installed on a supported operating system and no firewalls are blocking communication across multiple computers is that is in use, CFX and HPC licenses are available.
This Solution could be reused for other recent versions going back to 18.2 with changes to the v### in the path

This also assumes you have working knowledge of Command Prompt on Windows OR terminal on Linux.
If you are not comfortable with command lines, please request assistance from your Organization's IT administrator.

Installation and Paths
On Windows
Default Installation path is
C:\Program Files\ANSYS Inc\
and CFX solver is in
C:\Program Files\ANSYS Inc\v192\CFX\bin\
You can try including this to the PATH or use the full path to cfx5solve

On Linux if /ansys_inc softlink was created to the installation location then below is the path to cfx5solve
/ansys_inc/v192/CFX/bin/

Test model and working directory
Create a Working Directory preferable a path without spaces or special characters

on Windows
say C:\temp\cfxtest\test1

on Linux try /home/cfxtest

Copy the example file below to the working directory in above

Windows
C:
cd \temp\cfxtest\test1
copy "C:\Program Files\ANSYS Inc\v192\CFX\examples\StaticMixer.def" .


Linux
cd /home
cp /ansys_inc/v192/CFX/examples/StaticMixer.def ./

Here are the steps to run CFX solver in different modes

Serial Mode, uses 1 core
On Windows
"C:\Program Files\ANSYS Inc\v192\CFX\bin\cfx5solve.exe" -batch -serial -def StaticMixer.def

On Linux
/ansys_inc/v192/CFX/bin/cfx5solve -batch -serial -def StaticMixer.def

Local machine only (Shared Memory Parallel) on one node change the command line flags to

-batch -par -def StaticMixer.def -par-local -part 10

Local machine only (Distributed Memory Parallel) on one node change the command line flags to
-batch -par -def StaticMixer1.def -par-dist "node01*2"

NOTE: if you are on a headnode or loginhnode say hostname node00, then do not run the above from node00. ssh to node01 and run from there. The first node in the list should be the node you are running the command line from.

To run across nodes on Linux
On Linux passwordless ssh needs to be enabled.

-batch -par -def StaticMixer1.def -par-dist "node01*2,node02*2"

To force a particular start method from command line, this example shows Intel MPI distributed Parallel

-batch -par -def StaticMixer1.def -par-dist "node01*2" -start-method "Intel MPI Distributed Parallel"

For Debugging purposes
add flag "-v" at the beginning without quotes

To stop an existing solve say the first run, you can use the command. Be sure to run the command in the folder which contains the directory being referenced.

Windows
"C:\Program Files\ANSYS Inc\v19.x\CFX\bin\cfx5stop.exe" -directory StaticMixer_001.dir

Linux
/ansys_inc/v19.x/CFX/bin/cfx5stop -directory StaticMixer_001.dir

» 本帖已获得的红花(最新10朵)

慢慢地,慢慢地,都随风而逝了......
2楼2019-07-17 09:38:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

YEFU大人

新虫 (小有名气)

送红花一朵
引用回帖:
2楼: Originally posted by klzg77541812 at 2019-07-17 09:38:31
用command去控制吧,分为多行,算完一个,你就可以看一个了,具体命令如下,仔细看看
Answer:

The steps below assume that ANSYS CFX 19.2 is installed on a supported operating system and no firewalls ar ...

谢谢!但是有点不懂~

发自小木虫IOS客户端
3楼2019-07-18 09:02:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 YEFU大人 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085701环境工程专硕求调剂 +8 幼稚园大班打手 2026-03-08 8/400 2026-03-12 15:12 by 每天只摆一小会
[考研] 0856材料与化工309分求调剂 +5 ZyZy…… 2026-03-10 5/250 2026-03-12 11:31 by 2020015
[考研] 271求调剂 +7 生如夏花… 2026-03-11 7/350 2026-03-12 09:32 by allen-yin
[考研] 一志愿天津大学材料与化工275求调剂 10+5 穿只靴子 2026-03-07 22/1100 2026-03-11 21:11 by kiokin
[考研] 工科0856专硕化学工程269能调剂吗 +9 我想读研11 2026-03-10 9/450 2026-03-11 16:42 by 看开一点
[考研] 接受26届调剂生 +22 猪猪猪毛 2026-03-06 23/1150 2026-03-11 14:55 by Lly031128
[考研] 材料调剂,307分 +12 张泳铭1 2026-03-09 13/650 2026-03-11 08:42 by 学员8dgXkO
[考研] 材料与化工求调剂 +11 与冬清宁 2026-03-07 14/700 2026-03-10 14:23 by Linda Hu
[基金申请] 面上项目还需要AI说明吗? +3 liyundong 2026-03-08 3/150 2026-03-09 22:30 by kingkocxr
[考研] 295复试调剂 +4 简木ChuFront 2026-03-09 4/200 2026-03-09 21:49 by wangjihu
[考研] 一志愿山东大学,总分327,英语二79,有论文,有竞赛,已过四六级 +3 木木目目1 2026-03-09 3/150 2026-03-09 19:52 by yuningshan
[考研] 0856求调剂 +3 squirtle11 2026-03-07 3/150 2026-03-09 09:54 by @飒飒飒飒
[考研] 334求调剂 +8 Trying] 2026-03-06 8/400 2026-03-08 14:51 by hmn_wj
[考研] 材料化工求调剂 +7 博斯特525 2026-03-06 8/400 2026-03-08 03:51 by lfhuang
[考研] 322分 085600求调剂,有互联网+国金及主持省级大创经历 +4 熊境喆 2026-03-05 4/200 2026-03-07 22:04 by 星空星月
[考研] 求调剂,不管什么专业,我是可塑造的人才一枚,希望遇到知己老师捞捞我 +4 13102137290 2026-03-06 5/250 2026-03-07 21:21 by lissomchan
[考研] 一志愿中国石油大学(华东) 本科齐鲁工业大学 求调剂 +3 snw石 2026-03-07 3/150 2026-03-07 20:01 by houyaoxu
[考研] 诚求调剂,323分 有专利/科研/实习经历 +6 橙子cyx 2026-03-06 8/400 2026-03-07 19:06 by 新篇章DFSS
[考研] 085600材料与化工 292分 求调剂 +6 程晴之 2026-03-06 6/300 2026-03-07 09:22 by 斩魂滴兔子!
[考博] 2026申博自荐 六级440电催化方向 +4 樱落成影花成双 2026-03-05 4/200 2026-03-06 07:57 by L135790
信息提示
请填处理意见