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 run_droplet.py

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

run_droplet.py
run_droplet_swirl.main()[source]

Cortix run file for a Droplet-Vortex network.

run_droplet_swirl.n_droplets

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

run_droplet_swirl.end_time

float – End of the flow time in SI unit.

run_droplet_swirl.time_step

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

run_droplet_swirl.create_plots

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

run_droplet_swirl.plot_vortex_profile

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

run_droplet_swirl.use_mpi

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