In engineering, there are many unsteady fluid problems that cannot be simply solved using steady-state methods. Unsteady flows are primarily caused by two factors. One is due to internal fluid instability or a non-equilibrium initial state of the fluid, such as turbulence of various scales, shockwaves, convection, etc. The other is due to changing boundary conditions or source terms, like pulsating flows or the rotation of rotor blades in machinery. For these unsteady flows, it is necessary to use transient analysis methods in order to understand the state of the fluid and its solid contact surfaces.
Transient analysis involves calculating the flow field for multiple time steps. The computational workload also increases linearly with the duration of the simulation. Therefore it is a common approach to compute a steady state within a short time interval at each time step, numerically. Then, the results of this steady state are used as the initial conditions for the next time step’s calculation. Depending on the time solver used, the choice of time step may vary slightly, with implicit solvers typically allowing for larger time steps than explicit solvers. The well-known open-source multi-physics solver SU2 has been proven to work well for unsteady CFD problems. WELSIM also added support for SU2 in its 2023R3 release; for more details, refer to the article “Generate SU2 solver scripts using WELSIM.”
Steps for Unsteady CFD Analysis Below is an example demonstrating how to perform transient CFD analysis:
(1) Using a 2D model as an example, open WELSIM and create a new project, setting the model as a 2D transient fluid model.
(2) Import the geometry model.
(3) Create the mesh, setting the maximum element size to 0.03 meter.
(4) Set the time step for the solver to 0.0005 second, with a total run time of 0.6 second.
(5) Use the SU2 solver.
(6) The governing equations use RANS for compressible fluids, and the turbulence model is Spalart-Allmaras.
(7) Configure relevant solver parameters.
(8) Set the free-stream field conditions, including a Mach number of 0.3, an angle of attack of 17 degrees, standard temperature and pressure, and a Reynolds number of 1000.
(9) Define the far-field boundary conditions.
(10) Specify the thermal boundary conditions with a value of zero for heat flux and no heat convection.
Click the solve button. Since it is a transient computation, it will require a significant amount of computational time based on the mesh density and duration. After the calculation is complete, add a Mach number result object and display contour plots. The images below show the Mach number in the flow field at 0.027 seconds and 0.597 seconds, respectively.
The calculation result video for this case is as follows.
Additionally, this case has been integrated into WELSIM’s automated regression testing library, which can be beneficial for the long-term maintenance of the solver and front-end software. The test files have been open-sourced and shared on GitHub at the following address:
WELSIM’s Support for SU2 Commands
The config file of SU2 is the main solver input file, and currently, WELSIM as a preprocessor supports a significant number of core commands. SU2 version 7.5.1 includes a total of 671 commands, and WELSIM already supports 134 commands, accounting for 20% of the total. The supported commands are listed below.
SU2 is an excellent open-source CFD solver known for its performance and accessible licensing. It is capable of rapidly solving unsteady fluid problems involving turbulence. With its user-friendly graphical interface, WELSIM makes working with SU2 easier. WELSIM seamlessly integrates with SU2 for solving and displaying results, as well as generating SU2 computation input scripts as needed. Currently, WELSIM is recognized as the leading pre- and post-processing software worldwide for supporting SU2.
WELSIM is the #1 engineering simulation CAE software for the open-source community.