source: sasmodels/sasmodels/models/core_shell_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: 722 bytes
Line 
1static double
2form_volume(double radius, double thickness)
3{
4    return M_4PI_3 * cube(radius + thickness);
5}
6
7static double
8effective_radius(int mode, double radius, double thickness)
9{
10    if (mode == 1) {
11        return radius + thickness;
12    } else {
13        return radius;
14    }
15}
16
17static void
18Fq(double q, double *F1, double *F2, double radius,
19   double thickness, double core_sld, double shell_sld, double solvent_sld) {
20    double form = core_shell_fq(q,
21                              radius,
22                              thickness,
23                              core_sld,
24                              shell_sld,
25                              solvent_sld);
26    *F1 = 1.0e-2*form;
27    *F2 = 1.0e-4*form*form;
28}
Note: See TracBrowser for help on using the repository browser.