source: sasmodels/sasmodels/models/flexible_cylinder.c @ 2d81cfe

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 2d81cfe was c3ccaec, checked in by GitHub <noreply@…>, 7 years ago

Merge branch 'master' into ticket-815

  • Property mode set to 100644
File size: 503 bytes
Line 
1static double
2form_volume(double length, double kuhn_length, double radius)
3{
4    return 1.0;
5}
6
7static double
8Iq(double q,
9   double length,
10   double kuhn_length,
11   double radius,
12   double sld,
13   double solvent_sld)
14{
15    const double contrast = sld - solvent_sld;
16    const double cross_section = sas_2J1x_x(q*radius);
17    const double volume = M_PI*radius*radius*length;
18    const double flex = Sk_WR(q, length, kuhn_length);
19    return 1.0e-4 * volume * square(contrast*cross_section) * flex;
20}
Note: See TracBrowser for help on using the repository browser.