Changeset c036ddb in sasmodels for sasmodels/models/ellipsoid.c
- Timestamp:
- Aug 7, 2018 8:45:45 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 7e923c2
- Parents:
- 7b0abf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/ellipsoid.c
r01c8d9e rc036ddb 5 5 } 6 6 7 /* Fq overrides Iq 7 8 static double 8 9 Iq(double q, … … 20 21 // i(h) = int_0^1 Phi^2(h a sqrt(1 + u^2(v^2-1)) du 21 22 const double v_square_minus_one = square(radius_polar/radius_equatorial) - 1.0; 22 23 23 24 // translate a point in [-1,1] to a point in [0, 1] 24 25 // const double u = GAUSS_Z[i]*(upper-lower)/2 + (upper+lower)/2; … … 36 37 const double s = (sld - sld_solvent) * form_volume(radius_polar, radius_equatorial); 37 38 return 1.0e-4 * s * s * form; 38 } 39 } 40 */ 39 41 40 42 static void … … 72 74 const double form_avg = total_F1*zm; 73 75 const double s = (sld - sld_solvent) * form_volume(radius_polar, radius_equatorial); 76 *F1 = 1e-2 * s * form_avg; 74 77 *F2 = 1e-4 * s * s * form_squared_avg; 75 *F1 = 1e-2 * s * form_avg;76 78 } 77 78 79 80 81 82 79 83 80 static double
Note: See TracChangeset
for help on using the changeset viewer.