Changeset 1a6cd57 in sasmodels for sasmodels/models/multilayer_vesicle.py
- Timestamp:
- Oct 11, 2016 11:25:56 AM (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:
- 2ccb775, 997d4eb
- Parents:
- c1904f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/multilayer_vesicle.py
r9a4811a r1a6cd57 5 5 This model is a trivial extension of the core_shell_sphere function to include 6 6 *N* shells where the core is filled with solvent and the shells are interleaved 7 with layers of solvent. For *N = 1*, this returns the same as the vesicle model. 8 The shell thicknessess and SLD are constant across all shells as expected for 7 with layers of solvent. For *N = 1*, this returns the same as the vesicle model, 8 except for the normalisation, which here is to outermost volume. 9 The shell thicknessess and SLD are constant for all shells as expected for 9 10 a multilayer vesicle. 10 11 … … 15 16 See the :ref:`core-shell-sphere` model for more documentation. 16 17 18 The 1D scattering intensity is calculated in the following way (Guinier, 1955) 19 20 .. math:: 21 22 P(q) = \frac{\text{scale.volfraction}}{V_t} F^2(q) + \text{background} 23 24 where 25 26 .. math:: 27 28 F(q) = (\rho_{shell}-\rho_{solv}) \sum_{i=1}^{n\_pairs} \left[ 29 3V(R_i)\frac{\sin(qR_i)-qR_i\cos(qR_i)}{(qR_i)^3} \\ 30 - 3V(R_i+t_s)\frac{\sin(q(R_i+t_s))-q(R_i+t_s)\cos(q(R_i+t_s))}{(q(R_i+t_s))^3} 31 \right] 32 33 34 where $R_i = r_c + (i-1)(t_s + t_w)$ 35 36 where $V_t$ is the volume of the whole particle, $V(R)$ is the volume of a sphere 37 of radius $R$, $r_c$ is the radius of the core, $\rho_{shell}$ is the scattering length 38 density of a shell, $\rho_{solv}$ is the scattering length density of the solvent. 39 40 17 41 The 2D scattering intensity is the same as 1D, regardless of the orientation 18 42 of the q vector which is defined as: … … 22 46 q = \sqrt{q_x^2 + q_y^2} 23 47 24 .. note: 25 The outer most radius 26 $radius + n_pairs * thicn_shell + (n_pairs - 1) * thick_solvent$ 27 is used as the effective radius for *S(Q)* when $P(Q) * S(Q)$ is applied. 48 49 The outer most radius 50 51 $radius + n\_pairs * thick\_shell + (n\_pairs- 1) * thick\_solvent$ 52 53 is used for both the volume fraction normalization and for the 54 effective radius for *S(Q)* when $P(Q) * S(Q)$ is applied. 28 55 29 56 For information about polarised and magnetic scattering, see … … 62 89 sld_solvent: solvent scattering length density 63 90 sld: shell scattering length density 64 n_pairs:number of pairs of water/shell91 n_pairs:number of "shell plus solvent" layer pairs 65 92 background: incoherent background 66 93 """ … … 71 98 parameters = [ 72 99 ["volfraction", "", 0.05, [0.0, 1], "", "volume fraction of vesicles"], 73 ["radius", "Ang", 60.0, [0.0, inf], "", " Core radius of the multishell"],74 ["thick_shell", "Ang", 10.0, [0.0, inf], "", " Shell thickness"],75 ["thick_solvent", "Ang", 10.0, [0.0, inf], "", " Water thickness"],76 ["sld_solvent", "1e-6/Ang^2", 6.4, [-inf, inf], "sld", " Corescattering length density"],100 ["radius", "Ang", 60.0, [0.0, inf], "", "radius of solvent filled core"], 101 ["thick_shell", "Ang", 10.0, [0.0, inf], "", "thickness of one shell"], 102 ["thick_solvent", "Ang", 10.0, [0.0, inf], "", "solvent thickness between shells"], 103 ["sld_solvent", "1e-6/Ang^2", 6.4, [-inf, inf], "sld", "solvent scattering length density"], 77 104 ["sld", "1e-6/Ang^2", 0.4, [-inf, inf], "sld", "Shell scattering length density"], 78 ["n_pairs", "", 2.0, [1.0, inf], "", "Number of pairs of water and shell"],105 ["n_pairs", "", 2.0, [1.0, inf], "", "Number of shell plus solvent layer pairs"], 79 106 ] 80 107 # pylint: enable=bad-whitespace, line-too-long
Note: See TracChangeset
for help on using the changeset viewer.