Changeset 40a87fa in sasmodels for sasmodels/models/raspberry.py


Ignore:
Timestamp:
Aug 8, 2016 9:24:11 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/raspberry.py

    r42356c8 r40a87fa  
    2222.. math:: 
    2323 
    24     S(q) = \frac{sin(qR_1)}{qR_1}\frac{sin(qR_2)}{qR_2}\frac{sin(qr)}{qr} 
     24    S(q) = \frac{\sin(qR_1)}{qR_1}\frac{\sin(qR_2)}{qR_2}\frac{\sin(qr)}{qr} 
    2525 
    2626In this case, the large droplet and small particles are solid spheres rather 
     
    3131.. math:: 
    3232 
    33     \Psi_L = \int_0^{R_L}(4\pi R^2_L)\frac{sin(qR_L)}{qR_L}dR_L =  
    34     \frac{3[sin(qR_L)-qR_Lcos(qR_L)]}{(qR_L)^2} 
     33    \Psi_L = \int_0^{R_L}(4\pi R^2_L)\frac{\sin(qR_L)}{qR_L}dR_L = 
     34    \frac{3[\sin(qR_L)-qR_L\cos(qR_L)]}{(qR_L)^2} 
    3535 
    3636.. math:: 
    3737 
    38     \Psi_S = \int_0^{R_S}(4\pi R^2_S)\frac{sin(qR_S)}{qR_S}dR_S = 
    39     \frac{3[sin(qR_S)-qR_Lcos(qR_S)]}{(qR_S)^2} 
     38    \Psi_S = \int_0^{R_S}(4\pi R^2_S)\frac{\sin(qR_S)}{qR_S}dR_S = 
     39    \frac{3[\sin(qR_S)-qR_L\cos(qR_S)]}{(qR_S)^2} 
    4040 
    4141The cross term between the large droplet and small particles is given by: 
    4242 
    4343.. math:: 
    44     S_{LS} = \Psi_L\Psi_S\frac{sin(q(R_L+\delta R_S))}{q(R_L+\delta\ R_S)} 
     44    S_{LS} = \Psi_L\Psi_S\frac{\sin(q(R_L+\delta R_S))}{q(R_L+\delta\ R_S)} 
    4545 
    4646and the self term between small particles is given by: 
    4747 
    4848.. math:: 
    49     S_{SS} = \Psi_S^2\biggl[\frac{sin(q(R_L+\delta R_S))}{q(R_L+\delta\ R_S)} 
     49    S_{SS} = \Psi_S^2\biggl[\frac{\sin(q(R_L+\delta R_S))}{q(R_L+\delta\ R_S)} 
    5050    \biggr]^2 
    5151 
     
    5454.. math:: 
    5555 
    56     N_p = \frac{\phi_S\phi_{surface}V_L}{\phi_L V_S} 
     56    N_p = \frac{\phi_S\phi_\text{surface}V_L}{\phi_L V_S} 
    5757 
    5858where $\phi_S$ is the volume fraction of small particles in the sample, 
    59 $\phi_{surface}$ is the fraction of the small particles that are adsorbed to 
    60 the large droplets, $\phi_L$ is the volume fraction of large droplets in the 
     59$\phi_\text{surface}$ is the fraction of the small particles that are adsorbed 
     60to the large droplets, $\phi_L$ is the volume fraction of large droplets in the 
    6161sample, and $V_S$ and $V_L$ are the volumes of individual small particles and 
    6262large droplets respectively. 
     
    6464The form factor of the entire complex can now be calculated including the excess 
    6565scattering length densities of the components $\Delta\rho_L$ and $\Delta\rho_S$, 
    66 where $\Delta\rho_x = |\rho_x-\rho_{solvent}|$ : 
     66where $\Delta\rho_x = \left|\rho_x-\rho_\text{solvent}\right|$ : 
    6767 
    6868.. math:: 
     
    8383 
    8484.. math:: 
    85     I(Q) = I_{LS}(Q) + I_S(Q) = (\phi_L(\Delta\rho_L)^2V_L +  
    86             \phi_S\phi_{surface}N_p(\Delta\rho_S)^2V_S)P_{LS} 
    87             + \phi_S(1-\phi_{surface})(\Delta\rho_S)^2V_S\Psi_S^2 
     85    I(Q) = I_{LS}(Q) + I_S(Q) = (\phi_L(\Delta\rho_L)^2V_L + 
     86            \phi_S\phi_\text{surface}N_p(\Delta\rho_S)^2V_S)P_{LS} 
     87            + \phi_S(1-\phi_\text{surface})(\Delta\rho_S)^2V_S\Psi_S^2 
    8888 
    8989A useful parameter to extract is the fraction of the surface area of the large 
     
    9292 
    9393.. math:: 
    94     \chi = \frac{4\phi_L\phi_{surface}(R_L+\delta R_S)}{\phi_LR_S} 
     94    \chi = \frac{4\phi_L\phi_\text{surface}(R_L+\delta R_S)}{\phi_LR_S} 
    9595 
    9696 
     
    109109""" 
    110110 
    111 from numpy import pi, inf 
     111from numpy import inf 
    112112 
    113113name = "raspberry" 
Note: See TracChangeset for help on using the changeset viewer.