Changeset 2d81cfe in sasmodels for sasmodels/models/sc_paracrystal.py


Ignore:
Timestamp:
Nov 29, 2017 11:13:23 AM (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:
237b800f
Parents:
a839b22
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/sc_paracrystal.py

    reda8b30 r2d81cfe  
    2323equations (13)-(15) from the 1987 paper for Z1, Z2, and Z3. 
    2424 
    25 The lattice correction (the occupied volume of the lattice) for a simple 
    26 cubic structure of particles of radius *R* and nearest neighbor separation *D* is 
     25The lattice correction (the occupied volume of the lattice) for a simple cubic 
     26structure of particles of radius *R* and nearest neighbor separation *D* is 
    2727 
    2828.. math:: 
     
    7373    carried out with a high density of points to properly capture the sharp 
    7474    peaks of the paracrystalline scattering. 
    75     So be warned that the calculation is slow. Fitting of any experimental data  
    76     must be resolution smeared for any meaningful fit. This makes a triple integral 
    77     which may be very slow. 
     75    So be warned that the calculation is slow. Fitting of any experimental data 
     76    must be resolution smeared for any meaningful fit. This makes a triple 
     77    integral which may be very slow. 
    7878 
    7979The 2D (Anisotropic model) is based on the reference below where *I(q)* is 
    8080approximated for 1d scattering. Thus the scattering pattern for 2D may not 
    81 be accurate particularly at low $q$. For general details of the calculation  
     81be accurate particularly at low $q$. For general details of the calculation 
    8282and angular dispersions for oriented particles see :ref:`orientation` . 
    8383Note that we are not responsible for any incorrectness of the 
     
    9696Hideki Matsuoka et. al. *Physical Review B,* 41 (1990) 3854 -3856 
    9797(Corrections to FCC and BCC lattice structure calculation) 
    98  
    9998""" 
    10099 
     100import numpy as np 
    101101from numpy import inf 
    102102 
     
    140140 
    141141def random(): 
    142     import numpy as np 
    143142    # copied from bcc_paracrystal 
    144143    radius = 10**np.random.uniform(1.3, 4) 
Note: See TracChangeset for help on using the changeset viewer.