Changeset 362a66f in sasmodels


Ignore:
Timestamp:
Feb 28, 2018 2:27:17 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
fc3ae1b
Parents:
6868151
Message:

realspace: add shell thickness parameters in analytic comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/realspace.py

    r6868151 r362a66f  
    211211        values[abs(points[:, 2]) > self.length/(self.length + 2*self.thick_face)] = self.value_face 
    212212        # finally set value to rim value if outside the core ellipse 
    213         radius = (points[:, 0]**2*((self.ra + self.thick_rim)/self.ra)**2 
    214                   + points[:, 1]**2*((self.rb + self.thick_rim)/self.rb)**2) 
     213        radius = (points[:, 0]**2*(1 + self.thick_rim/self.ra)**2 
     214                  + points[:, 1]**2*(1 + self.thick_rim/self.rb)**2) 
    215215        values[radius>1] = self.value_rim 
    216216        return values, self._adjust(self._scale*points) 
     
    742742        x_core=rb/ra, 
    743743        length=length, 
     744        thick_rim=thick_rim, 
     745        thick_face=thick_face, 
    744746        sld_core=sld_core, 
    745747        sld_face=sld_face, 
Note: See TracChangeset for help on using the changeset viewer.