Changeset c036ddb in sasmodels for sasmodels/models/sphere.c


Ignore:
Timestamp:
Aug 7, 2018 8:45:45 PM (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:
7e923c2
Parents:
7b0abf8
Message:

refactor so Iq is not needed if Fq is defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/sphere.c

    r01c8d9e rc036ddb  
    44} 
    55 
     6// TODO: remove Iq when Iqxy can use Fq directly 
    67static double Iq(double q, double sld, double sld_solvent, double radius) 
    78{ 
     
    1112static void Fq(double q, double *F1,double *F2, double sld, double solvent_sld, double radius) 
    1213{ 
    13     const double fq = sphere_volume(radius) * sas_3j1x_x(q*radius); 
     14    const double fq = sas_3j1x_x(q*radius); 
    1415    const double contrast = (sld - solvent_sld); 
    15     const double form = 1e-2*contrast * fq; 
    16     *F1= form; 
     16    const double form = 1e-2 * contrast * sphere_volume(radius) * fq; 
     17    *F1 = form; 
    1718    *F2 = form*form; 
    1819} 
Note: See TracChangeset for help on using the changeset viewer.