Changeset db1d9d5 in sasmodels for sasmodels/models/flexible_cylinder.py


Ignore:
Timestamp:
Mar 28, 2019 3:16:51 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ticket-1257-vesicle-product, ticket_1156, ticket_822_more_unit_tests
Children:
8795b6f
Parents:
a34b811
Message:

merge with master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/flexible_cylinder.py

    r0507e09 rdb1d9d5  
    3030The Kuhn length $(b = 2*l_p)$ is also used to describe the stiffness of a chain. 
    3131 
    32 The returned value is in units of $cm^{-1}$, on absolute scale. 
    33  
    3432In the parameters, the sld and sld\_solvent represent the SLD of the cylinder 
    3533and solvent respectively. 
    3634 
    37 Our model uses the form factor calculations implemented in a c-library provided 
    38 by the NIST Center for Neutron Research (Kline, 2006). 
    39  
    40  
    41 From the reference: 
     35Our model uses the form factor calculations in reference [1] as implemented in a 
     36c-library provided by the NIST Center for Neutron Research (Kline, 2006). This states: 
    4237 
    4338    'Method 3 With Excluded Volume' is used. 
     
    4641    pseudocontinuous limit. 
    4742    See equations (13,26-27) in the original reference for the details. 
     43 
     44.. note:: 
     45 
     46    There are several typos in the original reference that have been corrected 
     47    by WRC [2]. Details of the corrections are in the reference below. Most notably 
     48 
     49    - Equation (13): the term $(1 - w(QR))$ should swap position with $w(QR)$ 
     50 
     51    - Equations (23) and (24) are incorrect; WRC has entered these into 
     52      Mathematica and solved analytically. The results were then converted to 
     53      code. 
     54 
     55    - Equation (27) should be $q0 = max(a3/(Rg^2)^{1/2},3)$ instead of 
     56      $max(a3*b(Rg^2)^{1/2},3)$ 
     57 
     58    - The scattering function is negative for a range of parameter values and 
     59      q-values that are experimentally accessible. A correction function has been 
     60      added to give the proper behavior. 
     61 
     62 
     63**This is a model with complex behaviour depending on the ratio of** $L/b$ **and the 
     64reader is strongly encouraged to read reference [1] before use.** 
    4865 
    4966References 
     
    6380`flexible_cylinder.c <https://github.com/SasView/sasmodels/blob/master/sasmodels/models/flexible_cylinder.c>`_ 
    6481 
     82`wrc_cyl.c <https://github.com/SasView/sasmodels/blob/master/sasmodels/models/lib/wrc_cyl.c>`_ 
     83 
    6584Authorship and Verification 
    6685---------------------------- 
    6786 
    68 * **Author:**  
    69 * **Last Modified by:**  
    70 * **Last Reviewed by:**  
     87* **Author:** 
     88* **Last Modified by:** 
     89* **Last Reviewed by:** Steve King **Date:** March 26, 2019 
    7190* **Source added by :** Steve King **Date:** March 25, 2019 
    7291""" 
     
    7695 
    7796name = "flexible_cylinder" 
    78 title = "Flexible cylinder where the form factor is normalized by the volume" \ 
     97title = "Flexible cylinder where the form factor is normalized by the volume " \ 
    7998        "of the cylinder." 
    8099description = """Note : scale and contrast = (sld - sld_solvent) are both 
Note: See TracChangeset for help on using the changeset viewer.