New and improved method to calculate collisions per iteration:
In each iteration, number of collisions are calculate as a REAL variable (collFrac) and stored in each cell. The number of collisions is calculated as FLOOR(collFrac) and, if it is >1 collisions are computed as usual. Per each collision calculated, 1.0 is removed from collFrac
This commit is contained in:
parent
4ba08e74af
commit
874d573e89
7 changed files with 26 additions and 52 deletions
|
|
@ -78,10 +78,6 @@ MODULE moduleCollisions
|
|||
TYPE(interactionsBinary), ALLOCATABLE, TARGET:: interactionMatrix(:)
|
||||
!Folder for collision cross section tables
|
||||
CHARACTER(:), ALLOCATABLE:: pathCollisions
|
||||
!Time step for collisional process
|
||||
REAL(8):: tauCollisions
|
||||
!Number of iterations between collisional updates
|
||||
INTEGER:: everyCollisions
|
||||
|
||||
CONTAINS
|
||||
!Velocity of center of mass of two particles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue