source: sasmodels/sasmodels/models/sphere.c @ 01c8d9e

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 01c8d9e was 01c8d9e, checked in by Suczewski <ges3@…>, 11 months ago

beta approximation, first pass

  • Property mode set to 100644
File size: 507 bytes
Line 
1static double form_volume(double radius)
2{
3    return sphere_volume(radius);
4}
5
6static double Iq(double q, double sld, double sld_solvent, double radius)
7{
8    return sphere_form(q, radius, sld, sld_solvent);
9}
10
11static void Fq(double q, double *F1,double *F2, double sld, double solvent_sld, double radius)
12{
13    const double fq = sphere_volume(radius) * sas_3j1x_x(q*radius);
14    const double contrast = (sld - solvent_sld);
15    const double form = 1e-2*contrast * fq;
16    *F1= form;
17    *F2 = form*form;
18}
Note: See TracBrowser for help on using the repository browser.