Numerical modeling of space plasma flows