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

Number of droplets to use (one per process).

Type

int

run_droplet_swirl.end_time

End of the flow time in SI unit.

Type

float

run_droplet_swirl.time_step

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

Type

float

run_droplet_swirl.create_plots

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

Type

bool

run_droplet_swirl.plot_vortex_profile

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

Type

bool

run_droplet_swirl.use_mpi

If set to True use MPI otherwise use Python multiprocessing.

Type

bool