core_shell_microgelscostrafo411magnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 8977226 was
217590b,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
fractal, fractal_core_shell: support fractal_dim as low as 0.
|
-
Property mode set to
100644
|
File size:
629 bytes
|
Line | |
---|
1 | static double |
---|
2 | form_volume(double radius, double thickness) |
---|
3 | { |
---|
4 | return M_4PI_3 * cube(radius + thickness); |
---|
5 | } |
---|
6 | |
---|
7 | static double |
---|
8 | Iq(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 | const double sq = fractal_sq(q, radius, fractal_dim, cor_length); |
---|
19 | const double pq = core_shell_kernel(q, radius, thickness, |
---|
20 | core_sld, shell_sld, solvent_sld); |
---|
21 | |
---|
22 | // Note: core_shell_kernel already performs the 1e-4 unit conversion |
---|
23 | return volfraction * sq * pq; |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.