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

Ubuntu Install SIMULIA2024

Why did you choose SIMULIA? First, Abaqus is powerful and can solve most structural problems. Second, fluid-structure coupling is convenient. STAR-CCM+ comes with a case that shows you how to couple with Abaqus bidirectionally. Third, it is the inertia of past experience. After all, automobile companies use Abaqus a lot, and there are a lot of cases and resources.

1. Preparation

First install the development environment and some necessary software:

6 minutes to read
Andrew Moa