Changes in / [9acade6:6cefbc9] in sasmodels
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pringle.c
r58c3367 rc047acf 42 42 } 43 43 44 #if 1 45 // TODO: should the normalization be to R^2 or the last value, r^2 46 // the gaussian window does not go all the way from 0 to 1. 47 //radius = Gauss76Z[75] * zm + zb; 48 *Sn = zm*sumS / (r*r); 49 *Cn = zm*sumC / (r*r); 50 #else 44 51 *Sn = zm*sumS / (radius*radius); 45 52 *Cn = zm*sumC / (radius*radius); 53 #endif 46 54 } 47 55 … … 101 109 double form_volume(double radius, double thickness, double alpha, double beta) 102 110 { 103 return M_PI*radius*radius*thickness; 111 // TODO: Normalize by form volume 112 //return M_PI*radius*radius*thickness; 113 return 1.0; 104 114 } 105 115 … … 116 126 double contrast = sld_pringle - sld_solvent; 117 127 double volume = M_PI*radius*radius*thickness; 118 return 1.0e-4*form * square(contrast * volume); 128 // TODO: If normalize by form volume, need an extra volume here 129 //return 1.0e-4*form * square(contrast * volume); 130 return 1.0e-4*form * square(contrast) * volume; 119 131 } -
sasmodels/models/pringle.py
r5fd684d r40a87fa 17 17 .. math:: 18 18 19 C_n = \ frac{1}{r^2}\int^{R}_{0} r dr\cos(qr^2\alpha \cos{\psi})19 C_n = \int^{R}_{0} r dr\cos(qr^2\alpha \cos{\psi}) 20 20 J_n\left( qr^2\beta \cos{\psi}\right) 21 21 J_{2n}\left( qr \sin{\psi}\right) … … 23 23 .. math:: 24 24 25 S_n = \ frac{1}{r^2}\int^{R}_{0} r dr\sin(qr^2\alpha \cos{\psi})25 S_n = \int^{R}_{0} r dr\sin(qr^2\alpha \cos{\psi}) 26 26 J_n\left( qr^2\beta \cos{\psi}\right) 27 27 J_{2n}\left( qr \sin{\psi}\right) … … 47 47 **Last Modified by:** Wojciech Wpotrzebowski **on:** March 20, 2016 48 48 49 **Last Reviewed by:** Andrew Jackson **on:** September 26, 201649 **Last Reviewed by:** Paul Butler **on:** March 21, 2016 50 50 51 51 """ … … 102 102 'sld_pringle': 1.0, 103 103 'sld_solvent': 6.3, 104 'background': 0.001,105 }, 0.1, 9.87676],104 'background': 6.3, 105 }, 0.1, 16.185532], 106 106 107 107 [{'scale' : 1.0, … … 112 112 'sld_pringle': 1.0, 113 113 'sld_solvent': 6.3, 114 'background': 0.001,115 }, 0.01, 29 0.56723],114 'background': 6.3, 115 }, 0.01, 297.153496], 116 116 117 117 [{'scale' : 1.0, … … 122 122 'sld_pringle': 1.0, 123 123 'sld_solvent': 6.3, 124 'background': 0.001, 125 }, 0.001, 317.40847], 124 'background': 6.3, 125 }, 0.001, 324.021256415], 126 127 [{'scale' : 1.0, 128 'radius': 60.0, 129 'thickness': 10.0, 130 'alpha': 0.001, 131 'beta': 0.02, 132 'sld_pringle': 1.0, 133 'sld_solvent': 6.3, 134 'background': 6.3, 135 }, (0.001, 90.0), 6.30000026876], 126 136 ]
Note: See TracChangeset
for help on using the changeset viewer.