Changeset 4788822 in sasmodels
- Timestamp:
- Mar 19, 2017 9:21:34 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- df89d77
- Parents:
- 9f12fbe
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fractal.c
r925ad6e r4788822 1 1 #define INVALID(p) (p.fractal_dim < 0.0) 2 3 static double 4 form_volume(double radius) 5 { 6 return M_4PI_3 * cube(radius); 7 } 2 8 3 9 static double … … 13 19 14 20 //calculate P(q) for the spherical subunits 15 const double V = M_4PI_3*cube(radius);16 const double pq = V * square((sld_block-sld_solvent)*sas_3j1x_x(q*radius));21 const double pq = square(form_volume(radius) * (sld_block-sld_solvent) 22 *sas_3j1x_x(q*radius)); 17 23 18 24 // scale to units cm-1 sr-1 (assuming data on absolute scale) -
sasmodels/models/fractal.py
r925ad6e r4788822 47 47 ---------- 48 48 49 J Teixeira, *J. Appl. Cryst.*, 21 (1988) 781-78549 .. [#] J Teixeira, *J. Appl. Cryst.*, 21 (1988) 781-785 50 50 51 **Author:** NIST IGOR/DANSE **on:** pre 2010 51 Authorship and Verification 52 ---------------------------- 52 53 53 **Last Modified by:** Paul Butler **on:** March 20, 2016 54 55 **Last Reviewed by:** Paul Butler **on:** March 20, 2016 54 * **Author:** NIST IGOR/DANSE **Date:** pre 2010 55 * **Converted to sasmodels by:** Paul Butler **Date:** March 19, 2016 56 * **Last Modified by:** Paul Butler **Date:** March 12, 2017 57 * **Last Reviewed by:** Paul Butler **Date:** March 12, 2017 56 58 57 59 """ … … 84 86 parameters = [["volfraction", "", 0.05, [0.0, 1], "", 85 87 "volume fraction of blocks"], 86 ["radius", "Ang", 5.0, [0.0, inf], " ",88 ["radius", "Ang", 5.0, [0.0, inf], "volume", 87 89 "radius of particles"], 88 90 ["fractal_dim", "", 2.0, [0.0, 6.0], "",
Note: See TracChangeset
for help on using the changeset viewer.