From 78cb9a245335ce68720c5f3e13cf97c7ccc0139c Mon Sep 17 00:00:00 2001 From: Jorge Gonzalez - Galactica Date: Sat, 2 Aug 2025 10:31:06 +0200 Subject: [PATCH] No reflection of particles at injection, that should be a boundary condition --- src/modules/moduleInject.f90 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/moduleInject.f90 b/src/modules/moduleInject.f90 index 000823e..4fb855a 100644 --- a/src/modules/moduleInject.f90 +++ b/src/modules/moduleInject.f90 @@ -385,12 +385,6 @@ MODULE moduleInject self%v(2)%obj%randomVel(), & self%v(3)%obj%randomVel() /) - !If velocity is not in the right direction, invert it - IF (DOT_PRODUCT(direction, partInj(n)%v) < 0.D0) THEN - partInj(n)%v = - partInj(n)%v - - END IF - !Obtain natural coordinates of particle in cell partInj(n)%Xi = mesh%cells(partInj(n)%cell)%obj%phy2log(partInj(n)%r) !Push new particle with the minimum time step