Changeset 513efc5 in sasmodels for sasmodels/models/polymer_excl_volume.py
- Timestamp:
- Jan 20, 2016 4:50:50 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:
- 7ed702f
- Parents:
- 30b4ddf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/polymer_excl_volume.py
r23d3b41 r513efc5 1 1 r""" 2 This model describes the scattering from polymer chains subject to excluded volume effects3 and has been used as a template for describing mass fractals.2 This model describes the scattering from polymer chains subject to excluded 3 volume effects and has been used as a template for describing mass fractals. 4 4 5 5 Definition 6 6 ---------- 7 7 8 The form factor was originally presented in the following integral form (Benoit, 1957) 8 The form factor was originally presented in the following integral form 9 (Benoit, 1957) 9 10 10 11 .. math:: … … 16 17 $a$ is the statistical segment length of the polymer chain, 17 18 and $n$ is the degree of polymerization. 18 This integral was later put into an almost analytical form as follows (Hammouda, 1993) 19 This integral was later put into an almost analytical form as follows 20 (Hammouda, 1993) 19 21 20 22 .. math:: … … 43 45 Note that this model applies only in the mass fractal range (ie, $5/3<=m<=3$ ) 44 46 and **does not apply** to surface fractals ( $3<m<=4$ ). 45 It also does not reproduce the rigid rod limit (m=1) because it assumes chain flexibility 46 from the outset. It may cover a portion of the semi-flexible chain range ( $1<m<5/3$ ). 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$ ). 47 50 48 A low-Q expansion yields the Guinier form and a high-Q expansion yields the Porod form49 which is given by51 A low-Q expansion yields the Guinier form and a high-Q expansion yields the 52 Porod form which is given by 50 53 51 54 .. math:: 52 55 53 P(Q\rightarrow \infty) = \frac{1}{\nu U^{1/2\nu}}\Gamma\left(\frac{1}{2\nu}\right) - 54 \frac{1}{\nu U^{1/\nu}}\Gamma\left(\frac{1}{\nu}\right) 56 P(Q\rightarrow \infty) = \frac{1}{\nu U^{1/2\nu}}\Gamma\left( 57 \frac{1}{2\nu}\right) - \frac{1}{\nu U^{1/\nu}}\Gamma\left( 58 \frac{1}{\nu}\right) 55 59 56 60 Here $\Gamma(x) = \gamma(x,\infty)$ is the gamma function. … … 102 106 name = "polymer_excl_volume" 103 107 title = "Polymer Excluded Volume model" 104 description = """Compute the scattering intensity from polymers with excluded volume effects. 108 description = """Compute the scattering intensity from polymers with excluded 109 volume effects. 105 110 rg: radius of gyration 106 111 porod_exp: Porod exponent … … 127 132 128 133 intensity = ((1.0/(nu*power(u, o2nu))) * (gamma(o2nu)*gammainc(o2nu, u) - 129 1.0/power(u, o2nu) * gamma(porod_exp)*gammainc(porod_exp, u)))*(q > 0) + \130 1.0*(q <= 0)134 1.0/power(u, o2nu) * gamma(porod_exp) * 135 gammainc(porod_exp, u))) * (q > 0) + 1.0*(q <= 0) 131 136 132 137 return intensity … … 156 161 [{'rg': 2.2, 'porod_exp': 22.0, 'background': 100.0}, 5.0, 100.0], 157 162 158 [{'rg': 1.1, 'porod_exp': 1, 'background': 10.0, 'scale': 1.25}, 20000., 10.0000712097] 163 [{'rg': 1.1, 'porod_exp': 1, 'background': 10.0, 'scale': 1.25}, 164 20000., 10.0000712097] 159 165 ]
Note: See TracChangeset
for help on using the changeset viewer.