First attempt at Coulomb collisions
First attemp for Coulomb collisions based on the moments distribtuions. Still the method is not done and far from being complete but input options and basic math are implemented.
This commit is contained in:
parent
7579d165ad
commit
601103105f
8 changed files with 295 additions and 26 deletions
|
|
@ -322,7 +322,7 @@ MODULE moduleSolver
|
|||
|
||||
!$OMP SECTION
|
||||
!Erase the list of particles inside the cell if particles have been pushed
|
||||
IF (doMCC) THEN
|
||||
IF (listInCells) THEN
|
||||
DO s = 1, nSpecies
|
||||
DO e = 1, mesh%numCells
|
||||
IF (solver%pusher(s)%pushSpecies) THEN
|
||||
|
|
@ -456,7 +456,7 @@ MODULE moduleSolver
|
|||
CALL partWScheme%unsetLock()
|
||||
!Add particle to cell list
|
||||
sp = part%species%n
|
||||
IF (doMCC) THEN
|
||||
IF (listInCells) THEN
|
||||
CALL OMP_SET_lock(cell%lock)
|
||||
CALL cell%listPart_in(sp)%add(newPart)
|
||||
CALL OMP_UNSET_lock(cell%lock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue