This section describes the usage of the programs that are part of the PI-DSMC program package. There are separate programs: PIDS2geo, PIDS3geo, PIDSMC and PIDSMCfrontend. None of these programs has a graphical user interface. All programs should be started from the command line.
The programs PIDS2geo and PIDS3geo are used to generate 2D and 3D data sets. Both programs require a configuration file that can be created with PIDSMCconfig. The table below lists the available command line parameters of PIDS2geo and PIDS3geo.
| name | required / optional | description |
|---|---|---|
| -g config_file | required | Name of the configuration file |
| -d directory | optional | Directory where the data set will be saved. The current directory will be used if this parameter is not specified. |
| -h | optional | Display help |
| -p | optional | Generate a new dataset. |
| -np x | optional | Use x CPUs for geometry generation. |
After the generation of the data set, the DSMC calculation can be started.
| name | required / optional | description |
|---|---|---|
| -d directory | required | Directory where the data is stored. The current directory will be used if this parameter is not specified. |
| -h | optional | Display help |
| -tl time | optional | Abort the simulation when the specified flow time [s] was reached. |
| -dll filename | optional | Enable the DLL interface. The DLL with the specified name will be loaded. |
| -shm | optional | Use shared memory to save memory. |
| -se | optional | Save data set before the program aborts. |
| -numa a b | optional | Bind a instances to each NUMA node starting with node b. This prevents the OS from moving processes around. |
| -cdt | optional | Use constant time step, i.e. classical DSMC. |
| -clean | optional | Remove shared memory pages after an abnormal program termination. |
| -exp file | optional | Export molecules to file. |
| -imp file | optional | Import molecules from file. |
| -init_gas | optional | Create molecules as defined by the reference gas. |
| -lb | optional | Enable automatic load balancing. |
| -mpi_nn n | optional | Force neighbour to neighbour communication among n neighbours, default value 1. |
| -rn | optional | Random selection of collision partners, i.e. classical DSMC. |
| -v | optional | Enable verbose mode, i.e. show output on screen. |
After PIDSMC was started, PIDSMC can only be controlled via a frontend called PIDSMCfrontend. The frontend must be started on the computer on which the first MPI rank is running. The table below lists the available command line parameters for PIDSMCfrontend.
| name | required / optional | description |
|---|---|---|
| -c | optional | cancel all pending commands |
| -f | optional | send command without asking for confirmation |
| -h | optional | Show the help screen. |
| -i | optional | show information about current simulation |
| -lb_off | optional | disable load balancing |
| -lb_on | optional | enable load balancing |
| -lb_once | optional | perform load balancing only once |
| -q | optional | quit current simulation (does not imply saving the data set) |
| -rs | optional | reset sample |
| -s | optional | save data on next occasion |
| -se_on | optional | enable save on exit |
| -se_off | optional | disable save on exit |
| -tl_on t | optional | time limit - quit at flow time t (does not imply saving the data set) |
| -tl_off | optional | disable time limit |
Please note: This page applies to PI-DSMC V3 which runs on CPUs.