Changeset 3e428ec in sasmodels for sasmodels/models/fcc.py
- Timestamp:
- Mar 9, 2015 1:14:03 PM (9 years ago)
- 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:
- ddfe69c
- Parents:
- 485aee2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fcc.py
r3c56da87 r3e428ec 98 98 category = "shape:paracrystal" 99 99 100 parameters = [ 101 # [ "name", "units", default, [lower, upper], "type","description" ], 102 [ "dnn", "Ang", 220, [-inf,inf],"","Nearest neighbour distance"], 103 [ "d_factor", "", 0.06,[-inf,inf],"","Paracrystal distortion factor" ], 104 [ "radius", "Ang", 40, [0, inf], "volume","Particle radius" ], 105 [ "sld", "1e-6/Ang^2", 4, [-inf,inf], "", "Particle scattering length density" ], 106 [ "solvent_sld", "1e-6/Ang^2", 1, [-inf,inf], "","Solvent scattering length density" ], 107 [ "theta", "degrees", 60, [-inf, inf], "orientation","In plane angle" ], 108 [ "phi", "degrees", 60, [-inf, inf], "orientation","Out of plane angle" ], 109 [ "psi", "degrees", 60, [-inf,inf], "orientation","Out of plane angle"] 110 ] 100 # ["name", "units", default, [lower, upper], "type","description"], 101 parameters = [["dnn", "Ang", 220, [-inf, inf], "", "Nearest neighbour distance"], 102 ["d_factor", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 103 ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 104 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "", "Particle scattering length density"], 105 ["solvent_sld", "1e-6/Ang^2", 1, [-inf, inf], "", "Solvent scattering length density"], 106 ["theta", "degrees", 60, [-inf, inf], "orientation", "In plane angle"], 107 ["phi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"], 108 ["psi", "degrees", 60, [-inf, inf], "orientation", "Out of plane angle"] 109 ] 111 110 112 source = [ "lib/J1.c", "lib/gauss150.c", "fcc.c"]111 source = ["lib/J1.c", "lib/gauss150.c", "fcc.c"] 113 112 114 113 # parameters for demo 115 demo = dict( 116 scale=1, background=0, 117 dnn=220, d_factor=0.06, sld=4, solvent_sld=1, 118 radius=40, 119 theta=60, phi=60, psi=60, 120 radius_pd=.2, radius_pd_n=0.2, 121 theta_pd=15, theta_pd_n=0, 122 phi_pd=15, phi_pd_n=0, 123 psi_pd=15, psi_pd_n=0, 124 ) 114 demo = dict(scale=1, background=0, 115 dnn=220, d_factor=0.06, sld=4, solvent_sld=1, 116 radius=40, 117 theta=60, phi=60, psi=60, 118 radius_pd=.2, radius_pd_n=0.2, 119 theta_pd=15, theta_pd_n=0, 120 phi_pd=15, phi_pd_n=0, 121 psi_pd=15, psi_pd_n=0, 122 ) 125 123 126 124 # For testing against the old sasview models, include the converted parameter 127 125 # names and the target sasview model name. 128 oldname ='FCCrystalModel'129 oldpars =dict(sld='sldSph', solvent_sld='sldSolv')126 oldname = 'FCCrystalModel' 127 oldpars = dict(sld='sldSph', solvent_sld='sldSolv')
Note: See TracChangeset
for help on using the changeset viewer.