Пример #1
0
    def calcMagneticModel(self):
        self.I = self.params['i0'] * sphere_css_coupled.magnetic_formfactor(
            self.q, self.params['particleSize'], self.params['dShell'],
            self.params['dSurfactant'], self.params['sldCore'],
            self.params['sldShell'], self.params['sldSurfactant'],
            self.params['sldSolvent'], self.params['sigParticleSize'],
            self.params['sigD'], self.params['magSldCore'],
            self.params['magSldShell'], self.params['magSldSurfactant'],
            self.params['magSldSolvent'], self.params['xi'],
            self.params['sin2alpha'], self.params['polarization']
        ) + self.params['i0Oleic'] * sphere.formfactor(
            self.q, self.params['rOleic'], self.params['sldSurfactant'],
            self.params['sldSolvent'], 0.) + self.params['bg']

        self.r, self.sld = sphere_css_coupled.sld(
            self.params['particleSize'],
            self.params['dShell'],
            self.params['dSurfactant'],
            self.params['sldCore'],
            self.params['sldShell'],
            self.params['sldSurfactant'],
            self.params['sldSolvent'],
        )

        self.rMag, self.sldMag = sphere_css_coupled.sld(
            self.params['particleSize'],
            self.params['dShell'],
            self.params['dSurfactant'],
            self.params['magSldCore'],
            self.params['magSldShell'],
            self.params['magSldSurfactant'],
            self.params['magSldSolvent'],
        )
Пример #2
0
    def calcModel(self):
        self.I = self.params['i0'] * sphere.formfactor(
            self.q, self.params['r'], self.params['sldCore'],
            self.params['sldSolvent'], self.params['sigR']) + self.params['bg']

        self.r, self.sld = sphere.sld(self.params['r'], self.params['sldCore'],
                                      self.params['sldSolvent'])
Пример #3
0
    def calcModel(self):
        self.I = self.params['i0'] * (
            self.params['fraction'] * sphere_cs.formfactor(
                self.q, self.params['r1'], self.params['d'],
                self.params['sldCore'], self.params['sldShell'], self.params[
                    'sldSolvent'], self.params['sigR1'], self.params['sigD']) +
            (1 - self.params['fraction']) * sphere_cs.formfactor(
                self.q, self.params['r2'], self.params['d'],
                self.params['sldCore'], self.params['sldShell'],
                self.params['sldSolvent'], self.params['sigR2'], self.
                params['sigD'])) + self.params['i0Oleic'] * sphere.formfactor(
                    self.q, self.params['d'], self.params['sldOleic'],
                    self.params['sldSolvent'], 0) + self.params['bg']

        r1, sld1 = sphere_cs.sld(self.params['r1'], self.params['d'],
                                 self.params['sldCore'],
                                 self.params['sldShell'],
                                 self.params['sldSolvent'])

        r2, sld2 = sphere_cs.sld(self.params['r2'], self.params['d'],
                                 self.params['sldCore'],
                                 self.params['sldShell'],
                                 self.params['sldSolvent'])

        r3, sld3 = sphere.sld(self.params['d'], self.params['sldOleic'],
                              self.params['sldSolvent'])
        self.r = np.concatenate([r1, r1[::-1], r2, r2[::-1], r3])
        self.sld = np.concatenate([sld1, sld1[::-1], sld2, sld2[::-1], sld3])
Пример #4
0
    def calcModel(self):
        self.I = self.params['i0'] * sphere_cs.formfactor(
            self.q, self.params['r'], self.params['d'], self.params['sldCore'],
            self.params['sldShell'], self.params['sldSolvent'],
            self.params['sigR'],
            self.params['sigD']) + self.params['i0Oleic'] * sphere.formfactor(
                self.q, self.params['rOleic'], self.params['sldOleic'],
                self.params['sldSolvent'], 0) + self.params['bg']

        r1, sld1 = sphere_cs.sld(self.params['r'], self.params['d'],
                                 self.params['sldCore'],
                                 self.params['sldShell'],
                                 self.params['sldSolvent'])

        r2, sld2 = sphere.sld(self.params['rOleic'], self.params['sldOleic'],
                              self.params['sldSolvent'])
        self.r = np.concatenate([r1, r1[::-1], r2])
        self.sld = np.concatenate([sld1, sld1[::-1], sld2])
