Changeset aad336c in sasmodels
- Timestamp:
- Mar 21, 2016 7:59:28 AM (9 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:
- 9418d75
- Parents:
- 728136f
- Location:
- sasmodels/models
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/broad_peak.py
r2f0c07d raad336c 17 17 .. math:: 18 18 19 I(q) = \frac{A}{q^n} + \frac{C}{1 + ( q\xi)^m} + B19 I(q) = \frac{A}{q^n} + \frac{C}{1 + (|q - q_0|\xi)^m} + B 20 20 21 21 Here the peak position is related to the d-spacing as $q_o = 2\pi / d_o$. 22 23 $A$ is the Porod law scale factor, $n$ the Porod exponent, $C$ is the Lorentzian 24 scale factor, $m$ the exponent of q, \ |xi|\ the screening length, and $B$ the flat background. 22 25 23 26 For 2D data the scattering intensity is calculated in the same way as 1D, -
sasmodels/models/core_shell_bicelle.py
r43b7eea raad336c 4 4 ---------- 5 5 This model provides the form factor for a circular cylinder with a core-shell 6 scattering length density profile. The form factor is normalized by the 7 particle volume. 6 scattering length density profile. Thus this is a variation of a core-shell cylinder 7 or disc where the shell on the walls and ends may be of different thicknesses and scattering 8 length densities. The form factor is normalized by the particle volume. 8 9 9 10 .. _core-shell-bicelle-geometry: … … 11 12 .. figure:: img/core_shell_bicelle_geometry.png 12 13 13 (Graphic from DOI: 10.1039/C0NP00002G )14 (Graphic from DOI: 10.1039/C0NP00002G, note however that the model here calculates for rectangular, not curved, rims.) 14 15 15 16 … … 43 44 title = "Circular cylinder with a core-shell scattering length density profile.." 44 45 description = """ 45 P(q,alpha)= scale/Vs*f(q)^(2) + bkg, where: f(q)= 2( core_sld46 P(q,alpha)= scale/Vs*f(q)^(2) + bkg, where: f(q)= 2(sld_core 46 47 - solvant_sld)* Vc*sin[qLcos(alpha/2)] 47 48 /[qLcos(alpha/2)]*J1(qRsin(alpha)) 48 /[qRsin(alpha)]+2(shell_sld-s olvent_sld)49 /[qRsin(alpha)]+2(shell_sld-sld_solvent) 49 50 *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) 50 51 *cos(alpha/2)]*J1(q(R+T)sin(alpha)) … … 58 59 shell_sld: the scattering length density 59 60 of the shell 60 s olvent_sld: the scattering length density61 sld_solvent: the scattering length density 61 62 of the solvent 62 63 bkg: the background … … 77 78 ["face_thickness", "Ang", 10, [0, inf], "volume", "Cylinder face thickness"], 78 79 ["length", "Ang", 400, [0, inf], "volume", "Cylinder length"], 79 [" core_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Cylinder core scattering length density"],80 [" face_sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder face scattering length density"],81 [" rim_sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder rim scattering length density"],82 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"],80 ["sld_core", "1e-6/Ang^2", 1, [-inf, inf], "", "Cylinder core scattering length density"], 81 ["sld_face", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder face scattering length density"], 82 ["sld_rim", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder rim scattering length density"], 83 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 83 84 ["theta", "degrees", 90, [-inf, inf], "orientation", "In plane angle"], 84 85 ["phi", "degrees", 0, [-inf, inf], "orientation", "Out of plane angle"], … … 94 95 face_thickness=10.0, 95 96 length=400.0, 96 core_sld=1.0,97 face_sld=4.0,98 rim_sld=4.0,99 s olvent_sld=1.0,97 sld_core=1.0, 98 sld_face=4.0, 99 sld_rim=4.0, 100 sld_solvent=1.0, 100 101 theta=90, 101 102 phi=0) … … 103 104 oldname = 'CoreShellBicelleModel' 104 105 105 oldpars = dict(rim_thickness='rim_thick', 106 oldpars = dict(sld_core='core_sld', sld_face='face_sld', sld_rim='rim_sld', 107 sld_solvent='solvent_sld', rim_thickness='rim_thick', 106 108 face_thickness='face_thick', 107 109 theta='axis_theta', … … 115 117 'face_thickness': 10.0, 116 118 'length': 400.0, 117 ' core_sld': 1.0,118 ' face_sld': 4.0,119 ' rim_sld': 4.0,120 's olvent_sld': 1.0,119 'sld_core': 1.0, 120 'sld_face': 4.0, 121 'sld_rim': 4.0, 122 'sld_solvent': 1.0, 121 123 'background': 0.0, 122 124 }, 0.001, 353.550], … … 126 128 'face_thickness': 10.0, 127 129 'length': 400.0, 128 ' core_sld': 1.0,129 ' face_sld': 4.0,130 ' rim_sld': 4.0,131 's olvent_sld': 1.0,130 'sld_core': 1.0, 131 'sld_face': 4.0, 132 'sld_rim': 4.0, 133 'sld_solvent': 1.0, 132 134 'theta': 90.0, 133 135 'phi': 0.0, … … 140 142 'face_thickness': 100.0, 141 143 'length': 1200.0, 142 ' core_sld': 5.0,143 ' face_sld': 41.0,144 ' rim_sld': 42.0,145 's olvent_sld': 21.0,144 'sld_core': 5.0, 145 'sld_face': 41.0, 146 'sld_rim': 42.0, 147 'sld_solvent': 21.0, 146 148 }, 0.05, 1670.1828], 147 149 ] -
sasmodels/models/core_shell_parallelepiped.py
r43b7eea raad336c 111 111 112 112 # ["name", "units", default, [lower, upper], "type","description"], 113 parameters = [[" core_sld", "1e-6/Ang^2", 1, [-inf, inf], "",113 parameters = [["sld_core", "1e-6/Ang^2", 1, [-inf, inf], "", 114 114 "Parallelepiped core scattering length density"], 115 [" arim_sld", "1e-6/Ang^2", 2, [-inf, inf], "",115 ["sld_a", "1e-6/Ang^2", 2, [-inf, inf], "", 116 116 "Parallelepiped A rim scattering length density"], 117 [" brim_sld", "1e-6/Ang^2", 4, [-inf, inf], "",117 ["sld_b", "1e-6/Ang^2", 4, [-inf, inf], "", 118 118 "Parallelepiped B rim scattering length density"], 119 [" crim_sld", "1e-6/Ang^2", 2, [-inf, inf], "",119 ["sld_c", "1e-6/Ang^2", 2, [-inf, inf], "", 120 120 "Parallelepiped C rim scattering length density"], 121 ["s olvent_sld", "1e-6/Ang^2", 6, [-inf, inf], "",121 ["sld_solvent", "1e-6/Ang^2", 6, [-inf, inf], "", 122 122 "Solvent scattering length density"], 123 123 ["a_side", "Ang", 35, [0, inf], "volume", … … 161 161 # parameters for demo 162 162 demo = dict(scale=1, background=0.0, 163 core_sld=1e-6, arim_sld=2e-6, brim_sld=4e-6,164 crim_sld=2e-6, solvent_sld=6e-6,163 sld_core=1e-6, sld_a=2e-6, sld_b=4e-6, 164 sld_c=2e-6, sld_solvent=6e-6, 165 165 a_side=35, b_side=75, c_side=400, 166 166 arim_thickness=10, brim_thickness=10, crim_thickness=10, … … 181 181 oldname = 'CSParallelepipedModel' 182 182 oldpars = dict(theta='parallel_theta', phi='parallel_phi', psi='parallel_psi', 183 core_sld='sld_pcore', arim_sld='sld_rimA', brim_sld='sld_rimB',184 crim_sld='sld_rimC', solvent_sld='sld_solv',183 sld_core='sld_pcore', sld_a='sld_rimA', sld_b='sld_rimB', 184 sld_c='sld_rimC', sld_solvent='sld_solv', 185 185 a_side='shortA', b_side='midB', c_side='longC', 186 186 arim_thickness='rimA', brim_thickness='rimB', crim_thickness='rimC') -
sasmodels/models/fractal_core_shell.py
r6794301 raad336c 44 44 q = \sqrt{q_x^2 + q_y^2} 45 45 46 Reference 47 --------- 46 References 47 ---------- 48 48 49 49 See the core_shell and fractal model descriptions … … 65 65 ["radius", "Ang", 60.0, [0, inf], "volume", "Sphere core radius"], 66 66 ["thickness", "Ang", 10.0, [0, inf], "volume", "Sphere shell thickness"], 67 [" core_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Sphere core scattering length density"],68 ["s hell_sld", "1e-6/Ang^2", 2.0, [-inf, inf], "", "Sphere shell scattering length density"],69 ["s olvent_sld", "1e-6/Ang^2", 3.0, [-inf, inf], "", "Solvent scattering length density"],67 ["sld_core", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Sphere core scattering length density"], 68 ["sld_shell", "1e-6/Ang^2", 2.0, [-inf, inf], "", "Sphere shell scattering length density"], 69 ["sld_solvent", "1e-6/Ang^2", 3.0, [-inf, inf], "", "Solvent scattering length density"], 70 70 ["volfraction", "", 1.0, [0, inf], "", "Volume fraction of building block spheres"], 71 71 ["frac_dim", "", 2.0, [-inf, inf], "", "Fractal dimension"], … … 79 79 radius=20, 80 80 thickness=5, 81 core_sld=3.5,82 s hell_sld=1.0,83 s olvent_sld=6.35,81 sld_core=3.5, 82 sld_shell=1.0, 83 sld_solvent=6.35, 84 84 volfraction=0.05, 85 85 frac_dim=2.0, … … 87 87 88 88 oldname = 'FractalCoreShellModel' 89 oldpars = {} 89 oldpars = dict( sld_core='core_sld', 90 sld_shell='shell_sld', 91 sld_solvent='solvent_sld') 90 92 91 93 def ER(radius, thickness): … … 113 115 [{'radius': 60.0, 114 116 'thickness': 10.0, 115 ' core_sld': 1.0,116 's hell_sld': 2.0,117 's olvent_sld': 3.0,117 'sld_core': 1.0, 118 'sld_shell': 2.0, 119 'sld_solvent': 3.0, 118 120 'background': 0.0 119 121 }, 0.4, 0.00070126]] -
sasmodels/models/rpa.py
raa2edb2 raad336c 53 53 54 54 name = "rpa" 55 title = "Random Phase Approximation "55 title = "Random Phase Approximation - unfinished work in progress" 56 56 description = """ 57 57 This formalism applies to multicomponent polymer mixtures in the
Note: See TracChangeset
for help on using the changeset viewer.