Changeset 68532f3 in sasmodels for _sources/model/lamellarCaille.txt
- Timestamp:
- Nov 1, 2015 2:10:22 PM (8 years ago)
- Branches:
- gh-pages
- Children:
- 4a9a316
- Parents:
- d1fe925
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
_sources/model/lamellarCaille.txt
rd1fe925 r68532f3 1 # Note: model title and parameter table are inserted automatically 2 r""" 1 .. _lamellarPS: 2 3 Lamellarps 4 ======================================================= 5 6 Random lamellar sheet with Caille structure factor 7 8 ================ ================================= ============ ============= 9 Parameter Description Units Default value 10 ================ ================================= ============ ============= 11 scale Source intensity None 1 12 background Source background |cm^-1| 0 13 thickness sheet thickness |Ang| 30 14 Nlayers Number of layers None 20 15 spacing d-spacing of Caille S(Q) |Ang| 400 16 Caille_parameter Caille parameter |Ang^-2| 0.1 17 sld layer scattering length density |1e-6Ang^-2| 6.3 18 solvent_sld Solvent scattering length density |1e-6Ang^-2| 1 19 ================ ================================= ============ ============= 20 21 The returned value is scaled to units of |cm^-1|. 22 23 3 24 This model provides the scattering intensity, $I(q) = P(q) S(q)$, for a 4 25 lamellar phase where a random distribution in solution are assumed. … … 69 90 70 91 also in J. Phys. Chem. B, 105, (2001) 11081-11088 71 """72 from numpy import inf73 92 74 name = "lamellarPS"75 title = "Random lamellar sheet with Caille structure factor"76 description = """\77 [Random lamellar phase with Caille structure factor]78 randomly oriented stacks of infinite sheets79 with Caille S(Q), having polydisperse spacing.80 sld = sheet scattering length density81 sld_solvent = solvent scattering length density82 background = incoherent background83 scale = scale factor84 """85 category = "shape:lamellae"86 87 # ["name", "units", default, [lower, upper], "type","description"],88 parameters = [["thickness", "Ang", 30.0, [0, inf], "volume", "sheet thickness"],89 ["Nlayers", "", 20, [0, inf], "", "Number of layers"],90 ["spacing", "Ang", 400., [0.0,inf], "volume", "d-spacing of Caille S(Q)"],91 ["Caille_parameter", "1/Ang^2", 0.1, [0.0,0.8], "", "Caille parameter"],92 ["sld", "1e-6/Ang^2", 6.3, [-inf,inf], "",93 "layer scattering length density"],94 ["solvent_sld", "1e-6/Ang^2", 1.0, [-inf,inf], "",95 "Solvent scattering length density"],96 ]97 98 source = ["lamellarCaille_kernel.c"]99 100 # No volume normalization despite having a volume parameter101 # This should perhaps be volume normalized?102 form_volume = """103 return 1.0;104 """105 106 Iqxy = """107 return Iq(sqrt(qx*qx+qy*qy), IQ_PARAMETERS);108 """109 110 # ER defaults to 0.0111 # VR defaults to 1.0112 113 demo = dict(scale=1, background=0,114 thickness=67.,Nlayers=3.75,spacing=200.,115 Caille_parameter=0.268,sld=1.0, solvent_sld=6.34,116 thickness_pd= 0.1, thickness_pd_n=100,117 spacing_pd= 0.05, spacing_pd_n=40)118 119 oldname = 'LamellarPSModel'120 oldpars = dict(thickness='delta', Nlayers='N_plates', Caille_parameter='caille',121 sld='sld_bi',solvent_sld='sld_sol')
Note: See TracChangeset
for help on using the changeset viewer.