core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 4073633 was
925ad6e,
checked in by wojciech, 7 years ago
|
sph_j1c translated to sas_3j1x_x
|
-
Property mode set to
100644
|
File size:
427 bytes
|
Line | |
---|
1 | double sphere_volume(double radius); |
---|
2 | double sphere_form(double q, double radius, double sld, double solvent_sld); |
---|
3 | |
---|
4 | double sphere_volume(double radius) |
---|
5 | { |
---|
6 | return M_4PI_3*cube(radius); |
---|
7 | } |
---|
8 | |
---|
9 | double sphere_form(double q, double radius, double sld, double solvent_sld) |
---|
10 | { |
---|
11 | const double fq = sphere_volume(radius) * sas_3j1x_x(q*radius); |
---|
12 | const double contrast = (sld - solvent_sld); |
---|
13 | return 1.0e-4*square(contrast * fq); |
---|
14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.