Changeset 20c856a in sasmodels for sasmodels/models/rpa.c
- Timestamp:
- Mar 7, 2017 1:19:23 AM (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:
- 9ae85f0, 3a45c2c
- Parents:
- f4b36fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/rpa.c
racfb094 r20c856a 309 309 310 310 //calculate contrast where L[i] is the scattering length of i and D is the matrix 311 //need to verify why the sqrt of Nav rather than just Nav (assuming v is molar volume) 311 //Note that should multiply by Nav to get units of SLD which will become 312 // Nav*2 in the next line (SLD^2) but then normalization in that line would 313 //need to divide by Nav leaving only Nav or sqrt(Nav) before squaring. 312 314 Nav=6.022045e+23; 313 315 Lad=(L[0]/v[0]-L[3]/v[3])*sqrt(Nav); … … 317 319 Intg=Lad*Lad*S11+Lbd*Lbd*S22+Lcd*Lcd*S33+2.0*Lad*Lbd*S12+2.0*Lbd*Lcd*S23+2.0*Lad*Lcd*S13; 318 320 319 //rescale for units of Lij^2 ( in 10e-12 m^2 to m^2 ?)320 Intg *= 1.0e-2 4;321 //rescale for units of Lij^2 (fm^2 to cm^2) 322 Intg *= 1.0e-26; 321 323 322 324 return Intg;
Note: See TracChangeset
for help on using the changeset viewer.