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.
time_step
¶ Size of the time step between port communications in SI unit.
- Type
-
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
-
run_droplet_swirl.
plot_vortex_profile
¶ Whether to plot (to a file) the vortex function used.
- Type
-