source: sasmodels/sasmodels/models/core_shell_sphere.c @ a34b811

ticket-1257-vesicle-productticket_1156ticket_822_more_unit_tests
Last change on this file since a34b811 was a34b811, checked in by Paul Kienzle <pkienzle@…>, 5 months ago

use radius_effective/radius_effective_mode/radius_effective_modes consistently throughout the code

  • Property mode set to 100644
File size: 776 bytes
Line 
1static double
2form_volume(double radius, double thickness)
3{
4    return M_4PI_3 * cube(radius + thickness);
5}
6
7static double
8radius_effective(int mode, double radius, double thickness)
9{
10    switch (mode) {
11    default:
12    case 1: // outer radius
13        return radius + thickness;
14    case 2: // core radius
15        return radius;
16    }
17}
18
19static void
20Fq(double q, double *F1, double *F2, double radius,
21   double thickness, double core_sld, double shell_sld, double solvent_sld) {
22    double form = core_shell_fq(q,
23                              radius,
24                              thickness,
25                              core_sld,
26                              shell_sld,
27                              solvent_sld);
28    *F1 = 1.0e-2*form;
29    *F2 = 1.0e-4*form*form;
30}
Note: See TracBrowser for help on using the repository browser.