Changeset 68532f3 in sasmodels for _sources/model/lamellarCaille.txt


Ignore:
Timestamp:
Nov 1, 2015 2:10:22 PM (8 years ago)
Author:
ajj
Branches:
gh-pages
Children:
4a9a316
Parents:
d1fe925
Message:

Adding docs

File:
1 moved

Legend:

Unmodified
Added
Removed
  • _sources/model/lamellarCaille.txt

    rd1fe925 r68532f3  
    1 # Note: model title and parameter table are inserted automatically 
    2 r""" 
     1.. _lamellarPS: 
     2 
     3Lamellarps 
     4======================================================= 
     5 
     6Random lamellar sheet with Caille structure factor 
     7 
     8================ ================================= ============ ============= 
     9Parameter        Description                       Units        Default value 
     10================ ================================= ============ ============= 
     11scale            Source intensity                  None                     1 
     12background       Source background                 |cm^-1|                  0 
     13thickness        sheet thickness                   |Ang|                   30 
     14Nlayers          Number of layers                  None                    20 
     15spacing          d-spacing of Caille S(Q)          |Ang|                  400 
     16Caille_parameter Caille parameter                  |Ang^-2|               0.1 
     17sld              layer scattering length density   |1e-6Ang^-2|           6.3 
     18solvent_sld      Solvent scattering length density |1e-6Ang^-2|             1 
     19================ ================================= ============ ============= 
     20 
     21The returned value is scaled to units of |cm^-1|. 
     22 
     23 
    324This model provides the scattering intensity, $I(q) = P(q) S(q)$, for a 
    425lamellar phase where a random distribution in solution are assumed. 
     
    6990 
    7091also in J. Phys. Chem. B, 105, (2001) 11081-11088 
    71 """ 
    72 from numpy import inf 
    7392 
    74 name = "lamellarPS" 
    75 title = "Random lamellar sheet with Caille structure factor" 
    76 description = """\ 
    77         [Random lamellar phase with Caille  structure factor] 
    78         randomly oriented stacks of infinite sheets 
    79                 with Caille S(Q), having polydisperse spacing. 
    80         sld = sheet scattering length density 
    81                 sld_solvent = solvent scattering length density 
    82                 background = incoherent background 
    83                 scale = scale factor 
    84 """ 
    85 category = "shape:lamellae" 
    86  
    87 #             ["name", "units", default, [lower, upper], "type","description"], 
    88 parameters = [["thickness", "Ang",  30.0, [0, inf], "volume", "sheet thickness"], 
    89               ["Nlayers", "",  20, [0, inf], "", "Number of layers"], 
    90               ["spacing", "Ang", 400., [0.0,inf], "volume", "d-spacing of Caille S(Q)"], 
    91               ["Caille_parameter", "1/Ang^2", 0.1, [0.0,0.8], "", "Caille parameter"], 
    92               ["sld", "1e-6/Ang^2", 6.3, [-inf,inf], "", 
    93                "layer scattering length density"], 
    94               ["solvent_sld", "1e-6/Ang^2", 1.0, [-inf,inf], "", 
    95                "Solvent scattering length density"], 
    96              ] 
    97  
    98 source = ["lamellarCaille_kernel.c"] 
    99  
    100 # No volume normalization despite having a volume parameter 
    101 # This should perhaps be volume normalized? 
    102 form_volume = """ 
    103     return 1.0; 
    104     """ 
    105  
    106 Iqxy = """ 
    107     return Iq(sqrt(qx*qx+qy*qy), IQ_PARAMETERS); 
    108     """ 
    109  
    110 # ER defaults to 0.0 
    111 # VR defaults to 1.0 
    112  
    113 demo = dict(scale=1, background=0, 
    114             thickness=67.,Nlayers=3.75,spacing=200., 
    115             Caille_parameter=0.268,sld=1.0, solvent_sld=6.34, 
    116             thickness_pd= 0.1, thickness_pd_n=100, 
    117             spacing_pd= 0.05, spacing_pd_n=40) 
    118  
    119 oldname = 'LamellarPSModel' 
    120 oldpars = dict(thickness='delta', Nlayers='N_plates', Caille_parameter='caille', 
    121                sld='sld_bi',solvent_sld='sld_sol') 
Note: See TracChangeset for help on using the changeset viewer.