Fixed an issue in which the logical coordinates of the particle (xi)
were not being initialized and was causing particles to get stuck in the iteration loop.
This commit is contained in:
parent
2eae95002d
commit
20bc1abc29
8 changed files with 42 additions and 37 deletions
|
|
@ -242,6 +242,8 @@ MODULE moduleInject
|
|||
self%v(2)%obj%randomVel(), &
|
||||
self%v(3)%obj%randomVel() /)
|
||||
|
||||
!Obtain natural coordinates of particle in cell
|
||||
partInj(n)%xi = mesh%vols(partInj(n)%vol)%obj%phy2log(partInj(n)%r)
|
||||
!Push new particle with the minimum time step
|
||||
CALL solver%pusher(self%sp)%pushParticle(partInj(n), tauMin)
|
||||
!Assign cell to new particle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue