ticket-1257-vesicle-productticket_1156ticket_822_more_unit_tests
Last change
on this file since e220acc was
a34b811,
checked in by Paul Kienzle <pkienzle@…>, 5 years ago
|
use radius_effective/radius_effective_mode/radius_effective_modes consistently throughout the code
|
-
Property mode set to
100644
|
File size:
488 bytes
|
Line | |
---|
1 | static double form_volume(double radius) |
---|
2 | { |
---|
3 | return M_4PI_3*cube(radius); |
---|
4 | } |
---|
5 | |
---|
6 | static double |
---|
7 | radius_effective(int mode, double radius) |
---|
8 | { |
---|
9 | // case 1: radius |
---|
10 | return radius; |
---|
11 | } |
---|
12 | |
---|
13 | static void Fq(double q, double *f1, double *f2, double sld, double sld_solvent, double radius) |
---|
14 | { |
---|
15 | const double bes = sas_3j1x_x(q*radius); |
---|
16 | const double contrast = (sld - sld_solvent); |
---|
17 | const double form = contrast * form_volume(radius) * bes; |
---|
18 | *f1 = 1.0e-2*form; |
---|
19 | *f2 = 1.0e-4*form*form; |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.