Combining ij - ji collisions
In an attempt to make the operator fully conservarive I have combined ij and ji collisions (when i/=j). Now the matter is to find a way that makes this conserve momentum and energy for intraspecies.
This commit is contained in:
parent
28b2bf206a
commit
c3a6f77ffc
2 changed files with 98 additions and 0 deletions
|
|
@ -11,7 +11,9 @@ MODULE moduleCoulomb
|
|||
REAL(8):: one_plus_massRatio_ij
|
||||
REAL(8):: lnCoulomb !This can be done a function in the future
|
||||
REAL(8):: A_i
|
||||
REAL(8):: A_j
|
||||
REAL(8):: l2_j
|
||||
REAL(8):: l2_i
|
||||
REAL(8):: tauSub
|
||||
INTEGER:: nSubSteps
|
||||
CONTAINS
|
||||
|
|
@ -92,8 +94,10 @@ MODULE moduleCoulomb
|
|||
scaleFactor = (n_ref * qe**4 * ti_ref) / (eps_0**2 * m_ref**2 * v_ref**3)
|
||||
|
||||
self%A_i = Z_i**2*Z_j**2*self%lnCoulomb / (2.D0 * PI**2 * self%sp_i%m**2) * scaleFactor !Missing density because it's cell dependent
|
||||
self%A_j = Z_j**2*Z_i**2*self%lnCoulomb / (2.D0 * PI**2 * self%sp_j%m**2) * scaleFactor !Missing density because it's cell dependent
|
||||
|
||||
self%l2_j = self%sp_j%m / 2.D0 !Missing temperature because it's cell dependent
|
||||
self%l2_i = self%sp_i%m / 2.D0 !Missing temperature because it's cell dependent
|
||||
|
||||
END SUBROUTINE initInteractionCoulomb
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue