Fixes to random variables

After reading some works and reviewing what I had, I've done some
corrections to how the randomb velicities in Maxwellian distributions
are calculated. These should be correct now.
This commit is contained in:
Jorge Gonzalez 2025-08-02 13:25:48 +02:00
commit 4b040c35c3
2 changed files with 12 additions and 11 deletions

View file

@ -289,7 +289,7 @@ MODULE moduleInject
REAL(8):: v
v = 0.D0
v = self%vTh*randomMaxwellian()
v = sqrt(2.0)*self%vTh*randomMaxwellian()
END FUNCTION randomVelMaxwellian
@ -302,7 +302,7 @@ MODULE moduleInject
REAL(8):: v
v = 0.D0
v = self%vTh*randomHalfMaxwellian()
v = sqrt(2.0)*self%vTh*randomHalfMaxwellian()
END FUNCTION randomVelHalfMaxwellian