Fixing a bug in injection of particles that was creating ghost particles
assumed to be inside the domain but without cell assigned. Now, particles are assumed to be outside the domain (n_in = .FALSE.) until findCell assign them a cell.
This commit is contained in:
parent
88b7dae9e5
commit
5368ff2bf3
3 changed files with 12 additions and 10 deletions
|
|
@ -53,6 +53,7 @@ MODULE moduleSolver
|
|||
part_temp%v(3) = -sin_alpha*v_p_oh_star(2)+cos_alpha*v_p_oh_star(3)
|
||||
part_temp%pt = part%pt
|
||||
part_temp%e_p = part%e_p
|
||||
part_temp%n_in = .FALSE. !Assume particle is outside until cell is found
|
||||
!Copy temporal particle to particle
|
||||
part=part_temp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue