Changeset e44432d in sasmodels for sasmodels/models/vesicle.c


Ignore:
Timestamp:
Oct 19, 2018 5:46:26 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:
be43e39
Parents:
2586ab72
Message:

support hollow models in structure factor calculations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/vesicle.c

    ree60aa7 re44432d  
    1 // TODO: interface to form_volume/shell_volume not yet settled 
    21static double 
    3 shell_volume(double *total, double radius, double thickness) 
     2shell_volume(double radius, double thickness) 
    43{ 
    5     //note that for the vesicle model, the volume is ONLY the shell volume 
    6     *total = M_4PI_3 * cube(radius+thickness); 
    7     return *total - M_4PI_3*cube(radius); 
     4    return M_4PI_3 * (cube(radius+thickness) - cube(radius)); 
    85} 
    96 
     
    118form_volume(double radius, double thickness) 
    129{ 
    13     //note that for the vesicle model, the volume is ONLY the shell volume 
    14     double total; 
    15     return shell_volume(&total, radius, thickness); 
     10    return M_4PI_3 * cube(radius+thickness); 
    1611} 
     12 
    1713 
    1814static double 
Note: See TracChangeset for help on using the changeset viewer.