Changeset c915373 in sasmodels
- Timestamp:
- Aug 1, 2016 7:35:19 PM (8 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:
- 33875e3
- Parents:
- ec77322
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/polymer_micelle_kernel.c
r2c74c11 rc915373 36 36 // Self-correlation term of the chains 37 37 const double qrg2 = q*radius_gyr*q*radius_gyr; 38 const double debye_chain = (qrg2 == 0.0) ? 1.0 : 2.0*(exp (-qrg2)-1+qrg2)/(qrg2*qrg2);38 const double debye_chain = (qrg2 == 0.0) ? 1.0 : 2.0*(expm1(-qrg2)+qrg2)/(qrg2*qrg2); 39 39 const double term2 = n_aggreg * beta_corona * beta_corona * debye_chain; 40 40 41 41 // Interference cross-term between core and chains 42 const double chain_ampl = (qrg2 == 0.0) ? 1.0 : (1-exp(-qrg2))/qrg2;42 const double chain_ampl = (qrg2 == 0.0) ? 1.0 : -expm1(-qrg2)/qrg2; 43 43 const double bes_corona = sinc(q*(radius_core + d_penetration * radius_gyr)); 44 44 const double term3 = 2 * n_aggreg * n_aggreg * beta_core * beta_corona *
Note: See TracChangeset
for help on using the changeset viewer.