source: sasmodels/sasmodels/models/sphere.c @ ee60aa7

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since ee60aa7 was ee60aa7, checked in by Paul Kienzle <pkienzle@…>, 12 months ago

clean up effective radius functions; improve mono_gauss_coil accuracy; start moving VR into C

  • Property mode set to 100644
File size: 488 bytes
Line 
1static double form_volume(double radius)
2{
3    return M_4PI_3*cube(radius);
4}
5
6static double
7effective_radius(int mode, double radius)
8{
9    // case 1: radius
10    return radius;
11}
12
13static 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.