Changeset b0c4271 in sasmodels for sasmodels/models/adsorbed_layer.py


Ignore:
Timestamp:
Oct 5, 2016 7:40:41 PM (8 years ago)
Author:
butler
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
63e9cd8
Parents:
bb2d187
Message:

model documentation final format through core_shell_bicelle re: #646

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/adsorbed_layer.py

    r52ec91e rb0c4271  
    1 #adsorbed_layer model 
    2 #conversion of Core2ndMomentModel.py 
    3 #converted by Steve King, Mar 2016 
     1r""" 
     2Definition 
     3---------- 
    44 
    5 r""" 
    65This model describes the scattering from a layer of surfactant or polymer 
    76adsorbed on large, smooth, notionally spherical particles under the conditions 
     
    1918the mean of the density distribution (ie, the distance of the centre-of-mass 
    2019of the distribution from the interface), $\sigma = \sqrt{t^2/12}$. 
    21  
    22 Definition 
    23 ---------- 
    2420 
    2521.. math:: 
     
    4440calculation is exact). 
    4541 
     42The code for this model is based originally on a a fortran implementation by 
     43Steve King at ISIS in the SANDRA package c. 1990. 
     44 
    4645References 
    4746---------- 
    4847 
    49 S King, P Griffiths, J Hone, and T Cosgrove, 
    50 *SANS from Adsorbed Polymer Layers*, *Macromol. Symp.*, 190 (2002) 33-42. 
     48.. [#] S King, P Griffiths, J Hone, and T Cosgrove, *SANS from Adsorbed Polymer 
     49   Layers*, *Macromol. Symp.*, 190 (2002) 33-42. 
     50 
     51Authorship and Verification 
     52---------------------------- 
     53 
     54* **Author:** Jae-Hi Cho **Date:** pre 2010 
     55* **Last Modified by:** Paul Kienzle **Date:** April 14, 2016 
     56* **Last Reviewed by:** Steve King **Date:** March 18, 2016 
    5157""" 
    5258 
     
    8086def Iq(q, second_moment, adsorbed_amount, density_shell, radius, 
    8187       volfraction, sld_shell, sld_solvent): 
    82     # pylint: disable = missing-docstring 
    83     #deltarhosqrd =  (sld_shell - sld_solvent) * (sld_shell - sld_solvent) 
    84     #numerator =  6.0 * pi * volfraction * (adsorbed_amount * adsorbed_amount) 
    85     #denominator =  (q * q) * (density_shell * density_shell) * radius 
    86     #eterm =  exp(-1.0 * (q * q) * (second_moment * second_moment)) 
    87     ##scale by 10^-2 for units conversion to cm^-1 
    88     #inten =  1.0e-02 * deltarhosqrd * ((numerator / denominator) * eterm) 
    8988    with errstate(divide='ignore'): 
    9089        aa = ((sld_shell - sld_solvent)/density_shell * adsorbed_amount) / q 
Note: See TracChangeset for help on using the changeset viewer.