Changeset 513efc5 in sasmodels for sasmodels/models/surface_fractal.py


Ignore:
Timestamp:
Jan 20, 2016 2:50:50 AM (8 years ago)
Author:
piotr
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:
7ed702f
Parents:
30b4ddf
Message:

Code review issues from PK addressed.

Added Taylor expansion utility function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/surface_fractal.py

    r30b4ddf r513efc5  
    2222.. math:: 
    2323 
    24     S(q) = \frac{\Gamma(5-D_S)\zeta^{5-D_S}}{\left[1+(q\zeta)^2\right]^{(5-D_S)/2}} 
     24    S(q) = \frac{\Gamma(5-D_S)\zeta^{5-D_S}}{\left[1+(q\zeta)^2 
     25    \right]^{(5-D_S)/2}} 
    2526    \frac{sin\left[(D_S - 5) tan^{-1}(q\zeta) \right]}{q} 
    2627 
     
    3334    V = \frac{4}{3}\pi R^3 
    3435 
    35 where $R$ is the radius of the building block, $D_S$ is the **surface** fractal dimension, 
    36 $\zeta$ is the cut-off length, $\rho_{solvent}$ is the scattering length density of the solvent, 
     36where $R$ is the radius of the building block, $D_S$ is the **surface** fractal 
     37dimension,$\zeta$ is the cut-off length, $\rho_{solvent}$ is the scattering 
     38length density of the solvent, 
    3739and $\rho_{particle}$ is the scattering length density of particles. 
    3840 
    3941.. note:: 
    4042    The surface fractal dimension $D_s$ is only valid if $1<surface\_dim<3$. 
    41     It is also only valid over a limited $q$ range (see the reference for details) 
     43    It is also only valid over a limited $q$ range (see the reference for 
     44    details) 
    4245 
    4346 
     
    7881 
    7982#             ["name", "units", default, [lower, upper], "type","description"], 
    80 parameters = [["radius",        "Ang", 10.0, [0, inf],   "", "Particle radius"], 
    81               ["surface_dim",   "",    2.0,  [0, inf],   "", "Surface fractal dimension"], 
    82               ["cutoff_length", "Ang", 500., [0.0, inf], "",  "Cut-off Length"], 
     83parameters = [["radius",        "Ang", 10.0, [0, inf],   "", 
     84               "Particle radius"], 
     85              ["surface_dim",   "",    2.0,  [0, inf],   "", 
     86               "Surface fractal dimension"], 
     87              ["cutoff_length", "Ang", 500., [0.0, inf], "", 
     88               "Cut-off Length"], 
    8389              ] 
    8490 
    8591 
    86 source = ["surface_fractal.c"] 
     92source = ["lib/J1c.c", "surface_fractal.c"] 
    8793 
    8894demo = dict(scale=1, background=0, 
Note: See TracChangeset for help on using the changeset viewer.