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

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since d277229 was d277229, checked in by grethevj, 6 years ago

Models updated to include choices for effective interaction radii

  • Property mode set to 100644
File size: 466 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    return radius;
10}
11
12static void Fq(double q, double *f1, double *f2, double sld, double sld_solvent, double radius)
13{
14    const double bes = sas_3j1x_x(q*radius);
15    const double contrast = (sld - sld_solvent);
16    const double form = contrast * form_volume(radius) * bes;
17    *f1 = 1.0e-2*form;
18    *f2 = 1.0e-4*form*form;
19}
Note: See TracBrowser for help on using the repository browser.