Andrew Moa Blog Site

Ubuntu compile and install SU2

SU2 is an open source CFD solver developed by the School of Aeronautics and Astronautics at Stanford University. It is based on C++ and Python and is similar to OpenFOAM, but does not support polyhedral meshes. Compared with OpenFOAM, SU2 has more advantages in solving high-speed compressible flows.

Download SU2 source code:

mkdir $HOME/su2code && cd $HOME/su2code
# Only clone the latest commit version to speed up downloading
git clone https://github.com/su2code/SU2.git --depth=1

Define environment variables and create a new configuration file su2.env:

2 minutes to read
Andrew Moa

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

Tabby configuration MSYS2

Tabby is a very good-looking terminal tool. I first used it to replace the local terminal, and then I found more and more advantages. First of all, it has built-in support for SSH connection and SFTP file transfer. The setting operation is simple, avoiding the tedious settings in the Windows terminal. Secondly, it can be used to replace the original Mintty interface of MSYS2 and Cygwin to achieve seamless switching between different terminals. Regarding how to call MSYS2 in the Tabby terminal, the following is a record of the configuration method:
2 minutes to read
Andrew Moa