6

Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation   Contents   Index

Running Simulation - Parallel Run - Domain Decomposition

To run simulation in parallel the model regions have to be decomposed first. Utility decomposePar reads settings from system/decomposeParDict, it is recommended to use automatic decomposition method scotch.

 

numberOfSubdomains 4;

method         scotch;

Each region has to be decomposed individually:

# decomposePar -region spiral > log.decomposePar.spiral
# decomposePar -region rotor > log.decomposePar.rotor
# decomposePar -region drafttube > log.decomposePar.drafttube

Bash script can be used for decomposition:

 

#!/bin/sh
decomposePar -force -region spiral > log.decomposePar.spiral &
decomposePar -force -region rotor > log.decomposePar.rotor &
decomposePar -force -region drafttube > log.decomposePar.drafttube