core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 5fd684d was
2c74c11,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
implicit Iqxy; fix divide by 0 for q=0
|
-
Property mode set to
100644
|
File size:
664 bytes
|
Rev | Line | |
---|
[edc9f8d] | 1 | double form_volume(double radius, double thickness); |
---|
| 2 | double Iq(double q, double radius, double thickness, double core_sld, double shell_sld, double solvent_sld); |
---|
| 3 | |
---|
| 4 | double Iq(double q, double radius, double thickness, double core_sld, double shell_sld, double solvent_sld) { |
---|
| 5 | |
---|
[7d4b2ae] | 6 | |
---|
| 7 | double intensity = core_shell_kernel(q, |
---|
| 8 | radius, |
---|
| 9 | thickness, |
---|
| 10 | core_sld, |
---|
| 11 | shell_sld, |
---|
| 12 | solvent_sld); |
---|
| 13 | return intensity; |
---|
[edc9f8d] | 14 | } |
---|
| 15 | |
---|
| 16 | double form_volume(double radius, double thickness) |
---|
| 17 | { |
---|
| 18 | return 4.0 * M_PI / 3.0 * pow((radius + thickness), 3); |
---|
| 19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.