core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since aa2edb2 was
ad90df9,
checked in by Paul Kienzle <pkienzle@…>, 8 years ago
|
refactor sphere/fcc/bcc/sc_crystal to use common code
|
-
Property mode set to
100644
|
File size:
323 bytes
|
Line | |
---|
1 | inline double |
---|
2 | sphere_volume(double radius) |
---|
3 | { |
---|
4 | return M_4PI_3*cube(radius); |
---|
5 | } |
---|
6 | |
---|
7 | inline double |
---|
8 | sphere_form(double q, double radius, double sld, double solvent_sld) |
---|
9 | { |
---|
10 | const double fq = sphere_volume(radius) * sph_j1c(q*radius); |
---|
11 | const double contrast = (sld - solvent_sld); |
---|
12 | return 1.0e-4*square(contrast * fq); |
---|
13 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.