Closed quinnreynolds closed 7 years ago
Original comment by Quinn Reynolds (Bitbucket: kittychunk, GitHub: kittychunk).
Fixes #17
Calculation of gfeVector simplified, redundant terms removed
Original comment by Quinn Reynolds (Bitbucket: kittychunk, GitHub: kittychunk).
Well spotted; I wrote down the terms resulting from the Jacobian without following the algebra through. Too much coffee, not enough sleep ;)
Code can indeed be simplified neatly to self.gfeVector[j] = -mu (with each mu specific to index j) at each iteration of the solver.
Original report by Carl Sandrock (Bitbucket: alchemyst, GitHub: alchemyst).
Since
and
Why do we have
if it appears that
onDiagonal[j] * ni[j] + offDiagonal * niSum == constants.boltzmann * T -constants.boltzmann * T == 0
?