source: sasmodels/doc/guide/fitting_sq.rst @ e62c019

ticket_1156ticket_822_more_unit_tests
Last change on this file since e62c019 was e62c019, checked in by smk78, 5 years ago

Fix invalid link in fitting_sq.rst

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[77c91d0]1.. fitting_sq.rst
2
3.. Much of the following text was scraped from product.py
4
[bc69321]5.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[77c91d0]6
[e62c019]7.. _Product_Models:
[77c91d0]8
9Fitting Models with Structure Factors
10-------------------------------------
11
12.. note::
13
14   This help document is under development
15
[bc69321]16.. figure:: p_and_s_buttons.png
17
18**Product models**, or $P@S$ models for short, multiply the structure factor
19$S(Q)$ by the form factor $P(Q)$, modulated by the **effective radius** of the
20form factor.
[77c91d0]21
22Many of the parameters in $P@S$ models take on specific meanings so that they
23can be handled correctly inside SasView:
24
25* *scale*:
26
[bc69321]27  In simple $P(Q)$ models **scale** often represents the volume fraction of
28  material.
29 
30  In $P@S$ models **scale** should be set to 1.0, as the $P@S$ model contains a
31  **volfraction** parameter.
[77c91d0]32
33* *volfraction*:
34
[bc69321]35  The volume fraction of material.
36
37  For hollow shapes, **volfraction** still represents the volume fraction of
38  material but the $S(Q)$ calculation needs the volume fraction *enclosed by*
[77c91d0]39  *the shape.* SasView scales the user-specified volume fraction by the ratio
40  form:shell computed from the average form volume and average shell volume
[bc69321]41  returned from the $P(Q)$ calculation (the original volfraction is divided
42  by the shell volume to compute the number density, and then $P@S$ is scaled
43  by that to get the absolute scaling on the final $I(Q)$).
[77c91d0]44
45* *radius_effective*:
46
[bc69321]47  The radial distance determining the range of the $S(Q)$ interaction.
48 
49  This may, or may not, be the same as any "size" parameters describing the
50  form of the shape. For example, in a system containing freely-rotating
51  cylinders, the volume of space each cylinder requires to tumble will be
52  much larger than the volume of the cylinder itself. Thus the effective
53  radius will be larger than either the radius or half-length of the
54  cylinder. It may be sensible to tie or constrain **radius_effective** to one
55  or other of these "size" parameters.
56
57  If just part of the $S(Q)$ calculation, the value of **radius_effective** may
58  be polydisperse. If it is calculated by $P(Q)$, then it will be the weighted
[77c91d0]59  average of the effective radii computed for the polydisperse shape
60  parameters.
61
62* *structure_factor_mode*:
63
[bc69321]64  If the $P@S$ model supports the $\beta(Q)$ *decoupling correction* [1] then
65  **structure_factor_mode** will appear in the parameter table after the $S(Q)$
66  parameters.
67 
68  If **structure_factor_mode = 0** then the *local monodisperse approximation*
69  will be used, i.e.:
70
71    $I(Q)$ = $(scale$ / $volume)$ x $P(Q)$ x $S(Q)$ + $background$
[77c91d0]72
[bc69321]73  If **structure_factor_mode = 1** then the $\beta(q)$ correction will be
74  used, i.e.:
[77c91d0]75
[bc69321]76    $I(Q)$ = $(scale$ x $volfraction$ / $volume)$ x $( <F(Q)^2>$ + $<F(Q)>^2$ x $(S(Q)$ - $1) )$ + $background$
[77c91d0]77
[bc69321]78    where $P(Q)$ = $<|F(Q)|^2>$.
79   
80  This is equivalent to:
81 
82    $I(Q)$ = $(scale$ / $volume)$ x $P(Q)$ x $( 1$ + $\beta(Q)$ x $(S(Q)$ - $1) )$ + $background$
[77c91d0]83
[bc69321]84  The $\beta(Q)$ decoupling approximation has the effect of damping the
85  oscillations in the normal (local monodisperse) $S(Q)$. When $\beta(Q)$ = 1
86  the local monodisperse approximation is recovered.
[77c91d0]87
[bc69321]88  More mode options may appear in future as more complicated operations are
[77c91d0]89  added.
90
91References
92^^^^^^^^^^
93
94.. [#] Kotlarchyk, M.; Chen, S.-H. *J. Chem. Phys.*, 1983, 79, 2461
95
[bc69321]96.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[77c91d0]97
98*Document History*
99
[bc69321]100| 2019-03-30 Paul Kienzle & Steve King
Note: See TracBrowser for help on using the repository browser.