Skip to main content
Version: release 25

PIC-MC Manual / General workflow

For DSMC-Gasflow simulation, PIC-MC plasma simulation or BEM magnetic field computation, different work flows are required. Depending on the usage of a Grid Scheduler or direct call of mpirun, the invocation commands may differ. In the following, the work flows and invocation commands for the different simulation cases are summarized.

DSMC gas flow simulation​

The work flow in a DSMC gas flow simulation can be summarized as follows:

StepDescriptionCommand via mpirunCommand via LSF batch system
1Create geometric mesh file via GMSH (see example) and save mesh file as filename.msh
2Create parameter template filename.par out of mesh file filename.mshinitpicmc filename
3Edit parameter template (see example)
4Start simulationrvmmpi -hostfile <hostfile> -picmc <n> filenamervmlsf -picmc <n> -i filename
5Create intermediate results during simulationtouch filename/plot
6Shutdown simulation and store internal state for later continuationtouch filename/shutdown
7Restart a simulation after shutdown (equal to step 4)rvmmpi -hostfile <hostfile> -picmc <n> filenamervmlsf -picmc <n> -i filename

The number of parallel picmc tasks, which should be used during computation are given in the <n> parameter after the -picmc switch. Remember that the number of parallel picmc tasks may not exceed (but may be less than) the number of segments of the simulation domain. The actual number of allocated CPU cores will be one more than the number of picmc tasks, since one more task is required for the master process.

If the simulation is invoked directly via mpirun using the rvmmpi script, a hostfile must be declared. This hostfile contains the names of the computing nodes together with their available number of CPU slots. An example is given in the following:

node1 slots=1
node3 slots=48
node4 slots=48

If a batch scheduler such as LSF or Sun Grid Engine (SGE) is used, no hostfile must be specified since the hostfile will be created dynamically by the scheduler. A graphical visualization of the work flow is given in the following picture.

Figure 1: Sketch of the work flow of a DSMC gas flow simulation

PIC-MC plasma simulation without magnetic field​

For a PIC-MC plasma simulation without magnetic field (e. g. in a PECVD parallel plate reactor or a glow discharge without magnetic field), the workflow is the same as in the DSMC case.

PIC-MC plasma simulation with magnetic field​

For a plasma simulation with an overlying magnetic field - e. g. a discharge of a magnetron sputtering target - additional steps for producing the magnetic field are required prior to starting the picmc simulation. The complete workflow is summarized in the following:

StepDescriptionCommand via mpirunCommand via LSF batch system
1Create geometric mesh file of the simulation domain (e. g. frame.msh) via GMSH and save mesh file e. g. as frame.msh
2Create mesh file of the magnetron arrangement (e. g. magnet.msh) via GMSH and save mesh file e. g. as magnet.msh
3Create parameter template frame.par out of mesh file frame.mshinitpicmc frame
4Edit parameter template. Fill in the name of the magnetic mesh file in the field BEMMESH
5Create a template file frame.bem, where the relation between surfaces and magnetic domains will be declaredinitbfield frame
6Edit the magnetic template file frame.bem
8Perform magnetic field computationrvmmpi -hostfile <hostfile> -bem <n> frame
 rvmlsf -bem  -i frame 
9Start PIC-MC simulationrvmmpi -hostfile <hostfile> -picmc <n> filenamervmlsf -picmc <n> -i filename
10Create intermediate results during simulationtouch filename/plot
11Shutdown simulation and store internal state for later continuationtouch filename/shutdown
12Restart a simulation after shutdownrvmmpi -hostfile <hostfile> -picmc <n> filenamervmlsf -picmc <n> -i filename