core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 391ea92 was
4937980,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
Merge remote-tracking branch 'origin/master' into polydisp
Conflicts:
sasmodels/models/flexible_cylinder.c
|
-
Property mode set to
100644
|
File size:
479 bytes
|
Rev | Line | |
---|
[d2bb604] | 1 | static double |
---|
| 2 | form_volume(length, kuhn_length, 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; |
---|
| 16 | const double cross_section = sas_J1c(q*radius); |
---|
| 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.