Exemplo n.º 1
0
 def OntextSUBSTRATE2(self, event):
     text = self.textSUBSTRATE2.GetValue(
     )  # look up to see if nominal density is available.
     out = readf1f2a.nominal_density(
         text)  # will be 1.0 if not in dictionary
     self.textDENSITY2.SetValue(str(out))
Exemplo n.º 2
0
if __name__ == '__main__':
    testing = 0
    if testing:
        #atom0='Fe'
        #emission0='Ka'
        #eV0=10000.
        #edge0='K'
        #eV1=6400.
        #mat0=Material('SiO2', 2.2, 0.001)
        #mat0.getLa(8000)
        #print(mat0.la, mat0.trans)
        #print(Assemble_QuadVortex(eV1))
        #print(Assemble_Collimator(eV1, xHe=1, xAl=0,xKapton=0, WD=6.0, xsw=0))
        matrix = SampleMatrix2('CaCO3',
                               f1f2.nominal_density('CaCO3'), 0.001, 'Fe2O3',
                               f1f2.nominal_density('Fe2O3'), 0.001, 45.,
                               'all')
        eV0 = 7500.
        Atoms = []
        atom = ElemFY('La', 10e-6)
        Atoms.append(atom)
        atom = ElemFY('Ce', 10e-6)
        Atoms.append(atom)
        atom = ElemFY('Nd', 10e-6)
        Atoms.append(atom)
        for (ii, item) in enumerate(matrix.ElemListFY):
            pass
        sim_spectra(eV0, Atoms,
                    sample=matrix)  # xKapton=-1 to remove WD60, -2 for WD30
    else:
Exemplo n.º 3
0
       

if __name__=='__main__':
    testing = 0
    if testing:
        #atom0='Fe'
        #emission0='Ka'
        #eV0=10000.
        #edge0='K'
        #eV1=6400.
        #mat0=Material('SiO2', 2.2, 0.001)
        #mat0.getLa(8000)
        #print(mat0.la, mat0.trans)
        #print(Assemble_QuadVortex(eV1))
        #print(Assemble_Collimator(eV1, xHe=1, xAl=0,xKapton=0, WD=6.0, xsw=0))
        matrix=SampleMatrix2('CaCO3', f1f2.nominal_density('CaCO3'), 0.001,'Fe2O3', f1f2.nominal_density('Fe2O3'), 0.001, 45.,  'all')
        eV0=7500.
        Atoms=[]
        atom=ElemFY('La', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Ce', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Nd', 10e-6);     Atoms.append(atom)
        for (ii, item) in enumerate(matrix.ElemListFY):
            pass
        sim_spectra(eV0, Atoms, sample=matrix)  # xKapton=-1 to remove WD60, -2 for WD30
    else:
        # March 2012 for Nov2011 beamtime
        eV0 = 10000.
        print2screen=0
        Atoms = []
        atom=ElemFY('Al', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Si', 10e-6);     Atoms.append(atom)
Exemplo n.º 4
0
 def OntextSUBSTRATE2(self, event):
         text=self.textSUBSTRATE2.GetValue()     # look up to see if nominal density is available.
         out=readf1f2a.nominal_density(text)          # will be 1.0 if not in dictionary
         self.textDENSITY2.SetValue(str(out))                
Exemplo n.º 5
0
       

if __name__=='__main__':
    testing = 0
    if testing:
        #atom0='Fe'
        #emission0='Ka'
        #eV0=10000.
        #edge0='K'
        #eV1=6400.
        #mat0=Material('SiO2', 2.2, 0.001)
        #mat0.getLa(8000)
        #print mat0.la, mat0.trans
        #print Assemble_QuadVortex(eV1)
        #print Assemble_Collimator(eV1, xHe=1, xAl=0,xKapton=0, WD=6.0, xsw=0)
        matrix=SampleMatrix2('CaCO3', f1f2.nominal_density('CaCO3'), 0.001,'Fe2O3', f1f2.nominal_density('Fe2O3'), 0.001, 45.,  'all')
        eV0=7500.
        Atoms=[]
        atom=ElemFY('La', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Ce', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Nd', 10e-6);     Atoms.append(atom)
        for (ii, item) in enumerate(matrix.ElemListFY):
            pass
        sim_spectra(eV0, Atoms, sample=matrix)  # xKapton=-1 to remove WD60, -2 for WD30
    else:
        # March 2012 for Nov2011 beamtime
        eV0 = 10000.
        print2screen=0
        Atoms = []
        atom=ElemFY('Al', 10e-6);     Atoms.append(atom)
        atom=ElemFY('Si', 10e-6);     Atoms.append(atom)