Ignore:
Timestamp:
Oct 25, 2018 3:03:37 PM (5 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:
304c775
Parents:
149eb53
Message:

use 4/3 pi constant when computing R_eff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hollow_rectangular_prism.c

    re44432d r6d5601c  
    2727    switch (mode) { 
    2828    case 1: // equivalent sphere 
    29         return cbrt(0.75*cube(length_a)*b2a_ratio*c2a_ratio/M_PI); 
     29        return cbrt(cube(length_a)*b2a_ratio*c2a_ratio/M_4PI_3); 
    3030    case 2: // half length_a 
    3131        return 0.5 * length_a; 
Note: See TracChangeset for help on using the changeset viewer.