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

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

fix internal comment

  • Property mode set to 100644
File size: 767 bytes
Line 
1static double
2form_volume(double radius, double thickness)
3{
4    return M_4PI_3 * cube(radius + thickness);
5}
6
7static double
8Iq(double q,
9   double radius,
10   double thickness,
11   double core_sld,
12   double shell_sld,
13   double solvent_sld,
14   double volfraction,
15   double fractal_dim,
16   double cor_length)
17{
18    //The radius for the building block of the core shell particle that is
19    //needed by the Teixeira fractal S(q) is the radius of the whole particle.
20    const double cs_radius = radius + thickness;
21    const double sq = fractal_sq(q, cs_radius, fractal_dim, cor_length);
22    const double fq = core_shell_fq(q, radius, thickness,
23                                    core_sld, shell_sld, solvent_sld);
24
25    return 1.0e-4 * volfraction * sq * fq * fq;
26}
Note: See TracBrowser for help on using the repository browser.