Changes in sasmodels/models/polymer_excl_volume.py [2d81cfe:aa90015] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/polymer_excl_volume.py
r2d81cfe raa90015 17 17 $a$ is the statistical segment length of the polymer chain, 18 18 and $n$ is the degree of polymerization. 19 This integral was later put into an almost analytical form as follows 19 20 This integral was put into an almost analytical form as follows 20 21 (Hammouda, 1993) 22 23 .. math:: 24 25 P(Q)=\frac{1}{\nu U^{1/2\nu}} 26 \left\{ 27 \gamma\left(\frac{1}{2\nu},U\right) - 28 \frac{1}{U^{1/2\nu}}\gamma\left(\frac{1}{\nu},U\right) 29 \right\} 30 31 and later recast as (for example, Hore, 2013; Hammouda & Kim, 2017) 21 32 22 33 .. math:: … … 29 40 .. math:: 30 41 31 \gamma(x,U)=\int_0^{U}dt\ exp(-t)t^{x-1}42 \gamma(x,U)=\int_0^{U}dt\ \exp(-t)t^{x-1} 32 43 33 44 and the variable $U$ is given in terms of the scattering vector $Q$ as … … 37 48 U=\frac{Q^2a^2n^{2\nu}}{6} = \frac{Q^2R_{g}^2(2\nu+1)(2\nu+2)}{6} 38 49 50 The two analytic forms are equivalent. In the 1993 paper 51 52 .. math:: 53 54 \frac{1}{\nu U^{1/2\nu}} 55 56 has been factored out. 57 58 **SasView implements the 1993 expression**. 59 39 60 The square of the radius-of-gyration is defined as 40 61 … … 43 64 R_{g}^2 = \frac{a^2n^{2\nu}}{(2\nu+1)(2\nu+2)} 44 65 45 Note that this model applies only in the mass fractal range (ie, $5/3<=m<=3$ ) 46 and **does not apply** to surface fractals ( $3<m<=4$ ). 47 It also does not reproduce the rigid rod limit (m=1) because it assumes chain 48 flexibility from the outset. It may cover a portion of the semi-flexible chain 49 range ( $1<m<5/3$ ). 66 .. note:: 67 This model applies only in the mass fractal range (ie, $5/3<=m<=3$ ) 68 and **does not apply** to surface fractals ( $3<m<=4$ ). 69 It also does not reproduce the rigid rod limit (m=1) because it assumes chain 70 flexibility from the outset. It may cover a portion of the semi-flexible chain 71 range ( $1<m<5/3$ ). 50 72 51 73 A low-Q expansion yields the Guinier form and a high-Q expansion yields the … … 73 95 .. math:: 74 96 75 P(Q) = \frac{2}{Q^4R_{g}^4} \left[ exp(-Q^2R_{g}^2) - 1 + Q^2R_{g}^2 \right]97 P(Q) = \frac{2}{Q^4R_{g}^4} \left[\exp(-Q^2R_{g}^2) - 1 + Q^2R_{g}^2 \right] 76 98 77 99 For 2D data: The 2D scattering intensity is calculated in the same way as 1D, … … 89 111 90 112 B Hammouda, *SANS from Homogeneous Polymer Mixtures - A Unified Overview, 91 Advances in Polym. Sci.* 106(1993) 87-133 113 Advances in Polym. Sci.* 106 (1993) 87-133 114 115 M Hore et al, *Co-Nonsolvency of Poly(n-isopropylacrylamide) in Deuterated 116 Water/Ethanol Mixtures* 46 (2013) 7894-7901 117 118 B Hammouda & M-H Kim, *The empirical core-chain model* 247 (2017) 434-440 92 119 """ 93 120 … … 124 151 with errstate(divide='ignore', invalid='ignore'): 125 152 upow = power(usub, -0.5*porod_exp) 153 # Note: scipy gammainc is "regularized", being gamma(s,x)/Gamma(s), 154 # so need to scale by Gamma(s) to recover gamma(s, x). 126 155 result = (porod_exp*upow * 127 156 (gamma(0.5*porod_exp)*gammainc(0.5*porod_exp, usub) -
Note: See TracChangeset
for help on using the changeset viewer.