Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added prefactor for conversion of temperature to mean energy.

  • Loading branch information...
commit 485be1a013a2e23343d52fd2ed093e125a83c9ea 1 parent 8ace016
Timothy Kelley authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 basic/src/Source.hs
View
4 basic/src/Source.hs
@@ -42,7 +42,9 @@ genCellParticle :: Mesh m => m ->
genCellParticle msh cidx ewt a g =
fst $ runRnd g $ do
let cll = cell msh cidx
- e' = temp . tempE $ mat cll
+ -- Mean energy of Planck-ish Fermionic distribution is
+ -- 7 pi^4/(180 zeta(3)) * (k_B T), ~ 3.15137
+ e' = 3.15137 * (temp . tempE $ mat cll)
-- to do: sample energy, then sample direction
-- using Collision.sampleDirectionIso
oc <- sampleDirectionIso msh
Please sign in to comment.
Something went wrong with that request. Please try again.