Ignore:
Timestamp:
Apr 15, 2009 9:59:36 AM (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:
27c5c26
Parents:
b22748b
Message:

changed notation of units

File:
1 edited

Legend:

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

    r25a608f5 r0824909  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius_a        = 20.0 A 
    36          radius_b        = 400.0 A 
    37          contrast        = 3e-006 A-2 
    38          background      = 0.0 cm-1 
    39          axis_theta      = 1.57 rad 
    40          axis_phi        = 0.0 rad 
     35         radius_a        = 20.0 [Å] 
     36         radius_b        = 400.0 [Å] 
     37         contrast        = 3e-006 [1/Ų] 
     38         background      = 0.0 [1/cm] 
     39         axis_theta      = 1.57 [rad] 
     40         axis_phi        = 0.0 [rad] 
    4141 
    4242    """ 
     
    5252        self.name = "EllipsoidModel" 
    5353        ## Model description 
    54         self.description =""""P(q.alpha)= scale*f(q)^(2)+ bkg\n\ 
    55                 f(q)= 3*(scatter_sld- scatter_solvent)*V*[sin(q*r(Ra,Rb,alpha)) - q*r*cos(qr(Ra,Rb,alpha))] 
     54        self.description =""""P(q.alpha)= scale*f(q)^(2)+ bkg 
     55                f(q)= 3*(scatter_sld- scatter_solvent)*V 
     56                *[sin(q*r(Ra,Rb,alpha))- q*r*cos(qr(Ra,Rb,alpha))] 
    5657                /[qr(Ra,Rb,alpha)]^(3)" 
    57                 r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) + Ra^(2)*(cos(alpha))^(2)]^(1/2) 
     58                r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) 
     59                + Ra^(2)*(cos(alpha))^(2)]^(1/2) 
    5860                scatter_sld: scattering length density of the scatter 
    5961                solvent_sld: scattering length density of the solvent 
     
    6567        self.details = {} 
    6668        self.details['scale'] = ['', None, None] 
    67         self.details['radius_a'] = ['A', None, None] 
    68         self.details['radius_b'] = ['A', None, None] 
    69         self.details['contrast'] = ['A-2', None, None] 
    70         self.details['background'] = ['cm-1', None, None] 
    71         self.details['axis_theta'] = ['rad', None, None] 
    72         self.details['axis_phi'] = ['rad', None, None] 
     69        self.details['radius_a'] = ['[Å]', None, None] 
     70        self.details['radius_b'] = ['[Å]', None, None] 
     71        self.details['contrast'] = ['[1/Ų]', None, None] 
     72        self.details['background'] = ['[1/cm]', None, None] 
     73        self.details['axis_theta'] = ['[rad]', None, None] 
     74        self.details['axis_phi'] = ['[rad]', None, None] 
    7375 
    7476                ## fittable parameters 
Note: See TracChangeset for help on using the changeset viewer.