Changeset 6ab4ed8 in sasmodels for sasmodels/models/lamellar_stack_paracrystal.py
- Timestamp:
- Mar 18, 2016 7:55:38 AM (8 years ago)
- 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:
- 5bfb213
- Parents:
- 5852c86
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellar_stack_paracrystal.py
raa2edb2 r6ab4ed8 16 16 *not* the total excluded volume of the paracrystal), 17 17 18 - *sld* $-$ *s olvent_sld* is the contrast $\Delta \rho$,18 - *sld* $-$ *sld_solvent* is the contrast $\Delta \rho$, 19 19 20 20 - *thickness* is the layer thickness $t$, … … 36 36 37 37 The form factor of the bilayer is approximated as the cross section of an 38 infinite, planar bilayer of thickness $t$ 38 infinite, planar bilayer of thickness $t$ (compare the equations for the 39 lamellar model). 39 40 40 41 .. math:: … … 94 95 from numpy import inf 95 96 96 name = "lamellar PC"97 name = "lamellar_stack_paracrystal" 97 98 title = "Random lamellar sheet with paracrystal structure factor" 98 99 description = """\ … … 120 121 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", 121 122 "layer scattering length density"], 122 ["s olvent_sld", "1e-6/Ang^2", 6.34, [-inf, inf], "",123 ["sld_solvent", "1e-6/Ang^2", 6.34, [-inf, inf], "", 123 124 "Solvent scattering length density"], 124 125 ] 125 126 126 127 127 source = ["lamellar PC_kernel.c"]128 source = ["lamellar_stack_paracrystal_kernel.c"] 128 129 129 130 form_volume = """ … … 140 141 demo = dict(scale=1, background=0, 141 142 thickness=33, Nlayers=20, spacing=250, spacing_polydisp=0.2, 142 sld=1.0, s olvent_sld=6.34,143 sld=1.0, sld_solvent=6.34, 143 144 thickness_pd=0.2, thickness_pd_n=40) 144 145 145 146 oldname = 'LamellarPCrystalModel' 146 147 oldpars = dict(spacing_polydisp='pd_spacing', sld='sld_layer', 147 s olvent_sld='sld_solvent')148 sld_solvent='sld_solvent') 148 149 # 149 150 tests = [ 150 151 [ {'scale': 1.0, 'background' : 0.0, 'thickness' : 33.,'Nlayers' : 20.0, 'spacing' : 250., 'spacing_polydisp' : 0.2, 151 'sld' : 1.0, 's olvent_sld' : 6.34,152 'sld' : 1.0, 'sld_solvent' : 6.34, 152 153 'thickness_pd' : 0.0, 'thickness_pd_n' : 40 }, [0.001, 0.215268], [21829.3, 0.00487686]] 153 154 ] 155 # ADDED by: RKH ON: 18Mar2016 converted from sasview previously, now renaming everything & sorting the docs
Note: See TracChangeset
for help on using the changeset viewer.