Changeset 18a2bfc in sasmodels for sasmodels/models/lib/wrc_cyl.c


Ignore:
Timestamp:
Oct 4, 2017 6:25:40 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

flexible_cylinder: add details about testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/wrc_cyl.c

    ra8631ca r18a2bfc  
    192192    double ans; 
    193193 
     194 
    194195    if( L > 4*b ) { // L > 4*b : Longer Chains 
    195196        if (q*b <= 3.1) { 
     
    200201    } else { // L <= 4*b : Shorter Chains 
    201202        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 
    202210            // 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); 
    204211            ans = Sdebye(square(q*Rg_short)); 
    205212        } else {  // q*b > max(1.9/Rg_short, 3) 
Note: See TracChangeset for help on using the changeset viewer.