Skip to content

Commit

Permalink
fixing variances, removing drift field dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
josh0-jrg committed Sep 23, 2024
1 parent 3fb0932 commit cf2bec1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flamedisx/nest/lxe_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def fano_factor(self, nq_mean):
er_free_a = 0.3#0.0015
Fano = 0.12707 - 0.029623 * self.density - 0.0057042 * pow(self.density, 2.) + 0.0015957 * pow(self.density, 3.)

return Fano + er_free_a * tf.sqrt(nq_mean) * pow(self.drift_field, 0.5)
return tf.constant(er_free_a,tf.float32) #Fano + er_free_a * tf.sqrt(nq_mean) * pow(self.drift_field, 0.5)

def exciton_ratio(self, energy):
return self.alpha * tf.math.erf(0.05 * energy)
Expand Down Expand Up @@ -384,9 +384,10 @@ def variance(self, *args):
er_free_e = -0.26564#-0.2

elec_frac = nel_mean / nq_mean
ampl = tf.cast(0.086036 + (er_free_b - 0.086036) /
pow((1. + pow(self.drift_field / 295.2, 251.6)), 0.0069114),
fd.float_type())
ampl = er_free_b
# tf.cast(0.086036 + (er_free_b - 0.086036) /
# pow((1. + pow(self.drift_field / 295.2, 251.6)), 0.0069114),
# fd.float_type())
wide = er_free_c
cntr = er_free_d
skew = er_free_e
Expand Down

0 comments on commit cf2bec1

Please sign in to comment.