Dear various gods, finally...
I had to go back to sherlock2008montecarlo to properly understand the change in frame of reference and how to translate that into the code. The language there is clear and understandable for a dumb person like me. Now I have a Coulomb linear operator that at least works. However, still not fully 100% conservative, need to fix this with a correction for intra-species collisions. I skip gym today because I was unable to focus on other things than this.
This commit is contained in:
parent
d75af4bda7
commit
c45ffa5380
2 changed files with 39 additions and 28 deletions
|
|
@ -83,7 +83,7 @@ MODULE moduleCoulomb
|
|||
|
||||
scaleFactor = (n_ref * qe**4) / (eps_0**2 * m_ref**2 * v_ref**3) * ti_ref
|
||||
|
||||
self%A_i = 2.D0*Z_i**2*Z_j**2*self%lnCoulomb / self%sp_i%m**2 * scaleFactor
|
||||
self%A_i = Z_i**2*Z_j**2*self%lnCoulomb / (2.D0 * PI**2 * self%sp_i%m**2) * scaleFactor
|
||||
|
||||
self%l2_j = self%sp_j%m / 2.D0 !Missing temperature because it's cell dependent
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue