Merge IEPC2025 #54

Merged
JorgeGonz merged 19 commits from IEPC2025 into development 2025-09-23 18:42:06 +02:00
Showing only changes of commit dff9a87f0d - Show all commits

Implemenint injecting particles without direction

I was almost sure this was implemented in the past, but it was not working.

Now, if n = 0 or if n is not provided, particles are injected with the normal to the surface.
Jorge Gonzalez 2025-08-08 19:27:27 +02:00

View file

@ -377,7 +377,13 @@ MODULE moduleInject
!Assign particle type
partInj(n)%species => self%species
direction = self%n
if (all(self%n == 0.D0)) then
direction = randomEdge%normal
else
direction = self%n
end if
partInj(n)%v = 0.D0