run_droplet_swirl module

This example uses two modules instantiated many times. It be executed with MPI (if mpi4py is available) or with the Python multiprocessing library. These choices are made by variables listed below in the executable portion of this run file.

To run this case using MPI you should compute the number of processes as follows:

nprocs = n_droplets + 1 vortex + 1 cortix

then issue the MPI run command as follows (replace nprocs with a number):

mpiexec -n nprocs

To run this case with the Python multiprocessing library, just run this file at the command line as

Cortix run file for a Droplet-Vortex network.


int – Number of droplets to use (one per process).


float – End of the flow time in SI unit.


float – Size of the time step between port communications in SI unit.


bool – Create various plots and save to files. (all data collected in the parent process; it may run out of memory).


bool – Whether to plot (to a file) the vortex function used.


bool – If set to True use MPI otherwise use Python multiprocessing.