0%

CFX常用脚本

计算

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5solve" -batch -def example.def -ccl example.ccl   -fullname example

加算

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5solve" -batch -initial example.res -def example.def -ccl example.ccl   -fullname example

将结果插值到新网格并加算

Interpolates the solution from the initial values file, if one is supplied (using the -initial option), onto the mesh from the CFX-Solver input file, rather than using the mesh from the initial values file. This option has been deprecated and should be replaced by the -initial-file or -continue-from-file option, as appropriate.

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5solve" -batch -initial example.res -def new.def -ccl new.ccl -interp-iv  -fullname new

中途换ccl

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5control" example.dir -inject-commands example.ccl

运行宏文件

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5pre" -batch example.pre

取结果

1
"C:\Program Files\ANSYS Inc\v140\CFX\bin\cfx5mondata" -varrule "CATEGORY = USER POINT" -res example.res -out example.dat

写结果

在计算路径的*.dir下,新建名为stp的空文件,将写出res结果,程序停止运行。新建名为trn的空文件,将写出备份结果,程序继续运行。

更多

参考// CFX-Solver Manager User's Guide // 11. Starting the CFX-Solver from the Command Line // 11.2. Command-Line Options and Keywords for cfx5solve