Changeset 76e5041 in sasmodels for sasmodels/models/rectangular_prism.py


Ignore:
Timestamp:
Mar 21, 2016 5:07:41 AM (8 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.