Changeset 483a022 in sasmodels
- Timestamp:
- Oct 11, 2016 11:06:46 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:
- 3a45c2c
- Parents:
- 041bc75 (diff), 64f0a1c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- sasmodels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
re4bf271 r64f0a1c 125 125 if not hasattr(model, 'filename'): 126 126 model.filename = kernel_module.__file__ 127 # For old models, treat .pyc and .py files interchangeably. 128 # This is needed because of the Sum|Multi(p1,p2) types of models 129 # and the convoluted way in which they are created. 130 if model.filename.endswith(".py"): 131 logging.info("Loading %s as .pyc", model.filename) 132 model.filename = model.filename+'c' 127 133 if not hasattr(model, 'id'): 128 134 model.id = splitext(basename(model.filename))[0] -
sasmodels/models/core_shell_bicelle.py
r416f5c7 r041bc75 40 40 .. math:: 41 41 42 I(Q,\alpha) = \frac{\text{scale}}{V } \cdot42 I(Q,\alpha) = \frac{\text{scale}}{V_t} \cdot 43 43 F(Q,\alpha)^2 + \text{background} 44 44 -
sasmodels/models/multilayer_vesicle.py
r19e7ca7 r041bc75 15 15 16 16 See the :ref:`core-shell-sphere` model for more documentation. 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 17 40 18 41 The 2D scattering intensity is the same as 1D, regardless of the orientation
Note: See TracChangeset
for help on using the changeset viewer.