Andrew Moa Blog Site

Slurm submits Fluent and CFX calculation scripts

1. Fluent

First, write the Fluent jou script:

/file/read-case "small_fan.cas.h5" 
/solve/initialize/hyb-initialization 
/solve/iterate 100 
/file/write-case "small_fan_results.cas.h5" ok 
/file/write-data "small_fan_results.dat.h5" ok 
/exit ok 

This jou file is very simple. It tells Fluent which file to read, how to initialize, how many steps to iterate, and how to save until the final exit. If the calculation is more complicated, such as involving UDF loading or special condition initialization settings, you need to add corresponding command lines. If you are not familiar with how to write TUI commands, you can record scripts through the command line window under the Fluent graphical interface.

2 minutes to read
Andrew Moa

PowerShell编写STAR-CCM+自动排队计算脚本

When I used STAR-CCM+ to do calculations on a Windows workstation, sometimes I had to submit more than ten or twenty computing tasks in one night. Of course, it was impossible to run more than ten tasks at the same time, and it was impossible to watch it run and submit them manually one by one. A few years ago, I wrote this simple queue calculation template using PowerShell, and I share it with you here.
2 minutes to read
Andrew Moa