Ignore:
Timestamp:
Apr 16, 2009 4:37:39 PM (16 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:
fca9cbd9
Parents:
3fef0a8
Message:

unit symbol Angst. back to A and re-organized model descriptions

File:
1 edited

Legend:

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

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius          = 20.0 [Å] 
    36          length          = 400.0 [Å] 
    37          contrast        = 3e-006 [1/Ų] 
     35         radius          = 20.0 [A] 
     36         length          = 400.0 [A] 
     37         contrast        = 3e-006 [1/A²] 
    3838         background      = 0.0 [1/cm] 
    3939         cyl_theta       = 1.0 [rad] 
     
    5252        self.name = "CylinderModel" 
    5353        ## Model description 
    54         self.description ="""P(q,alpha)= scale/V*f(q)^(2)+bkg 
    55                 f(q)= 2*(scatter_sld - solvent_sld)*V 
    56                 *sin(qLcos(alpha/2))/[qLcos(alpha/2)] 
    57                 *J1(qRsin(alpha/2))/[qRsin(alpha)] 
     54        self.description =""" f(q)= 2*(scatter_sld - solvent_sld)*V*sin(qLcos(alpha/2)) 
     55                /[qLcos(alpha/2)]*J1(qRsin(alpha/2))/[qRsin(alpha)] 
     56                 
     57                P(q,alpha)= scale/V*f(q)^(2)+bkg 
    5858                V: Volume of the cylinder 
    5959                R: Radius of the cylinder 
    6060                L: Length of the cylinder 
    6161                J1: The bessel function 
    62                 alpha: angle betweenthe axis of the cylinder 
    63                 and the q-vector for 1D:the ouput is 
    64                 P(q)=scale/V*integral from pi/2 to zero of 
     62                alpha: angle betweenthe axis of the 
     63                cylinder and the q-vector for 1D 
     64                :the ouput is P(q)=scale/V*integral 
     65                from pi/2 to zero of... 
    6566                f(q)^(2)*sin(alpha)*dalpha+ bkg""" 
    6667        
     
    6869        self.details = {} 
    6970        self.details['scale'] = ['', None, None] 
    70         self.details['radius'] = ['[Å]', None, None] 
    71         self.details['length'] = ['[Å]', None, None] 
    72         self.details['contrast'] = ['[1/Ų]', None, None] 
     71        self.details['radius'] = ['[A]', None, None] 
     72        self.details['length'] = ['[A]', None, None] 
     73        self.details['contrast'] = ['[1/A²]', None, None] 
    7374        self.details['background'] = ['[1/cm]', None, None] 
    7475        self.details['cyl_theta'] = ['[rad]', None, None] 
Note: See TracChangeset for help on using the changeset viewer.