Changeset aad336c in sasmodels for sasmodels/models/core_shell_bicelle.py
- Timestamp:
- Mar 21, 2016 7:59:28 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:
- 9418d75
- Parents:
- 728136f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 ]
Note: See TracChangeset
for help on using the changeset viewer.