SU2 setup - sltmyr/precice GitHub Wiki

Setup of the Fluid Simulation with SU2

Before starting the coupled simulation, a single physics -- not coupled -- fluid simulation is run, and files called flow_00498.dat and flow_00499.dat are obtained. They are used to set the initial velocity and pressure fields for the coupled simulation.

To run the simulation with SU2, we need a configuration su2-config.cfg and a mesh fluidMesh.su2 file. In this tutorial, we limit our discussion to parts of the configuration file. A detailed description of simulating with SU2 and several examples can be found in the SU2 repository.

The first part of the configuration file sets the options for coupling SU2 with preCICE. These settings specify the location of the preCICE configuration file, as well as the interface where the data between fluid and solid solvers is exchanged.

% ------------- PRECICE PROBLEM DEFINITION ------------%

% Using preCICE for FSI simulation (YES, NO) - default: NO
PRECICE_USAGE= YES
%
% Name of the preCICE configuration file
PRECICE_CONFIG_FILENAME= ./precice-config.xml
%
PRECICE_WETSURFACE_MARKER_NAME= wetSurface
%
PRECICE_NUMBER_OF_WETSURFACES= 1

The rest of the configuration file describes the solver settings for our example. In particular, we specify that we want to solve the compressible laminar Navier-Stokes equations, set appropriate boundary conditions and choose the numerical methods. We also define the input mesh file fluidMesh.su2, the initial flow field flow_00498.dat, flow_00499.dat, and set output options.

After all these options are set appropriately, SU2 can be used for the fluid part of the coupled simulation.