Changeset 994d77f in sasmodels for sasmodels/models/lamellar.py
- Timestamp:
- Oct 30, 2014 10:33:53 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- ef2861b
- Parents:
- d087487b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellar.py
r19dcb933 r994d77f 77 77 # This should perhaps be volume normalized? 78 78 form_volume = """ 79 return REAL(1.0);79 return 1.0; 80 80 """ 81 81 82 82 Iq = """ 83 const realsub = sld - solvent_sld;84 const realqsq = q*q;85 return REAL(4.0e-4)*M_PI*sub*sub/qsq * (REAL(1.0)-cos(q*thickness))83 const double sub = sld - solvent_sld; 84 const double qsq = q*q; 85 return 4.0e-4*M_PI*sub*sub/qsq * (1.0-cos(q*thickness)) 86 86 / (thickness*qsq); 87 87 """ … … 89 89 Iqxy = """ 90 90 // never called since no orientation or magnetic parameters. 91 return REAL(-1.0);91 return -1.0; 92 92 """ 93 93
Note: See TracChangeset
for help on using the changeset viewer.