Ignore:
Timestamp:
Sep 10, 2018 4:16:46 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:
d299327
Parents:
3f818b2
Message:

clean up effective radius functions; improve mono_gauss_coil accuracy; start moving VR into C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_shell_bicelle_elliptical_belt_rough.c

    rd277229 ree60aa7  
    3030effective_radius(int mode, double r_minor, double x_core, double thick_rim, double thick_face, double length) 
    3131{ 
    32     if (mode == 1) { 
     32    switch (mode) { 
     33    case 1: // equivalent sphere 
    3334        return radius_from_volume(r_minor, x_core, thick_rim, thick_face, length); 
    34     } else if (mode == 2) { 
     35    case 2: // outer rim average radius 
    3536        return 0.5*r_minor*(1.0 + x_core) + thick_rim; 
    36     } else if (mode == 3) { 
     37    case 3: // outer rim min radius 
    3738        return (x_core < 1.0 ? x_core*r_minor+thick_rim : r_minor+thick_rim); 
    38     } else if (mode == 4) { 
     39    case 4: // outer max radius 
    3940        return (x_core > 1.0 ? x_core*r_minor+thick_rim : r_minor+thick_rim); 
    40     } else if (mode ==5) { 
     41    case 5: // half outer thickness 
    4142        return 0.5*length + thick_face; 
    42     } else { 
     43    case 6: // half diagonal 
    4344        return radius_from_diagonal(r_minor,x_core,thick_rim,thick_face,length); 
    4445    } 
Note: See TracChangeset for help on using the changeset viewer.