We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
流体

流体

如何batch模式运行Fluent?

    • Yuanyuan Xiao
      Ansys Employee

      答:操作步骤如下:

      1.     新建文本文档,并修改后缀名为.bat。比如新建的文本文档名为”cyl.bat”.

      该文档内容如下:

      set path=c:\program files\ansys inc\v231\fluent\ntbin\win64

      fluent 3d -g -i run1.jou

      fluent 3d -g -i run2.jou

      注意:

      (1)    batch文件里需要指定好环境变量,比如2023R1版本的环境变量如上文所述。

      (2)    若需要指定hpc核数,则 增加“-tn”就可以,nhpc数。比如,fluent 3d -g -i -t10 run1.jou

      2.     创建与计算case数量相同的journal文件。比如,有两个case需要计算,分别是cyl10.cas.h5cyl20.cas.h5。则编写两个journal文件run1.jourun2.jou。内容分别如下:

      run1.jou的内容:

      /file/read-case cyl10.cas.h5

      /solve/initialize/hyb-initialize

      /solve/iterate 100

      /file/write-case-data cyl-10.cas.h5

      /exit

      run2.jou的内容:

      /file/read-case cyl20.cas.h5

      /solve/initialize/hyb-initialize

      /solve/iterate 100

      /file/write-case-data cyl-20.cas.h5

      /exit

      3.     双击cyl.bat文件,就可后台启动fluent

    • Yuanyuan Xiao
      Ansys Employee

      已回答,见上文。

Viewing 1 reply thread
  • 主题 ‘如何batch模式运行Fluent?’ 已关闭新回复.