Changeset 642046e in sasmodels


Ignore:
Timestamp:
Sep 25, 2018 10:08:49 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket_1156
Children:
2a39ca4
Parents:
0b906ea
Message:

set particle volume fraction according to lattice spacing rather than nearest-neighbour distance

Location:
sasmodels/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/bcc_paracrystal.c

    r6530963 r642046e  
    5959bcc_volume_fraction(double radius, double lattice_spacing) 
    6060{ 
    61     return 2.0*sphere_volume(sqrt(0.75)*radius/lattice_spacing); 
     61    return 2.0*sphere_volume(radius/lattice_spacing); 
    6262} 
    6363 
  • sasmodels/models/fcc_paracrystal.c

    r6530963 r642046e  
    3131fcc_volume_fraction(double radius, double lattice_spacing) 
    3232{ 
    33     return 4.0*sphere_volume(M_SQRT1_2*radius/lattice_spacing); 
     33    return 4.0*sphere_volume(radius/lattice_spacing); 
    3434} 
    3535 
Note: See TracChangeset for help on using the changeset viewer.