|
Algorithm 1 DSMC algorithm for Boltzmann equation |
-
1:
Given N particles , with computed from the initial distribution ;
-
2:
forto do
-
3:
set ;
-
4:
sample pairs uniformly without repetition among all possible pairs of particles at time step t;
-
5:
for each pair , sample ,
-
6:
for each pair , compute the data change
compute
-
7:
end for
|