Changeset 5772737 in sasmodels


Ignore:
Timestamp:
Oct 4, 2017 2:29:21 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:
a8631ca
Parents:
237c9cf
Message:

flexible_cylinder: improve low q Sdebye calculation; adjust code so different branches use the same equation numbers

File:
1 edited

Legend:

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

    r237c9cf r5772737  
    2626{ 
    2727    // Pedersen eq. 16: 
    28     //    w = 1 - [1 + tanh((x-C4)/C5)]/2 
     28    //    w = [1 + tanh((x-C4)/C5)]/2 
    2929    const double C4 = 1.523; 
    3030    const double C5 = 0.1477; 
     
    150150    const double qr_miu = pow(qr, -1.0/miu); 
    151151    const double w = w_WR(qr); 
    152     const double t10 = qr*Sdebye(qr*qr)*(1.0 - w); 
     152    const double t10 = Sdebye(qr*qr)*(1.0 - w); 
    153153    const double t11 = ((C3*qr_miu + C2)*qr_miu + C1)*qr_miu; 
    154154 
Note: See TracChangeset for help on using the changeset viewer.