source:
sasmodels/sasmodels/models/flexible_cylinder.c
@
4073633
Last change on this file since 4073633 was c3ccaec, checked in by GitHub <noreply@…>, 7 years ago | |
---|---|
|
|
File size: 503 bytes |
Rev | Line | |
---|---|---|
[d2bb604] | 1 | static double |
[aa107ef] | 2 | form_volume(double length, double kuhn_length, double radius) |
[f94d8a2] | 3 | { |
[e6408d0] | 4 | return 1.0; |
[f94d8a2] | 5 | } |
6 | ||
[d2bb604] | 7 | static double |
8 | Iq(double q, | |
9 | double length, | |
10 | double kuhn_length, | |
11 | double radius, | |
12 | double sld, | |
13 | double solvent_sld) | |
[f94d8a2] | 14 | { |
[d2bb604] | 15 | const double contrast = sld - solvent_sld; |
[592343f] | 16 | const double cross_section = sas_2J1x_x(q*radius); |
[d2bb604] | 17 | const double volume = M_PI*radius*radius*length; |
18 | const double flex = Sk_WR(q, length, kuhn_length); | |
19 | return 1.0e-4 * volume * square(contrast*cross_section) * flex; | |
[f94d8a2] | 20 | } |
Note: See TracBrowser
for help on using the repository browser.