Changeset 348557a in sasmodels for sasmodels/models/hayter_msa.py


Ignore:
Timestamp:
Mar 16, 2016 11:41:50 AM (8 years ago)
Author:
richardh
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:
5041682
Parents:
91c5fdc
Message:

rkh new hayter_msa, new squarewell, unit test to lamellar

File:
1 moved

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hayter_msa.py

    rec2ca99 r348557a  
    4545from numpy import inf 
    4646 
    47 source = ["HayterMSAsq_kernel.c"] 
     47source = ["hayter_msa_kernel.c"] 
    4848 
    49 name = "HayterMSAsq" 
     49name = "hayter_msa" 
    5050title = "Hayter-Penfold MSA charged sphere interparticle S(Q) structure factor" 
    5151description = """\ 
     
    5757        parameters used in P(Q). 
    5858""" 
    59 single = False  # double precision only for now 
     59single = False  # double precision only! 
    6060 
    6161# pylint: disable=bad-whitespace, line-too-long 
     
    9999            effect_radius_pd_n=40) 
    100100# 
    101 # attempt to use same values as old sasview unit test 
     101# attempt to use same values as old sasview unit test at Q=.001 was 0.0712928,  
     102# then add lots new ones assuming values from new model are OK, need some low Q values to test the small Q Taylor expansion 
    102103tests = [ 
    103104    [{'scale': 1.0, 
     
    110111      'dielectconst': 78.0, 
    111112      'effect_radius_pd': 0}, 
    112      [0.0010], [0.0712928]] 
     113     [0.00001,0.0010,0.01,0.075], [0.0711646,0.0712928,0.0847006,1.07150]], 
     114    [{'scale': 1.0, 
     115      'background': 0.0, 
     116      'effect_radius': 20.75, 
     117      'charge': 19.0, 
     118      'volfraction': 0.0192, 
     119      'temperature': 298.0, 
     120      'saltconc': 0.05, 
     121      'dielectconst': 78.0, 
     122      'effect_radius_pd': 0.1, 
     123      'effect_radius_pd_n': 40}, 
     124     [0.00001,0.0010,0.01,0.075], [0.450272,0.450420,0.465116,1.039625]] 
    113125    ] 
    114126 
Note: See TracChangeset for help on using the changeset viewer.