Ignore:
Timestamp:
Aug 31, 2009 3:25:44 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

calculation of the effective radius are added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/HardsphereStructure.py

    r9bd69098 r5eb9154  
    1717 
    1818        WARNING: THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 
    19                  DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\Hardsphere.h 
     19                 DO NOT MODIFY THIS FILE, MODIFY ..\c_extensions\hardsphere.h 
    2020                 AND RE-RUN THE GENERATOR SCRIPT 
    2121 
     
    2828class HardsphereStructure(CHardsphereStructure, BaseComponent): 
    2929    """ Class that evaluates a HardsphereStructure model.  
    30         This file was auto-generated from ..\c_extensions\Hardsphere.h. 
     30        This file was auto-generated from ..\c_extensions\hardsphere.h. 
    3131        Refer to that file and the structure it contains 
    3232        for details of the model. 
    3333        List of default parameters: 
    34          radius          = 50.0 [A] 
     34         effect_radius   = 50.0 [A] 
    3535         volfraction     = 0.2  
    3636 
     
    5454                = 0     , r >= 2R 
    5555                 
    56                 R: radius of the Hardsphere particle 
     56                R: effective radius of the Hardsphere particle 
    5757                V:The volume fraction 
    5858                 
     
    6262                ## Parameter details [units, min, max] 
    6363        self.details = {} 
    64         self.details['radius'] = ['[A]', None, None] 
     64        self.details['effect_radius'] = ['[A]', None, None] 
    6565        self.details['volfraction'] = ['', None, None] 
    6666 
    6767                ## fittable parameters 
    68         self.fixed=['radius.width'] 
     68        self.fixed=['effect_radius.width'] 
    6969         
    7070        ## parameters with orientation 
     
    9898        return CHardsphereStructure.evalDistribition(self, x) 
    9999         
     100    def calculate_ER(self): 
     101        """ Calculate the effective radius for P(q)*S(q) 
     102            @param x: input q, or [q,phi] 
     103            @return: the value of the effective radius 
     104        """        
     105        return CHardsphereStructure.calculate_ER(self) 
     106         
    100107    def set_dispersion(self, parameter, dispersion): 
    101108        """ 
Note: See TracChangeset for help on using the changeset viewer.