Still working on it

No uniform density yet...
This commit is contained in:
Jorge Gonzalez 2024-07-06 10:12:03 +02:00
commit 6b5ac16e4b
2 changed files with 1 additions and 2 deletions

View file

@ -318,7 +318,7 @@ MODULE moduleInject
!Random position in edge
partInj(n)%r = randomEdge%randPos()
!Assign weight to particle.
partInj(n)%weight = self%species%weight * sqrt(partInj(n)%r(2) / (0.1D0*L_ref))
partInj(n)%weight = self%species%weight * sqrt(partInj(n)%r(2) / (0.1D0/L_ref))
!Volume associated to the edge:
IF (ASSOCIATED(randomEdge%e1)) THEN
partInj(n)%cell = randomEdge%e1%n