24小时热门版块排行榜    

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

YEFU大人

新虫 (小有名气)

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

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

@wuming524 发自小木虫IOS客户端
回复此楼
已阅   回复此楼   关注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的回帖
查看全部 3 个回答

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿南京大学资源与环境专业283分求调剂 +6 追云?? 2026-03-04 6/300 2026-03-06 20:03 by wangjihu
[考研] 085600材料工程一志愿中科大总分312求调剂 +10 吃宵夜1 2026-02-28 12/600 2026-03-06 16:41 by @飒飒飒飒
[考研] 286求调剂 +9 Faune 2026-03-06 10/500 2026-03-06 16:31 by 学员FnSWZj
[考研] 材料工程调剂 +6 zbcm_zbcm 2026-03-05 6/300 2026-03-06 15:36 by @飒飒飒飒
[考博] 2026申博自荐 六级440电催化方向 +4 樱落成影花成双 2026-03-05 4/200 2026-03-06 07:57 by L135790
[考研] 材料考研339求调剂 +3 Karry*^_^* 2026-03-04 3/150 2026-03-06 00:32 by wutongshun
[考研] 304求调剂 +4 曼殊2266 2026-03-05 4/200 2026-03-05 17:10 by zhukairuo
[考研] 材料学学硕308分/本科东北大学/一志愿西北工业大学/ 5+3 苏尧幺幺 2026-03-03 8/400 2026-03-05 16:06 by njzyff
[考博] 申博 +3 添菜了哈 2026-03-04 5/250 2026-03-05 13:13 by 添菜了哈
[考研] 085701环境工程 求调剂 +7 xiiiia 2026-03-04 7/350 2026-03-05 09:49 by 热情沙漠
[考研] 22408-273求调剂-担任3个项目的负责人-1篇国际期刊论文(一作)1篇核心期刊论文在投。 +3 没想好取什么名 2026-03-03 3/150 2026-03-05 08:38 by Destiny688
[考研] 293求调剂 +3 是乐渝哇 2026-03-04 3/150 2026-03-04 23:12 by wutongshun
[考研] 一志愿中南大学理学化学 +6 15779376950 2026-03-01 8/400 2026-03-04 16:19 by zhukairuo
[考研] 291求调剂 +4 Afy123456 2026-03-03 7/350 2026-03-03 22:29 by barlinike
[考研] 298求调剂 +3 人间唯你是清欢 2026-03-03 4/200 2026-03-03 18:09 by ms629
[考研] 一志愿华南理工大学材料与化工326分,求调剂 +3 wujinrui1 2026-02-28 3/150 2026-03-02 16:36 by chuocheng
[考博] 诚招农业博士 +3 心欣向荣 2026-02-28 3/150 2026-03-02 13:33 by 时间不狗
[考研] 化工专硕342,一志愿大连理工大学,求调剂 +6 kyf化工 2026-02-28 7/350 2026-03-02 10:56 by 无际的草原
[考研] 化工299分求调剂 一志愿985落榜 +5 嘻嘻(*^ω^*) 2026-03-01 5/250 2026-03-01 19:47 by 无际的草原
[考研] 328求调剂 +3 aaadim 2026-03-01 5/250 2026-03-01 17:29 by njzyff
信息提示
请填处理意见