Changeset d760c0a in sasview
- Timestamp:
- Dec 7, 2011 6:14:18 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 916f5c0
- Parents:
- 500be82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/ReflAdvModel.py
r33aea7f rd760c0a 2 2 3 3 ############################################################################## 4 # 5 # 6 # 4 # This software was developed by the University of Tennessee as part of the 5 # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 6 # project funded by the US National Science Foundation. 7 7 # 8 # 9 # 10 # 8 # If you use DANSE applications to do scientific research that leads to 9 # publication, we ask that you acknowledge the use of the software with the 10 # following sentence: 11 11 # 12 # 12 # "This work benefited from DANSE software developed under NSF award DMR-0520547." 13 13 # 14 # 14 # copyright 2008, University of Tennessee 15 15 ############################################################################## 16 16 … … 20 20 21 21 :WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 22 DO NOT MODIFY THIS FILE, MODIFY .. \c_extensions\refl_adv.h22 DO NOT MODIFY THIS FILE, MODIFY ../c_extensions/refl_adv.h 23 23 AND RE-RUN THE GENERATOR SCRIPT 24 24 … … 37 37 """ 38 38 Class that evaluates a ReflAdvModel model. 39 This file was auto-generated from .. \c_extensions\refl_adv.h.39 This file was auto-generated from ../c_extensions/refl_adv.h. 40 40 Refer to that file and the structure it contains 41 41 for details of the model. … … 45 45 thick_inter0 = 50.0 [A] 46 46 func_inter0 = 0.0 47 sld_bottom0 = 2.07e-0 06 [1/A^(2)]48 sld_medium = 1e-0 06 [1/A^(2)]47 sld_bottom0 = 2.07e-06 [1/A^(2)] 48 sld_medium = 1e-06 [1/A^(2)] 49 49 background = 0.0 50 sld_flat1 = 4e-0 06 [1/A^(2)]51 sld_flat2 = 3.5e-0 06 [1/A^(2)]52 sld_flat3 = 4e-0 06 [1/A^(2)]53 sld_flat4 = 3.5e-0 06 [1/A^(2)]54 sld_flat5 = 4e-0 06 [1/A^(2)]55 sld_flat6 = 3.5e-0 06 [1/A^(2)]56 sld_flat7 = 4e-0 06 [1/A^(2)]57 sld_flat8 = 3.5e-0 06 [1/A^(2)]58 sld_flat9 = 4e-0 06 [1/A^(2)]59 sld_flat10 = 3.5e-0 06 [1/A^(2)]50 sld_flat1 = 4e-06 [1/A^(2)] 51 sld_flat2 = 3.5e-06 [1/A^(2)] 52 sld_flat3 = 4e-06 [1/A^(2)] 53 sld_flat4 = 3.5e-06 [1/A^(2)] 54 sld_flat5 = 4e-06 [1/A^(2)] 55 sld_flat6 = 3.5e-06 [1/A^(2)] 56 sld_flat7 = 4e-06 [1/A^(2)] 57 sld_flat8 = 3.5e-06 [1/A^(2)] 58 sld_flat9 = 4e-06 [1/A^(2)] 59 sld_flat10 = 3.5e-06 [1/A^(2)] 60 60 thick_inter1 = 50.0 [A] 61 61 thick_inter2 = 50.0 [A] … … 127 127 ## Model description 128 128 self.description ="""Calculate neutron reflectivity using the Parratt iterative formula 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 129 Parameters: 130 background:background 131 scale: scale factor 132 sld_bottom0: the SLD of the substrate 133 sld_medium: the SLD of the incident medium 134 or superstrate 135 sld_flatN: the SLD of the flat region of 136 the N'th layer 137 thick_flatN: the thickness of the flat 138 region of the N'th layer 139 func_interN: the function used to describe 140 the interface of the N'th layer 141 nu_interN: the coefficient for the func_interN 142 thick_interN: the thickness of the interface 143 of the N'th layer 144 Note: the layer number starts to increase 145 from the bottom (substrate) to the top.""" 146 146 147 147 ## Parameter details [units, min, max] … … 245 245 """ Return a identical copy of self """ 246 246 return self._clone(ReflAdvModel()) 247 247 248 248 249 249 def run(self, x=0.0):
Note: See TracChangeset
for help on using the changeset viewer.