Changeset 529b8b4 in sasmodels
- Timestamp:
- Feb 27, 2015 5:49:48 AM (10 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:
- a5d0d00
- Parents:
- 0e20995
- Location:
- sasmodels/models
- Files:
-
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hardsphere.py
r301e096 r529b8b4 1 1 # Note: model title and parameter table are inserted automatically 2 r"""This calculates the interparticle structure factor for monodisperse spherical particles interacting through hard 3 sphere (excluded volume) interactions. 2 r"""Calculate the interparticle structure factor for monodisperse 3 spherical particles interacting through hard sphere (excluded volume) 4 interactions. 4 5 5 The calculation uses the Percus-Yevick closure where the interparticle potential is 6 The calculation uses the Percus-Yevick closure where the interparticle 7 potential is 6 8 7 .. image:: img/HardSphere_223.PNG 9 .. math: 10 11 U(r) = \begin{cases} 12 \infty & r < 2R \\ 13 0 & r \geq 2R 14 \end{cases} 8 15 9 16 where *r* is the distance from the center of the sphere of a radius *R*. … … 13 20 .. math:: 14 21 15 Q = \sqrt{Q_x^2 + Q_y^2}22 q = \sqrt{q_x^2 + q_y^2} 16 23 17 24 18 ============== ======== ============= 19 Parameter name Units Default value 20 ============== ======== ============= 21 effect_radius |Ang| 50.0 22 volfraction None 0.2 23 ============== ======== ============= 24 25 .. image:: img/HardSphere_224.jpg 25 .. image:: img/HardSphere_1d.jpg 26 26 27 27 *Figure. 1D plot using the default values (in linear scale).* … … 39 39 [Hard sphere structure factor, with Percus-Yevick closure] 40 40 Interparticle S(Q) for random, non-interacting spheres. 41 42 41 May be a reasonable approximation for other shapes of 42 particles that freely rotate, and for moderately polydisperse 43 43 systems. Though strictly the maths needs to be modified - 44 45 46 44 which sasview does not do yet. 45 effect_radius is the hard sphere radius 46 volfraction is the volume fraction occupied by the spheres. 47 47 """ 48 48 … … 96 96 Iqxy = """ 97 97 // never called since no orientation or magnetic parameters. 98 return -1.0;98 return Iq(sqrt(qx*qx+qy*qy), IQ_PARAMETERS); 99 99 """ 100 100
Note: See TracChangeset
for help on using the changeset viewer.