Changeset 0433203 in sasmodels for sasmodels/models/raspberry.py


Ignore:
Timestamp:
Mar 20, 2016 8:40:09 AM (8 years ago)
Author:
ajj
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:
bb02a35
Parents:
ce346b6
Message:

Updating raspberry model to more stable formulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/raspberry.py

    rbad8b12 r0433203  
    4444from numpy import pi, inf 
    4545 
    46 name = "raspberry" 
     46name = "raspberry_surface_fraction" 
    4747title = "Calculates the form factor, *P(q)*, for a 'Raspberry-like' structure \ 
    4848where there are smaller spheres at the surface of a larger sphere, such as the \ 
     
    5050description = """ 
    5151                RaspBerryModel: 
    52                 volf_Lsph = volume fraction large spheres 
    53                 radius_Lsph = radius large sphere (A) 
    54                 sld_Lsph = sld large sphere (A-2) 
    55                 volf_Ssph = volume fraction small spheres 
    56                 radius_Ssph = radius small sphere (A) 
    57                 surfrac_Ssph = fraction of small spheres at surface 
    58                 sld_Ssph = sld small sphere 
    59                 delta_Ssph = small sphere penetration (A)  
    60                 sld_solv   = sld solvent 
     52                volfraction_lg = volume fraction large spheres 
     53                radius_lg = radius large sphere (A) 
     54                sld_lg = sld large sphere (A-2) 
     55                volfraction_sm = volume fraction small spheres 
     56                radius_sm = radius small sphere (A) 
     57                surface_fraction = fraction of small spheres at surface 
     58                sld_sm = sld small sphere 
     59                penetration = small sphere penetration (A) 
     60                sld_solvent   = sld solvent 
    6161                background = background (cm-1) 
    6262            Ref: J. coll. inter. sci. (2010) vol. 343 (1) pp. 36-41.""" 
     
    7474              ["volfraction_sm", "", 0.005, [-inf, inf], "", 
    7575               "volume fraction of small spheres"], 
    76               ["surf_fraction", "", 0.4, [-inf, inf], "", 
     76              ["surface_fraction", "", 0.4, [-inf, inf], "", 
    7777               "fraction of small spheres at surface"], 
    7878              ["radius_lg", "Ang", 5000, [0, inf], "volume", 
     
    8989demo = dict(scale=1, background=0.001, 
    9090            sld_lg=-0.4, sld_sm=3.5, sld_solvent=6.36, 
    91             volfraction_lg=0.05, volfraction_sm=0.005, surf_fraction=0.4, 
     91            volfraction_lg=0.05, volfraction_sm=0.005, surface_fraction=0.4, 
    9292            radius_lg=5000, radius_sm=100, penetration=0.0, 
    9393            radius_lg_pd=.2, radius_lg_pd_n=10) 
     
    9595# For testing against the old sasview models, include the converted parameter 
    9696# names and the target sasview model name. 
    97 oldname = 'RaspBerryModel' 
    98 oldpars = dict(sld_lg='sld_Lsph', sld_sm='sld_Ssph', sld_solvent='sld_solv', 
    99                volfraction_lg='volf_Lsph', volfraction_sm='volf_Ssph', 
    100                surf_fraction='surfrac_Ssph', 
    101                radius_lg='radius_Lsph', radius_sm='radius_Ssph', 
    102                penetration='delta_Ssph') 
    103  
    10497 
    10598# NOTE: test results taken from values returned by SasView 3.1.2, with 
Note: See TracChangeset for help on using the changeset viewer.