Changeset 7c57861 in sasmodels
- Timestamp:
- Oct 1, 2016 12:36:48 PM (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:
- 30fbe2e
- Parents:
- b99734a
- Location:
- sasmodels/models
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellar_hg_stack_caille.py
ra807206 r7c57861 100 100 ["Nlayers", "", 30, [0, inf], "", 101 101 "Number of layers"], 102 [" spacing", "Ang", 40., [0.0, inf], "volume",103 " d-spacing of Caille S(Q)"],102 ["d_spacing", "Ang", 40., [0.0, inf], "volume", 103 "lamellar d-spacing of Caille S(Q)"], 104 104 ["Caille_parameter", "", 0.001, [0.0, 0.8], "", 105 105 "Caille parameter"], … … 125 125 demo = dict( 126 126 scale=1, background=0, 127 Nlayers=20, spacing=200., Caille_parameter=0.05,127 Nlayers=20, d_spacing=200., Caille_parameter=0.05, 128 128 length_tail=15, length_head=10, 129 129 #sld=-1, sld_head=4.0, sld_solvent=6.0, … … 131 131 length_tail_pd=0.1, length_tail_pd_n=20, 132 132 length_head_pd=0.05, length_head_pd_n=30, 133 spacing_pd=0.2,spacing_pd_n=40,133 d_spacing_pd=0.2, d_spacing_pd_n=40, 134 134 ) 135 135 136 136 # 137 137 tests = [[{'scale': 1.0, 'background': 0.0, 'length_tail': 10.0, 'length_head': 2.0, 138 'Nlayers': 30.0, ' spacing': 40., 'Caille_parameter': 0.001, 'sld': 0.4,138 'Nlayers': 30.0, 'd_spacing': 40., 'Caille_parameter': 0.001, 'sld': 0.4, 139 139 'sld_head': 2.0, 'sld_solvent': 6.0, 'length_tail_pd': 0.0, 140 'length_head_pd': 0.0, ' spacing_pd': 0.0}, [0.001], [6838238.571488]]]140 'length_head_pd': 0.0, 'd_spacing_pd': 0.0}, [0.001], [6838238.571488]]] 141 141 # ADDED by: RKH ON: 18Mar2016 converted from sasview previously, now renaming everything & sorting the docs -
sasmodels/models/lamellar_stack_caille.py
r0bef47b r7c57861 40 40 \end{align*} 41 41 42 Here $d$ = (repeat) spacing, $\delta$ = bilayer thickness,42 Here $d$ = (repeat) d_spacing, $\delta$ = bilayer thickness, 43 43 the contrast $\Delta\rho$ = SLD(headgroup) - SLD(solvent), 44 44 $K$ = smectic bending elasticity, $B$ = compression modulus, and … … 89 89 ["thickness", "Ang", 30.0, [0, inf], "volume", "sheet thickness"], 90 90 ["Nlayers", "", 20, [0, inf], "", "Number of layers"], 91 [" spacing", "Ang", 400., [0.0,inf], "volume", "d-spacing of Caille S(Q)"],91 ["d_spacing", "Ang", 400., [0.0,inf], "volume", "lamellar d-spacing of Caille S(Q)"], 92 92 ["Caille_parameter", "1/Ang^2", 0.1, [0.0,0.8], "", "Caille parameter"], 93 93 ["sld", "1e-6/Ang^2", 6.3, [-inf,inf], "sld", "layer scattering length density"], … … 108 108 109 109 demo = dict(scale=1, background=0, 110 thickness=67., Nlayers=3.75, spacing=200.,110 thickness=67., Nlayers=3.75, d_spacing=200., 111 111 Caille_parameter=0.268, sld=1.0, sld_solvent=6.34, 112 112 thickness_pd=0.1, thickness_pd_n=100, 113 spacing_pd=0.05,spacing_pd_n=40)113 d_spacing_pd=0.05, d_spacing_pd_n=40) 114 114 115 115 # 116 116 tests = [ 117 117 [{'scale': 1.0, 'background': 0.0, 'thickness': 30., 'Nlayers': 20.0, 118 ' spacing': 400., 'Caille_parameter': 0.1, 'sld': 6.3,119 'sld_solvent': 1.0, 'thickness_pd': 0.0, ' spacing_pd': 0.0},118 'd_spacing': 400., 'Caille_parameter': 0.1, 'sld': 6.3, 119 'sld_solvent': 1.0, 'thickness_pd': 0.0, 'd_spacing_pd': 0.0}, 120 120 [0.001], [28895.13397]] 121 121 ] -
sasmodels/models/lamellar_stack_paracrystal.py
r0bef47b r7c57861 22 22 - *Nlayers* is the number of layers $N$, 23 23 24 - * spacing* is the average distance between adjacent layers24 - *d_spacing* is the average distance between adjacent layers 25 25 $\langle D \rangle$, and 26 26 27 - *s pacing_polydisp* is the relative standard deviation of the Gaussian27 - *sigma_d* is the relative standard deviation of the Gaussian 28 28 layer distance distribution $\sigma_D / \langle D \rangle$. 29 29 … … 115 115 ["Nlayers", "", 20, [0, inf], "", 116 116 "Number of layers"], 117 [" spacing", "Ang", 250., [0.0, inf], "",118 " d-spacing of paracrystal stack"],119 ["s pacing_polydisp", "Ang", 0.0, [0.0, inf], "",120 " d-spacing polydispersity"],117 ["d_spacing", "Ang", 250., [0.0, inf], "", 118 "lamellar spacing of paracrystal stack"], 119 ["sigma_d", "Ang", 0.0, [0.0, inf], "", 120 "Sigma (polydispersity) of the lamellar spacing"], 121 121 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "sld", 122 122 "layer scattering length density"], … … 136 136 137 137 demo = dict(scale=1, background=0, 138 thickness=33, Nlayers=20, spacing=250, spacing_polydisp=0.2,138 thickness=33, Nlayers=20, d_spacing=250, sigma_d=0.2, 139 139 sld=1.0, sld_solvent=6.34, 140 140 thickness_pd=0.2, thickness_pd_n=40) … … 143 143 tests = [ 144 144 [{'scale': 1.0, 'background': 0.0, 'thickness': 33.,'Nlayers': 20.0, 145 ' spacing': 250., 'spacing_polydisp': 0.2, 'sld': 1.0,145 'd_spacing': 250., 'sigma_d': 0.2, 'sld': 1.0, 146 146 'sld_solvent': 6.34, 'thickness_pd': 0.0, 'thickness_pd_n': 40 }, 147 147 [0.001, 0.215268], [21829.3, 0.00487686]], -
sasmodels/models/stacked_disks.py
ra807206 r7c57861 60 60 61 61 S(q) = 1 + \frac{1}{2}\sum_{k=1}^n(n-k)\cos{(kDq\cos{\alpha})} 62 \exp\left[ -k(q\cos{\alpha})^2\sigma_ Dnn/2\right]62 \exp\left[ -k(q\cos{\alpha})^2\sigma_d/2\right] 63 63 64 64 where $n$ is the total number of the disc stacked (*n_stacking*), 65 65 $D = 2(d+h)$ is the next neighbor center-to-center distance (d-spacing), 66 and $\sigma_ Dnn$ = the Gaussian standard deviation of the d-spacing (*sigma_dnn*).66 and $\sigma_d$ = the Gaussian standard deviation of the d-spacing (*sigma_d*). 67 67 68 68 .. note:: … … 119 119 sld_layer = the SLD of the layers 120 120 n_stacking = the number of the disks 121 sigma_d nn= Gaussian STD of d-spacing121 sigma_d = Gaussian STD of d-spacing 122 122 sld_solvent = the SLD of the solvent 123 123 """ … … 131 131 ["radius", "Ang", 15.0, [0, inf], "volume", "Radius of the stacked disk"], 132 132 ["n_stacking", "", 1.0, [0, inf], "volume", "Number of stacked layer/core/layer disks"], 133 ["sigma_d nn","Ang", 0, [0, inf], "", "Sigma of nearest neighbor spacing"],133 ["sigma_d", "Ang", 0, [0, inf], "", "Sigma of nearest neighbor spacing"], 134 134 ["sld_core", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Core scattering length density"], 135 135 ["sld_layer", "1e-6/Ang^2", 0.0, [-inf, inf], "sld", "Layer scattering length density"], … … 148 148 radius=15.0, 149 149 n_stacking=1, 150 sigma_d nn=0,150 sigma_d=0, 151 151 sld_core=4, 152 152 sld_layer=0.0, … … 162 162 'radius': 3000.0, 163 163 'n_stacking': 1.0, 164 'sigma_d nn': 0.0,164 'sigma_d': 0.0, 165 165 'sld_core': 4.0, 166 166 'sld_layer': -0.4, … … 176 176 'radius': 3000.0, 177 177 'n_stacking': 5.0, 178 'sigma_d nn': 0.0,178 'sigma_d': 0.0, 179 179 'sld_core': 4.0, 180 180 'sld_layer': -0.4, … … 190 190 'radius': 3000.0, 191 191 'n_stacking': 5.0, 192 'sigma_d nn': 0.0,192 'sigma_d': 0.0, 193 193 'sld_core': 4.0, 194 194 'sld_layer': -0.4, … … 204 204 'radius': 3000.0, 205 205 'n_stacking': 1.0, 206 'sigma_d nn': 0.0,206 'sigma_d': 0.0, 207 207 'sld_core': 4.0, 208 208 'sld_layer': -0.4, … … 218 218 'radius': 3000.0, 219 219 'n_stacking': 1.0, 220 'sigma_d nn': 0.0,220 'sigma_d': 0.0, 221 221 'sld_core': 4.0, 222 222 'sld_layer': -0.4, … … 232 232 'radius': 3000.0, 233 233 'n_stacking': 1.0, 234 'sigma_d nn': 0.0,234 'sigma_d': 0.0, 235 235 'sld_core': 4.0, 236 236 'sld_layer': -0.4,
Note: See TracChangeset
for help on using the changeset viewer.