Running The Solver

  • Mohamed Houssem Kasbaoui

Running The Solver

There are 3 steps to performing simulations with LEAP. First, you need to setup a case. This is explained in the section: Setting Up a New Case. Next, you need to generate initial conditions. Lastly, you integrate the solution forward in time.

For this case, we will use the predefined case for lid-driven cavity flow.

  cd /path/to/leap/inputs/cdifs_lid_driven_cavity

In this directory, you will find an input file containing parameters for this simulation. The input file calls for 2x2x1 domain partition. Thus, this run requires 4 cores.

To generate the initial conditions for this case, run the following command:

  mpiexec -n 4 /path/to/leap/bin/leap -i input -mode ini

Once this completes successfully, we can proceed with the integration using:

  mpiexec -n 4 /path/to/leap/bin/leap -i input -mode run

Note that if you omit the -mode flag, LEAP will default to -mode run.