Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fcc_paracrystal.py

    r925ad6e r69e1afc  
    76762D model computation. 
    7777 
    78 .. figure:: img/bcc_angle_definition.png 
     78.. figure:: img/parallelepiped_angle_definition.png 
    7979 
    80     Orientation of the crystal with respect to the scattering plane. 
     80    Orientation of the crystal with respect to the scattering plane, when  
     81    $\theta = \phi = 0$ the $c$ axis is along the beam direction (the $z$ axis). 
    8182 
    8283References 
     
    9091""" 
    9192 
    92 from numpy import inf 
     93from numpy import inf, pi 
    9394 
    9495name = "fcc_paracrystal" 
     
    110111              ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 
    111112              ["sld_solvent", "1e-6/Ang^2", 1, [-inf, inf], "sld", "Solvent scattering length density"], 
    112               ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 
    113               ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 
    114               ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"] 
     113              ["theta",       "degrees",    60,    [-360, 360], "orientation", "c axis to beam angle"], 
     114              ["phi",         "degrees",    60,    [-360, 360], "orientation", "rotation about beam"], 
     115              ["psi",         "degrees",    60,    [-360, 360], "orientation", "rotation about c axis"] 
    115116             ] 
    116117# pylint: enable=bad-whitespace, line-too-long 
     
    128129            psi_pd=15, psi_pd_n=0, 
    129130           ) 
     131# april 10 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 
     132q =4.*pi/220. 
     133tests = [ 
     134    [{ }, 
     135     [0.001, q, 0.215268], [0.275164706668, 5.7776842567, 0.00958167119232]], 
     136     [{}, (-0.047,-0.007), 238.103096286], 
     137     [{}, (0.053,0.063), 0.863609587796 ], 
     138] 
Note: See TracChangeset for help on using the changeset viewer.