Changeset 76e5041 in sasmodels


Ignore:
Timestamp:
Mar 21, 2016 5:07:41 AM (9 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3d8283b
Parents:
8e0d974
Message:

renamed sld, added a ref

Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/parallelepiped.py

    r6ef4293 r76e5041  
    151151---------- 
    152152 
    153 None. 
     153P Mittelbach and G Porod, *Acta Physica Austriaca*, 14 (1961) 185-211 
     154 
     155R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 
    154156""" 
    155157 
     
    160162title = "Rectangular parallelepiped with uniform scattering length density." 
    161163description = """ 
    162     I(q)= scale*V*(sld - solvent_sld)^2*P(q,alpha)+background 
     164    I(q)= scale*V*(sld - sld_solvent)^2*P(q,alpha)+background 
    163165        P(q,alpha) = integral from 0 to 1 of ... 
    164166           phi(mu*sqrt(1-sigma^2),a) * S(mu*c*sigma/2)^2 * dsigma 
     
    177179parameters = [["sld", "1e-6/Ang^2", 4, [-inf, inf], "", 
    178180               "Parallelepiped scattering length density"], 
    179               ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", 
     181              ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 
    180182               "Solvent scattering length density"], 
    181183              ["a_side", "Ang", 35, [0, inf], "volume", 
     
    210212# parameters for demo 
    211213demo = dict(scale=1, background=0, 
    212             sld=6.3e-6, solvent_sld=1.0e-6, 
     214            sld=6.3e-6, sld_solvent=1.0e-6, 
    213215            a_side=35, b_side=75, c_side=400, 
    214216            theta=45, phi=30, psi=15, 
     
    225227oldpars = dict(theta='parallel_theta', phi='parallel_phi', psi='parallel_psi', 
    226228               a_side='short_a', b_side='short_b', c_side='long_c', 
    227                sld='sldPipe', solvent_sld='sldSolv') 
     229               sld='sldPipe', sld_solvent='sldSolv') 
    228230 
    229231 
  • sasmodels/models/rectangular_prism.py

    r43b7eea r76e5041  
    99The only difference is that the way the relevant 
    1010parameters are defined here (*a*, *b/a*, *c/a* instead of *a*, *b*, *c*) 
    11 allows to use polydispersity with this model while keeping the shape of 
     11which allows use of polydispersity with this model while keeping the shape of 
    1212the prism (e.g. setting *b/a* = 1 and *c/a* = 1 and applying polydispersity 
    1313to *a* will generate a distribution of cubes of different sizes). 
     
    8686title = "Rectangular parallelepiped with uniform scattering length density." 
    8787description = """ 
    88     I(q)= scale*V*(sld - solvent_sld)^2*P(q,theta,phi)+background 
     88    I(q)= scale*V*(sld - sld_solvent)^2*P(q,theta,phi)+background 
    8989        P(q,theta,phi) = (2/pi) * double integral from 0 to pi/2 of ... 
    9090           AP^2(q)*sin(theta)*dtheta*dphi 
     
    9797parameters = [["sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", 
    9898               "Parallelepiped scattering length density"], 
    99               ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", 
     99              ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", 
    100100               "Solvent scattering length density"], 
    101101              ["a_side", "Ang", 35, [0, inf], "volume", 
     
    125125# parameters for demo 
    126126demo = dict(scale=1, background=0, 
    127             sld=6.3e-6, solvent_sld=1.0e-6, 
     127            sld=6.3e-6, sld_solvent=1.0e-6, 
    128128            a_side=35, b2a_ratio=1, c2a_ratio=1, 
    129129            a_side_pd=0.1, a_side_pd_n=10, 
     
    135135oldname = 'RectangularPrismModel' 
    136136oldpars = dict(a_side='short_side', b2a_ratio='b2a_ratio', c_side='c2a_ratio', 
    137                sld='sldPipe', solvent_sld='sldSolv') 
     137               sld='sldPipe', sld_solvent='sldSolv') 
    138138 
    139139tests = [[{}, 0.2, 0.375248406825], 
Note: See TracChangeset for help on using the changeset viewer.