Exemple #1
0
 def __set_fwhm(self, fwhm):
     self.__fwhm = fwhm # arcmin
     self.eta = Booklet.arcmin2rad(Physics.fwhm2eta(fwhm)) # radians
Exemple #2
0
EB = 99.2   # peak energy of diffraction

theta_0=0
density = Booklet.density[Z]
lattice = Booklet.lattice[Z]
volume = Booklet.volume[Z]
TDebye = Booklet.TDebye[Z]
atomic_mass = Booklet.atomic_mass[Z]
hc=Booklet.hc

microthick=microthick_micron*10000
def fwhm2eta(x):
    return x/math.sqrt(8.*math.log(2.))

eta = Booklet.arcmin2rad(Physics.fwhm2eta(fwhm)) # radians

def mu(Z,keV):
    """Wrapper function"""
    return Booklet.mu(Z, keV)

sf = Booklet.sf(Z, hkl) # []

d_hkl = Booklet.d_hkl(Z, hkl) # [Angstrom]

def keV2Bragg(keV):
    return math.asin(Booklet.hc / (2. * d_hkl*keV))  #is given in radians

#def keVB2Bragg(keVB):
#    return math.asin(Booklet.hc / (2. * d_hkl*keVB))  #is given in radians