Changeset b716cc6 in sasmodels for sasmodels/models/surface_fractal.py
- Timestamp:
- Oct 14, 2016 5:20:17 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a48772
- Parents:
- 6831fa0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/surface_fractal.py
ra807206 rb716cc6 10 10 .. math:: 11 11 12 I(q) = scale \times P(q)S(q) + background 13 14 .. math:: 15 16 P(q) = F(qR)^2 17 18 .. math:: 19 20 F(x) = \frac{3\left[sin(x)-xcos(x)\right]}{x^3} 21 22 .. math:: 23 24 S(q) = \frac{\Gamma(5-D_S)\zeta^{5-D_S}}{\left[1+(q\zeta)^2 25 \right]^{(5-D_S)/2}} 26 \frac{sin\left[(D_S - 5) tan^{-1}(q\zeta) \right]}{q} 27 28 .. math:: 29 30 scale = scale\_factor \times NV^2(\rho_{particle} - \rho_{solvent})^2 31 32 .. math:: 33 34 V = \frac{4}{3}\pi R^3 12 I(q) &= \text{scale} \times P(q)S(q) + \text{background} \\ 13 P(q) &= F(qR)^2 \\ 14 F(x) &= \frac{3\left[\sin(x)-x\cos(x)\right]}{x^3} \\ 15 S(q) &= \Gamma(5-D_S)\xi^{\,5-D_S}\left[1+(q\xi)^2 \right]^{-(5-D_S)/2} 16 \sin\left[-(5-D_S) \tan^{-1}(q\xi) \right] q^{-1} \\ 17 \text{scale} &= \phi N V^2(\rho_\text{particle} - \rho_\text{solvent})^2 \\ 18 V &= \frac{4}{3}\pi R^3 35 19 36 20 where $R$ is the radius of the building block, $D_S$ is the **surface** fractal 37 dimension, | \zeta\| is the cut-off length, $\rho_{solvent}$ is the scattering38 length density of the solvent, 39 and $\rho_{particle}$ is the scattering length density ofparticles.21 dimension, $\xi$ is the cut-off length, $\rho_\text{solvent}$ is the scattering 22 length density of the solvent, $\rho_\text{particle}$ is the scattering 23 length density of particles and $\phi$ is the volume fraction of the particles. 40 24 41 25 .. note:: 42 The surface fractal dimension $D_s$ is only valid if $1<surface\_dim<3$. 43 It is also only valid over a limited $q$ range (see the reference for 44 details) 26 27 The surface fractal dimension is only valid if $1<D_S<3$. The result is 28 only valid over a limited $q$ range, $\tfrac{5}{3-D_S}\xi^{\,-1} < q < R^{-1}$. 29 See the reference for details. 45 30 46 31 … … 89 74 source = ["lib/sph_j1c.c", "lib/sas_gamma.c", "surface_fractal.c"] 90 75 91 demo = dict(scale=1, background= 0,76 demo = dict(scale=1, background=1e-5, 92 77 radius=10, fractal_dim_surf=2.0, cutoff_length=500) 93 78
Note: See TracChangeset
for help on using the changeset viewer.