Changeset 71b751d in sasmodels for sasmodels/models/multilayer_vesicle.c


Ignore:
Timestamp:
Aug 14, 2018 10:09:34 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
86aa992
Parents:
2f8cbb9
Message:

update remaining form factors to use Fq interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/multilayer_vesicle.c

    rec1d4bc r71b751d  
    1212static double 
    1313multilayer_vesicle_kernel(double q, 
    14           double volfraction, 
    1514          double radius, 
    1615          double thick_shell, 
     
    4544                               //unilamellar vesicles (C. Glinka, 11/24/03) 
    4645 
    47     return 1.0e-4*volfraction*fval*fval;  // Volume normalization happens in caller 
     46    return fval;  // Volume normalization happens in caller 
    4847} 
    4948 
    50 static double 
    51 Iq(double q, 
     49static void 
     50Fq(double q, 
     51          double *F1, 
     52          double *F2, 
    5253          double volfraction, 
    5354          double radius, 
     
    5960{ 
    6061    int n_shells = (int)(fp_n_shells + 0.5); 
    61     return multilayer_vesicle_kernel(q, 
    62            volfraction, 
     62    const double fq = multilayer_vesicle_kernel(q, 
    6363           radius, 
    6464           thick_shell, 
     
    6767           sld, 
    6868           n_shells); 
     69    // See comment in vesicle.c regarding volfraction normalization. 
     70    *F1 = 1.0e-2 * sqrt(volfraction)*fq; 
     71    *F2 = 1.0e-4 * volfraction*fq*fq; 
    6972} 
    7073 
Note: See TracChangeset for help on using the changeset viewer.