Changeset e65a3e7 in sasmodels
- Timestamp:
- Mar 19, 2016 5:37:29 PM (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:
- aa24114
- Parents:
- 81d3a0c
- Location:
- sasmodels/models
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/capped_cylinder.py
r2f0c07d re65a3e7 3 3 Like :ref:`barbell`, this is a sphereocylinder with end caps that have a 4 4 radius larger than that of the cylinder, but with the center of the end cap 5 radius lying within the cylinder. This model simply becomes thea convex5 radius lying within the cylinder. This model simply becomes a convex 6 6 lens when the length of the cylinder $L=0$. See the diagram for the details 7 7 of the geometry and restrictions on parameter values. … … 95 95 end cap radius lies within the cylinder. 96 96 Note: As the length of cylinder -->0, 97 it becomes a Convex Lens.97 it becomes a Convex Lens. 98 98 It must be that radius <(=) cap_radius. 99 99 [Parameters]; … … 104 104 cap_radius: radius of the semi-spherical cap, 105 105 sld: SLD of the capped cylinder, 106 s olvent_sld: SLD of the solvent.106 sld_solvent: SLD of the solvent. 107 107 """ 108 108 category = "shape:cylinder" … … 110 110 # ["name", "units", default, [lower, upper], "type", "description"], 111 111 parameters = [["sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Cylinder scattering length density"], 112 ["s olvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"],112 ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 113 113 ["radius", "Ang", 20, [0, inf], "volume", "Cylinder radius"], 114 114 … … 132 132 133 133 demo = dict(scale=1, background=0, 134 sld=6, s olvent_sld=1,134 sld=6, sld_solvent=1, 135 135 radius=260, cap_radius=290, length=290, 136 136 theta=30, phi=15, … … 142 142 oldname = 'CappedCylinderModel' 143 143 oldpars = dict(sld='sld_capcyl', 144 s olvent_sld='sld_solv',144 sld_solvent='sld_solv', 145 145 length='len_cyl', 146 146 radius='rad_cyl', -
sasmodels/models/elliptical_cylinder.py
raa2edb2 re65a3e7 12 12 .. figure:: img/elliptical_cylinder_geometry.png 13 13 14 *a* = *r_minor* and |nu|\ :sub:`n` = $r_ratio$ (i.e., $r_major / r_minor$).14 Elliptical cylinder geometry $a$ = $r_{minor}$ and \nu = $r_{ratio}$ = $r_{major} / r_{minor}$ 15 15 16 16 The function calculated is … … 26 26 F(\mathbf{q},\alpha,\psi)=2\frac{J_1(a)\sin(b)}{ab} 27 27 \\ 28 a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2}28 where a = \mathbf{q}\sin(\alpha)\left[ r^2_{major}\sin^2(\psi)+r^2_{minor}\cos(\psi) \right]^{1/2} 29 29 \\ 30 30 b=\mathbf{q}\frac{L}{2}\cos(\alpha) … … 74 74 The intensities averaged from 2D over different numbers of bins and angles. 75 75 76 Reference 77 --------- 76 References 77 ---------- 78 78 79 79 L A Feigin and D I Svergun, *Structure Analysis by Small-Angle X-Ray and Neutron Scattering*, Plenum, … … 98 98 ["length", "Ang", 400.0, [1, inf], "volume", "Length of the cylinder"], 99 99 ["sld", "1e-6/Ang^2", 4.0, [-inf, inf], "", "Cylinder scattering length density"], 100 ["s olvent_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Solvent scattering length density"],100 ["sld_solvent", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Solvent scattering length density"], 101 101 ["theta", "degrees", 90.0, [-360, 360], "orientation", "In plane angle"], 102 102 ["phi", "degrees", 0, [-360, 360], "orientation", "Out of plane angle"], … … 108 108 109 109 demo = dict(scale=1, background=0, r_minor=100, r_ratio=1.5, length=400.0, 110 sld=4.0, s olvent_sld=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3)110 sld=4.0, sld_solvent=1.0, theta=10.0, phi=20, psi=30, theta_pd=10, phi_pd=2, psi_pd=3) 111 111 112 112 oldname = 'EllipticalCylinderModel' 113 oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', s olvent_sld='sldSolv')113 oldpars = dict(theta='cyl_theta', phi='cyl_phi', psi='cyl_psi', sld='sldCyl', sld_solvent='sldSolv') 114 114 115 115 def ER(r_minor, r_ratio, length): … … 132 132 'sld': 4.0, 133 133 'length':400.0, 134 's olvent_sld':1.0,134 'sld_solvent':1.0, 135 135 'background':0.0 136 136 }, 0.001, 675.504402]] -
sasmodels/models/flexible_cylinder.py
raa2edb2 re65a3e7 30 30 The Kuhn length $(b = 2*l_p)$ is also used to describe the stiffness of a chain. 31 31 32 The returned value is in units of $cm^ -1$, on absolute scale.32 The returned value is in units of $cm^{-1}$, on absolute scale. 33 33 34 34 In the parameters, the sldCyl and sldSolv represent the SLD of the chain/cylinder … … 65 65 title = "Flexible cylinder where the form factor is normalized by the volume" \ 66 66 "of the cylinder." 67 description = """Note : scale and contrast =sld-solvent_sldare both67 description = """Note : scale and contrast = (sld - sld_solvent) are both 68 68 multiplicative factors in the model and are perfectly 69 69 correlated. One or both of these parameters must be held fixed … … 72 72 73 73 category = "shape:cylinder" 74 single = False 74 single = False # double precision only! 75 75 76 76 # pylint: disable=bad-whitespace, line-too-long … … 81 81 ["radius", "Ang", 20.0, [0, inf], "volume", "Radius of the flexible cylinder"], 82 82 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "Cylinder scattering length density"], 83 ["s olvent_sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"],83 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", "Solvent scattering length density"], 84 84 ] 85 85 # pylint: enable=bad-whitespace, line-too-long … … 91 91 radius=20.0, 92 92 sld=1.0, 93 s olvent_sld=6.3)93 sld_solvent=6.3) 94 94 95 95 oldname = 'FlexibleCylinderModel' 96 oldpars = dict(sld='sldCyl', s olvent_sld='sldSolv')96 oldpars = dict(sld='sldCyl', sld_solvent='sldSolv') 97 97 98 98 … … 104 104 # 'radius': 20.0, 105 105 # 'sld': 1.0, 106 # 's olvent_sld': 6.3,106 # 'sld_solvent': 6.3, 107 107 # 'background': 0.0001, 108 108 # }, 0.001, 3509.2187], … … 113 113 'radius': 20.0, 114 114 'sld': 1.0, 115 's olvent_sld': 6.3,115 'sld_solvent': 6.3, 116 116 'background': 0.0001, 117 117 }, 1.0, 0.000595345], … … 120 120 'radius': 2.0, 121 121 'sld': 6.0, 122 's olvent_sld': 12.3,122 'sld_solvent': 12.3, 123 123 'background': 0.001, 124 124 }, 0.1, 1.55228], … … 127 127 'radius': 50.0, 128 128 'sld': 0.1, 129 's olvent_sld': 5.1,129 'sld_solvent': 5.1, 130 130 'background': 0.0, 131 131 }, 1.0, 0.000938456]
Note: See TracChangeset
for help on using the changeset viewer.