Changeset 5eb9154 in sasview for sansmodels/src/sans/models/SquareWellStructure.py
- Timestamp:
- Aug 31, 2009 5:25:44 PM (15 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:
- 5be36bb
- Parents:
- 572beba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/SquareWellStructure.py
r9bd69098 r5eb9154 17 17 18 18 WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 19 DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\ SquareWell.h19 DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\squarewell.h 20 20 AND RE-RUN THE GENERATOR SCRIPT 21 21 … … 28 28 class SquareWellStructure(CSquareWellStructure, BaseComponent): 29 29 """ Class that evaluates a SquareWellStructure model. 30 This file was auto-generated from ..\c_extensions\ SquareWell.h.30 This file was auto-generated from ..\c_extensions\squarewell.h. 31 31 Refer to that file and the structure it contains 32 32 for details of the model. 33 33 List of default parameters: 34 radius= 50.0 [A]34 effect_radius = 50.0 [A] 35 35 volfraction = 0.04 36 36 welldepth = 1.5 [kT] … … 57 57 = 0 , r >= 2Rw 58 58 59 R: radius (A)of the particle59 R: effective radius (A)of the particle 60 60 v: volume fraction 61 61 d: well depth … … 68 68 ## Parameter details [units, min, max] 69 69 self.details = {} 70 self.details[' radius'] = ['[A]', None, None]70 self.details['effect_radius'] = ['[A]', None, None] 71 71 self.details['volfraction'] = ['', None, None] 72 72 self.details['welldepth'] = ['[kT]', None, None] … … 74 74 75 75 ## fittable parameters 76 self.fixed=[' radius.width']76 self.fixed=['effect_radius.width'] 77 77 78 78 ## parameters with orientation … … 106 106 return CSquareWellStructure.evalDistribition(self, x) 107 107 108 def calculate_ER(self): 109 """ Calculate the effective radius for P(q)*S(q) 110 @param x: input q, or [q,phi] 111 @return: the value of the effective radius 112 """ 113 return CSquareWellStructure.calculate_ER(self) 114 108 115 def set_dispersion(self, parameter, dispersion): 109 116 """
Note: See TracChangeset
for help on using the changeset viewer.