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:
parent
78cb9a2453
commit
4b040c35c3
2 changed files with 12 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue