core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 12f4c19 was
ee60aa7,
checked in by Paul Kienzle <pkienzle@…>, 6 years ago
|
clean up effective radius functions; improve mono_gauss_coil accuracy; start moving VR into C
|
-
Property mode set to
100644
|
File size:
763 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 | effective_radius(int mode, double radius, double thickness) |
---|
9 | { |
---|
10 | switch (mode) { |
---|
11 | case 1: // outer radius |
---|
12 | return radius + thickness; |
---|
13 | case 2: // core radius |
---|
14 | return radius; |
---|
15 | } |
---|
16 | } |
---|
17 | |
---|
18 | static void |
---|
19 | Fq(double q, double *F1, double *F2, double radius, |
---|
20 | double thickness, double core_sld, double shell_sld, double solvent_sld) { |
---|
21 | double form = core_shell_fq(q, |
---|
22 | radius, |
---|
23 | thickness, |
---|
24 | core_sld, |
---|
25 | shell_sld, |
---|
26 | solvent_sld); |
---|
27 | *F1 = 1.0e-2*form; |
---|
28 | *F2 = 1.0e-4*form*form; |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.