Пример #5
0
    def calcModel(self):
        self.I = self.params['i0'] * sphere_css_coupled.formfactor(
            self.q, self.params['particleSize'], self.params['dShell'],
            self.params['dSurfactant'], self.params['sldCore'],
            self.params['sldShell'], self.params['sldSurfactant'],
            self.params['sldSolvent'], self.params['sigParticleSize'],
            self.params['sigD']) + self.params['i0Oleic'] * sphere.formfactor(
                self.q, self.params['rOleic'], self.params['sldSurfactant'],
                self.params['sldSolvent'], 0.) + self.params['bg']

        self.r, self.sld = sphere_css_coupled.sld(
            self.params['particleSize'],
            self.params['dShell'],
            self.params['dSurfactant'],
            self.params['sldCore'],
            self.params['sldShell'],
            self.params['sldSurfactant'],
            self.params['sldSolvent'],
        )
  def calcModel(self):
    self.x_herm, self.w_herm = hermgauss(int(self.params['orderHermite']))
    self.x_leg, self.w_leg = leggauss(int(self.params['orderLegendre']))
    self.I = self.params['i0'] * superball_css_coupled2.formfactor(
      self.q,
      self.params['particleSize'],
      self.params['dShell'],
      self.params['dSurfactant'],
      self.params['pVal'],
      self.params['sldCore'],
      self.params['sldShell'],
      self.params['sldSurfactant'],
      self.params['sldSolvent'],
      self.params['sigParticleSize'],
      self.params['sigD'],
      self.x_herm, self.w_herm, self.x_leg, self.w_leg
    ) + self.params['i0Oleic'] * sphere.formfactor(
      self.q,
      self.params['rOleic'],
      self.params['sldSurfactant'],
      self.params['sldSolvent'],
      0
    ) + self.params['bg']

    r1, sld1 = superball_css_coupled2.sld(
      self.params['particleSize'],
      self.params['dShell'],
      self.params['dSurfactant'],
      self.params['sldCore'],
      self.params['sldShell'],
      self.params['sldSurfactant'],
      self.params['sldSolvent']
    )

    r2, sld2 = sphere.sld(
      self.params['rOleic'],
      self.params['sldSurfactant'],
      self.params['sldSolvent']
    )
    self.r = np.concatenate([r1, r1[::-1], r2])
    self.sld = np.concatenate([sld1, sld1[::-1], sld2])
Пример #7
0
    def calcMagneticModel(self):
        self.x_herm, self.w_herm = hermgauss(int(self.params['orderHermite']))
        self.x_leg, self.w_leg = leggauss(int(self.params['orderLegendre']))
        self.I = self.params['i0'] * superball_css_coupled.magnetic_formfactor(
            self.q, self.params['particleSize'], self.params['dShell'], self.
            params['dSurfactant'], self.params['pVal'], self.params['sldCore'],
            self.params['sldShell'], self.params['sldSurfactant'],
            self.params['sldSolvent'], self.params['sigParticleSize'],
            self.params['magSldCore'], self.params['magSldShell'],
            self.params['magSldSurfactant'], self.params['magSldSolvent'],
            self.params['xi'], self.params['sin2alpha'],
            self.params['polarization'], self.x_herm, self.w_herm, self.x_leg,
            self.w_leg) + self.params['i0Oleic'] * sphere.formfactor(
                self.q, self.params['rOleic'], self.params['sldSurfactant'],
                self.params['sldSolvent'], 0) + self.params['bg']

        r1, sld1 = superball_css_coupled.sld(
            self.params['particleSize'], self.params['dShell'],
            self.params['dSurfactant'], self.params['sldCore'],
            self.params['sldShell'], self.params['sldSurfactant'],
            self.params['sldSolvent'])

        r2, sld2 = sphere.sld(self.params['rOleic'],
                              self.params['sldSurfactant'],
                              self.params['sldSolvent'])
        self.r = np.concatenate([r1, r1[::-1], r2])
        self.sld = np.concatenate([sld1, sld1[::-1], sld2])

        rMag1, sldMag1 = superball_css_coupled.sld(
            self.params['particleSize'],
            self.params['dShell'],
            self.params['dSurfactant'],
            self.params['magSldCore'],
            self.params['magSldShell'],
            self.params['magSldSurfactant'],
            self.params['magSldSolvent'],
        )

        rMag2, sldMag2 = sphere.sld(self.params['rOleic'], 0, 0)
        self.rMag = np.concatenate([rMag1, rMag1[::-1], rMag2])
        self.sldMag = np.concatenate([sldMag1, sldMag1[::-1], sldMag2])