Changeset 18a2bfc in sasmodels for sasmodels/models/lib/wrc_cyl.c
- Timestamp:
- Oct 4, 2017 6:25:40 PM (7 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:
- ced5bd2
- Parents:
- a8631ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lib/wrc_cyl.c
ra8631ca r18a2bfc 192 192 double ans; 193 193 194 194 195 if( L > 4*b ) { // L > 4*b : Longer Chains 195 196 if (q*b <= 3.1) { … … 200 201 } else { // L <= 4*b : Shorter Chains 201 202 if (q*b <= q0short) { // q*b <= fmax(1.9/Rg_short, 3) 203 //printf("branch C-%d q=%g L=%g b=%g\n", square(q*Rg_short)<DEBYE_CUTOFF, q, L, b); 204 // Note that q0short is usually 3, but it will be greater than 3 205 // small enough b, depending on the L/b ratio: 206 // L/b == 1 => b < 2.37 207 // L/b == 2 => b < 1.36 208 // L/b == 3 => b < 1.00 209 // L/b == 4 => b < 0.816 202 210 // 2017-10-01 pkienzle: moved low q approximation into Sdebye() 203 //printf("branch C-%d q=%g L=%g b=%g\n", square(q*Rg_short)<DEBYE_CUTOFF, q, L, b);204 211 ans = Sdebye(square(q*Rg_short)); 205 212 } else { // q*b > max(1.9/Rg_short, 3)
Note: See TracChangeset
for help on using the changeset viewer.