Changeset 1ed3834 in sasview


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

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

Location:
sansmodels/src/sans/models
Files:
29 edited

Legend:

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

    r0824909 r1ed3834  
    1616         
    1717        F(x) = K*1/(4*pi*Lb*(alpha)^(2))*(q^(2)+k2)/(1+(r02)^(2))*(q^(2)+k2)\ 
    18                        *(q^(2)-(12*h*C/b^(2))) 
     18                       *(q^(2)-(12*h*C/b^(2)))  
    1919         
    2020        The model has Eight parameters:  
     
    4040        F(x) = K*1/(4*pi*Lb*(alpha)^(2))*(q^(2)+k^(2))/(1+(r02)^(2)) 
    4141            *(q^(2)+k^(2))*(q^(2)-(12*h*C/b^(2)))+bkd 
     42                 
    4243        The model has Eight parameters:  
    4344        K        =  Constrast factor of the polymer 
     
    6566        self.details = {} 
    6667        self.details['k']    = ['[barns]', None, None] 
    67         self.details['lb'] = ['[Å]', None, None] 
    68         self.details['h']   = ['[1/ų]', None, None] 
    69         self.details['b']    = ['[Å]', None, None] 
     68        self.details['lb'] = ['[A]', None, None] 
     69        self.details['h']   = ['[1/A³]', None, None] 
     70        self.details['b']    = ['[A]', None, None] 
    7071        self.details['cs'] = ['[mol/L]', None, None] 
    7172        self.details['alpha']   = ['', None, None] 
  • sansmodels/src/sans/models/CoreShellCylinderModel.py

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius          = 20.0 [Å] 
    36          thickness       = 10.0 [Å] 
    37          length          = 400.0 [Å] 
    38          core_sld        = 1e-006 [1/Ų] 
    39          shell_sld       = 4e-006 [1/Ų] 
    40          solvent_sld     = 1e-006 [1/Ų] 
     35         radius          = 20.0 [A] 
     36         thickness       = 10.0 [A] 
     37         length          = 400.0 [A] 
     38         core_sld        = 1e-006 [1/A²] 
     39         shell_sld       = 4e-006 [1/A²] 
     40         solvent_sld     = 1e-006 [1/A²] 
    4141         background      = 0.0 [1/cm] 
    4242         axis_theta      = 1.57 [rad] 
     
    5555        self.name = "CoreShellCylinderModel" 
    5656        ## Model description 
    57         self.description ="""P(q,alpha)= scale/Vs*f(q)^(2) + bkg  Where:\n\ 
    58                 f(q)= 2(core_sld- solvant_sld)* Vc*sin[qLcos(alpha/2)]/\n\ 
    59                 [qLcos(alpha/2)]*J1(qRsin(alpha))/[qRsin(alpha)] +\n 
    60                 2(shell_sld-solvent_sld)*Vs 
    61                 *sin[q(L+T)cos(alpha/2)]/[[q(L+T)cos(alpha/2)] 
    62                 *J1(q(R+T)sin(alpha))/q(R+T)sin(alpha)] 
    63                 alpha:is the angle between the axis of the cylinder 
    64                 and the q-vector 
     57        self.description ="""P(q,alpha)= scale/Vs*f(q)^(2) + bkg,  where: f(q)= 2(core_sld 
     58                - solvant_sld)* Vc*sin[qLcos(alpha/2)] 
     59                /[qLcos(alpha/2)]*J1(qRsin(alpha)) 
     60                /[qRsin(alpha)]+2(shell_sld-solvent_sld) 
     61                *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) 
     62                *cos(alpha/2)]*J1(q(R+T)sin(alpha)) 
     63                /q(R+T)sin(alpha)] 
     64                 
     65                alpha:is the angle between the axis of 
     66                the cylinder and the q-vector 
    6567                Vs: the volume of the outer shell 
    6668                Vc: the volume of the core 
    6769                L: the length of the core 
    68                 shell_sld: the scattering length density of the shell 
    69                 solvent_sld: the scattering length density of the solvent 
     70                shell_sld: the scattering length density 
     71                of the shell 
     72                solvent_sld: the scattering length density 
     73                of the solvent 
    7074                bkg: the background 
    7175                T: the thickness 
     
    7983        self.details = {} 
    8084        self.details['scale'] = ['', None, None] 
    81         self.details['radius'] = ['[Å]', None, None] 
    82         self.details['thickness'] = ['[Å]', None, None] 
    83         self.details['length'] = ['[Å]', None, None] 
    84         self.details['core_sld'] = ['[1/Ų]', None, None] 
    85         self.details['shell_sld'] = ['[1/Ų]', None, None] 
    86         self.details['solvent_sld'] = ['[1/Ų]', None, None] 
     85        self.details['radius'] = ['[A]', None, None] 
     86        self.details['thickness'] = ['[A]', None, None] 
     87        self.details['length'] = ['[A]', None, None] 
     88        self.details['core_sld'] = ['[1/A²]', None, None] 
     89        self.details['shell_sld'] = ['[1/A²]', None, None] 
     90        self.details['solvent_sld'] = ['[1/A²]', None, None] 
    8791        self.details['background'] = ['[1/cm]', None, None] 
    8892        self.details['axis_theta'] = ['[rad]', None, None] 
  • sansmodels/src/sans/models/CoreShellModel.py

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius          = 60.0 [Å] 
    36          thickness       = 10.0 [Å] 
    37          core_sld        = 1e-006 [1/Ų] 
    38          shell_sld       = 2e-006 [1/Ų] 
    39          solvent_sld     = 3e-006 [1/Ų] 
     35         radius          = 60.0 [A] 
     36         thickness       = 10.0 [A] 
     37         core_sld        = 1e-006 [1/A²] 
     38         shell_sld       = 2e-006 [1/A²] 
     39         solvent_sld     = 3e-006 [1/A²] 
    4040         background      = 0.0 [1/cm] 
    4141 
     
    5252        self.name = "CoreShellModel" 
    5353        ## Model description 
    54         self.description =""" Form factor for a monodisperse spherical particle with 
    55                 particle with a core-shell structure: 
     54        self.description ="""Form factor for a monodisperse spherical particle with particle 
     55                with a core-shell structure: 
     56                 
    5657                The form factor is normalized by the 
    5758                total particle volume. 
    5859                 
    59                 radius: core radius 
    60                 thickness: shell thickness 
     60                radius: core radius, thickness: shell thickness 
    6161                 
    6262                Ref: Guinier, A. and G. Fournet, 
     
    6666        self.details = {} 
    6767        self.details['scale'] = ['', None, None] 
    68         self.details['radius'] = ['[Å]', None, None] 
    69         self.details['thickness'] = ['[Å]', None, None] 
    70         self.details['core_sld'] = ['[1/Ų]', None, None] 
    71         self.details['shell_sld'] = ['[1/Ų]', None, None] 
    72         self.details['solvent_sld'] = ['[1/Ų]', None, None] 
     68        self.details['radius'] = ['[A]', None, None] 
     69        self.details['thickness'] = ['[A]', None, None] 
     70        self.details['core_sld'] = ['[1/A²]', None, None] 
     71        self.details['shell_sld'] = ['[1/A²]', None, None] 
     72        self.details['solvent_sld'] = ['[1/A²]', None, None] 
    7373        self.details['background'] = ['[1/cm]', None, None] 
    7474 
  • 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] 
  • sansmodels/src/sans/models/DABModel.py

    r0824909 r1ed3834  
    4343        ## Parameter details [units, min, max] 
    4444        self.details = {} 
    45         self.details['length']            = ['[Å]', None, None] 
     45        self.details['length']            = ['[A]', None, None] 
    4646        self.details['scale']             = ['', None, None] 
    4747        self.details['background']        = ['[1/cm]', None, None] 
  • sansmodels/src/sans/models/DebyeModel.py

    r0824909 r1ed3834  
    3535        F(x) = 2( exp(-x) + x - 1 )/x**2 
    3636        with x = (q*R_g)**2 
     37         
    3738        The model has three parameters:  
    3839        Rg     =  radius of gyration 
     
    4849        ## Parameter details [units, min, max] 
    4950        self.details = {} 
    50         self.details['rg']         = ['[Å]', None, None] 
     51        self.details['rg']         = ['[A]', None, None] 
    5152        self.details['scale']      = ['', None, None] 
    5253        self.details['background'] = ['[1/cm]', None, None] 
  • sansmodels/src/sans/models/EllipsoidModel.py

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius_a        = 20.0 [Å] 
    36          radius_b        = 400.0 [Å] 
    37          contrast        = 3e-006 [1/Ų] 
     35         radius_a        = 20.0 [A] 
     36         radius_b        = 400.0 [A] 
     37         contrast        = 3e-006 [1/A²] 
    3838         background      = 0.0 [1/cm] 
    3939         axis_theta      = 1.57 [rad] 
     
    5252        self.name = "EllipsoidModel" 
    5353        ## Model description 
    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))] 
     54        self.description =""""P(q.alpha)= scale*f(q)^(2)+ bkg, where f(q)= 3*(scatter_sld 
     55                - scatter_solvent)*V*[sin(q*r(Ra,Rb,alpha)) 
     56                -q*r*cos(qr(Ra,Rb,alpha))] 
    5757                /[qr(Ra,Rb,alpha)]^(3)" 
     58                 
    5859                r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) 
    5960                + Ra^(2)*(cos(alpha))^(2)]^(1/2) 
    60                 scatter_sld: scattering length density of the scatter 
    61                 solvent_sld: scattering length density of the solvent 
     61                 
     62                scatter_sld: SLD of the scatter 
     63                solvent_sld: SLD of the solvent 
     64                contrast: SLD difference between scatter 
     65                and solvent 
    6266                V: volune of the Eliipsoid 
    63                 Ra: radius along the rotation axis of the Ellipsoid 
    64                 Rb: radius perpendicular to the rotation axis of the ellipsoid""" 
     67                Ra: radius along the rotation axis 
     68                of the Ellipsoid 
     69                Rb: radius perpendicular to the 
     70                rotation axis of the ellipsoid""" 
    6571        
    6672                ## Parameter details [units, min, max] 
    6773        self.details = {} 
    6874        self.details['scale'] = ['', None, None] 
    69         self.details['radius_a'] = ['[Å]', None, None] 
    70         self.details['radius_b'] = ['[Å]', None, None] 
    71         self.details['contrast'] = ['[1/Ų]', None, None] 
     75        self.details['radius_a'] = ['[A]', None, None] 
     76        self.details['radius_b'] = ['[A]', None, None] 
     77        self.details['contrast'] = ['[1/A²]', None, None] 
    7278        self.details['background'] = ['[1/cm]', None, None] 
    7379        self.details['axis_theta'] = ['[rad]', None, None] 
  • sansmodels/src/sans/models/EllipticalCylinderModel.py

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          r_minor         = 20.0 [Å] 
     35         r_minor         = 20.0 [A] 
    3636         r_ratio         = 1.5  
    37          length          = 400.0 [Å] 
    38          contrast        = 3e-006 [1/Ų] 
     37         length          = 400.0 [A] 
     38         contrast        = 3e-006 [1/A²] 
    3939         background      = 0.0 [1/cm] 
    4040         cyl_theta       = 1.57 [rad] 
     
    5959        self.details = {} 
    6060        self.details['scale'] = ['', None, None] 
    61         self.details['r_minor'] = ['[Å]', None, None] 
     61        self.details['r_minor'] = ['[A]', None, None] 
    6262        self.details['r_ratio'] = ['', None, None] 
    63         self.details['length'] = ['[Å]', None, None] 
    64         self.details['contrast'] = ['[1/Ų]', None, None] 
     63        self.details['length'] = ['[A]', None, None] 
     64        self.details['contrast'] = ['[1/A²]', None, None] 
    6565        self.details['background'] = ['[1/cm]', None, None] 
    6666        self.details['cyl_theta'] = ['[rad]', None, None] 
  • sansmodels/src/sans/models/FractalModel.py

    r0824909 r1ed3834  
    3737        self.description=""" 
    3838        I(x)= P(x)*S(x) + bkd 
    39         p(x)= scale* V^(2)*delta^(2)* F(x*Radius)^(2) 
    40         F(x) = 3*[sin(x)-xcos(x)]/x**3 
     39         
     40        p(x)= scale* V^(2)*delta^(2)* F(x*radius)^(2) 
     41        F(x) = 3*[sin(x)-x cos(x)]/x**3 
     42         
    4143        The model has Seven parameters:  
    4244        scale        =  Volume fraction 
     
    6264        self.details = {} 
    6365        self.details['scale']       = ['',     None, None] 
    64         self.details['radius']      = ['[Å]',    None, None] 
     66        self.details['radius']      = ['[A]',    None, None] 
    6567        self.details['fractal_dim'] = ['',       0,  None] 
    66         self.details['corr_length'] = ['[Å]',    None, None] 
    67         self.details['block_sld']   = ['[1/Ų]',  None, None] 
    68         self.details['solvent_sld'] = ['[1/Ų]',  None, None] 
     68        self.details['corr_length'] = ['[A]',    None, None] 
     69        self.details['block_sld']   = ['[1/A²]',  None, None] 
     70        self.details['solvent_sld'] = ['[1/A²]',  None, None] 
    6971        self.details['background']  = ['[1/cm]', None, None] 
    7072        
  • sansmodels/src/sans/models/GuinierModel.py

    r0824909 r1ed3834  
    2828        ## Name of the model 
    2929        self.name = "Guinier" 
    30         self.description=" I(q) = I_0 exp ( - R_g^2 q^2 / 3.0 )\ 
    31                         List of default parameters:\ 
    32                         I_0 = Scale\ 
    33                         R_g = Radius of gyration" 
     30        self.description=""" I(q) = I_0 exp ( - R_g^2 q^2 / 3.0 ) 
     31         
     32                        List of default parameters: 
     33                        I_0 = Scale 
     34                        R_g = Radius of gyration""" 
    3435        ## Define parameters 
    3536        self.params = {} 
     
    4041        self.details = {} 
    4142        self.details['scale'] = ['[1/cm]', None, None] 
    42         self.details['rg']    = ['[Å]', None, None] 
     43        self.details['rg']    = ['[A]', None, None] 
    4344        #list of parameter that cannot be fitted 
    4445        self.fixed= []   
  • sansmodels/src/sans/models/HardsphereStructure.py

    r0824909 r1ed3834  
    3232        for details of the model. 
    3333        List of default parameters: 
    34          radius          = 50.0 [Å] 
     34         radius          = 50.0 [A] 
    3535         volfraction     = 0.2  
    3636 
     
    4747        self.name = "HardsphereStructure" 
    4848        ## Model description 
    49         self.description ="""Structure factor for interacting particles: 
     49        self.description ="""Structure factor for interacting particles:                   . 
    5050                 
    5151                The interparticle potential is 
     
    5757                V:The volume fraction 
    5858                 
    59                 Ref: Percus., J. K.,etc., J. Phy. Rev. 
    60                 1958, 110, 1.""" 
     59                Ref: Percus., J. K.,etc., J. Phy. 
     60                Rev. 1958, 110, 1.""" 
    6161        
    6262                ## Parameter details [units, min, max] 
    6363        self.details = {} 
    64         self.details['radius'] = ['[Å]', None, None] 
     64        self.details['radius'] = ['[A]', None, None] 
    6565        self.details['volfraction'] = ['', None, None] 
    6666 
  • sansmodels/src/sans/models/HayterMSAStructure.py

    r0824909 r1ed3834  
    3232        for details of the model. 
    3333        List of default parameters: 
    34          radius          = 20.75 [Å] 
     34         radius          = 20.75 [A] 
    3535         charge          = 19.0  
    3636         volfraction     = 0.0192  
     
    5151        self.name = "HayterMSAStructure" 
    5252        ## Model description 
    53         self.description ="""To calculate the structure factor (the Fourier transform 
    54                 of the pair correlation function g(r)) for 
    55                 a system of charged, spheroidal objects in 
    56                 a dielectric medium. When combined with an 
    57                 appropriate form factor, this allows 
    58                 for inclusion of the interparticle 
    59                 interference effects due to screened coulomb 
    60                 repulsion between charged particles. 
    61                 (note: charge > 0 required.) 
     53        self.description ="""To calculate the structure factor (the Fourier transform of the 
     54                pair correlation function g(r)) for a system of 
     55                charged, spheroidal objects in a dielectric 
     56                medium. 
     57                When combined with an appropriate form 
     58                factor, this allows for inclusion of 
     59                the interparticle interference effects 
     60                due to screened coulomb repulsion between 
     61                charged particles. 
     62                (Note: charge > 0 required.) 
    6263                 
    6364                Ref: JP Hansen and JB Hayter, Molecular 
     
    6768                ## Parameter details [units, min, max] 
    6869        self.details = {} 
    69         self.details['radius'] = ['[Å]', None, None] 
     70        self.details['radius'] = ['[A]', None, None] 
    7071        self.details['charge'] = ['', None, None] 
    7172        self.details['volfraction'] = ['', None, None] 
  • sansmodels/src/sans/models/LorentzModel.py

    r0824909 r1ed3834  
    2929        ## Name of the model 
    3030        self.name = "Lorentz" 
    31         self.description="Lorentz (Ornstein-Zernicke) model.\n\ 
    32         F(x) = scale/( 1 + (x*L)^2 ) + bkd \nThe model has three parameters:\n \ 
     31        self.description="""Lorentz (Ornstein-Zernicke) model. 
     32        F(x) = scale/( 1 + (x*L)^2 ) + bkd  
     33         
     34        The model has three parameters:       
    3335        L     =  screen Length\n\ 
    3436        scale  =  scale factor\n\ 
    35         bkd    =  incoherent background" 
     37        bkd    =  incoherent background""" 
    3638        ## Define parameters 
    3739        self.params = {} 
     
    4244        ## Parameter details [units, min, max] 
    4345        self.details = {} 
    44         self.details['length']     = ['[Å]', None, None] 
     46        self.details['length']     = ['[A]', None, None] 
    4547        self.details['scale']      = ['', None, None] 
    4648        self.details['background'] = ['[1/cm]', None, None] 
  • sansmodels/src/sans/models/PorodModel.py

    r0824909 r1ed3834  
    3333        ## Parameter details [units, min, max] 
    3434        self.details = {} 
    35         self.details['scale']      = ['[1/Å^4]', None, None] 
     35        self.details['scale']      = ['[1/(cm A^4)]', None, None] 
    3636        self.details['background'] = ['[1/cm]', None, None] 
    3737        #list of parameter that cannot be fitted 
  • sansmodels/src/sans/models/PowerLawModel.py

    r0824909 r1ed3834  
    3737        self.description=""" The Power_Law model. 
    3838        F(x) = scale* (|x|)^(-m) + bkd 
     39         
    3940        The model has three parameters:  
    4041        m     =  power 
  • sansmodels/src/sans/models/SphereModel.py

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius          = 60.0 [Å] 
    36          contrast        = 1e-006 [1/Ų] 
     35         radius          = 60.0 [A] 
     36         contrast        = 1e-006 [1/A²] 
    3737         background      = 0.0 [1/cm] 
    3838 
     
    4949        self.name = "SphereModel" 
    5050        ## Model description 
    51         self.description ="""P(q)=(scale/V) 
    52                 *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 
    53                 +bkg 
    54                 bkg: background level 
    55                 R: radius of the sphere 
     51        self.description ="""P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR)) 
     52                /(qR)^3]^(2)+bkg 
     53                 
     54                bkg:background, R: radius of sphere 
    5655                V:The volume of the scatter 
    57                 scatter_sld: the scattering length density of the scatter 
    58                 solvent_sld: the scattering length density of the solvent""" 
     56                contrast:SLD difference between 
     57                scatter and solvent 
     58                scatter_sld: the SLD of the scatter 
     59                solvent_sld: the SLD of the solvent 
     60                """ 
    5961        
    6062                ## Parameter details [units, min, max] 
    6163        self.details = {} 
    6264        self.details['scale'] = ['', None, None] 
    63         self.details['radius'] = ['[Å]', None, None] 
    64         self.details['contrast'] = ['[1/Ų]', None, None] 
     65        self.details['radius'] = ['[A]', None, None] 
     66        self.details['contrast'] = ['[1/A²]', None, None] 
    6567        self.details['background'] = ['[1/cm]', None, None] 
    6668 
  • sansmodels/src/sans/models/SquareWellStructure.py

    r0824909 r1ed3834  
    3232        for details of the model. 
    3333        List of default parameters: 
    34          radius          = 50.0 [Å] 
     34         radius          = 50.0 [A] 
    3535         volfraction     = 0.04  
    3636         welldepth       = 1.5 [kT] 
     
    4949        self.name = "SquareWellStructure" 
    5050        ## Model description 
    51         self.description =""" Structure Factor for interacting particles: 
     51        self.description =""" Structure Factor for interacting particles:             . 
    5252                 
    5353                The interaction potential is 
     
    5757                = 0     , r >= 2Rw 
    5858                 
    59                 R: radius (A)of the particle, v: volume fraction 
     59                R: radius (A)of the particle 
     60                v: volume fraction 
    6061                d: well depth 
    61                 w: well width; multiples of the particle diameter 
     62                w: well width; multiples of the 
     63                particle diameter 
    6264                 
    63                 Ref: Sharma, R. V.; Sharma, K. C., Physica, 
    64                 1977, 89A, 213.""" 
     65                Ref: Sharma, R. V.; Sharma, 
     66                K. C., Physica, 1977, 89A, 213.""" 
    6567        
    6668                ## Parameter details [units, min, max] 
    6769        self.details = {} 
    68         self.details['radius'] = ['[Å]', None, None] 
     70        self.details['radius'] = ['[A]', None, None] 
    6971        self.details['volfraction'] = ['', None, None] 
    7072        self.details['welldepth'] = ['[kT]', None, None] 
  • sansmodels/src/sans/models/StickyHSStructure.py

    r0824909 r1ed3834  
    3232        for details of the model. 
    3333        List of default parameters: 
    34          radius          = 50.0 [Å] 
     34         radius          = 50.0 [A] 
    3535         volfraction     = 0.1  
    3636         perturb         = 0.05  
     
    4949        self.name = "StickyHSStructure" 
    5050        ## Model description 
    51         self.description =""" Structure Factor for interacting particles: 
     51        self.description =""" Structure Factor for interacting particles:                               . 
    5252                 
    5353                The interaction potential is 
     
    6363                v: The volume fraction , v > 0 
    6464                 
    65                 Ref: Menon, S. V. G.,et.al., J. Chem. Phys., 
    66                 1991, 95(12), 9186-9190.""" 
     65                Ref: Menon, S. V. G.,et.al., J. Chem. 
     66                Phys., 1991, 95(12), 9186-9190.""" 
    6767        
    6868                ## Parameter details [units, min, max] 
    6969        self.details = {} 
    70         self.details['radius'] = ['[Å]', None, None] 
     70        self.details['radius'] = ['[A]', None, None] 
    7171        self.details['volfraction'] = ['', None, None] 
    7272        self.details['perturb'] = ['', None, None] 
  • sansmodels/src/sans/models/TeubnerStreyModel.py

    r0824909 r1ed3834  
    3333        self.description="""The TeubnerStrey model. 
    3434        F(x) = 1/( scale + c1*(x)^(2)+  c2*(x)^(4)) + bkd 
     35         
    3536        The model has Four parameters:  
    3637        scale  =  scale factor 
  • sansmodels/src/sans/models/c_extensions/Hardsphere.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = HardsphereStructure 
    88 //[DISP_PARAMS] = radius 
    9  //[DESCRIPTION] =<text>Structure factor for interacting particles: 
     9 //[DESCRIPTION] =<text>Structure factor for interacting particles:                   . 
    1010 // 
    1111 //  The interparticle potential is 
     
    1717 //                                             V:The volume fraction 
    1818 // 
    19  //    Ref: Percus., J. K.,etc., J. Phy. Rev. 
    20  //    1958, 110, 1. 
     19 //    Ref: Percus., J. K.,etc., J. Phy. 
     20 //     Rev. 1958, 110, 1. 
    2121 //      </text> 
    2222 //[FIXED]= radius.width 
     
    2424 
    2525typedef struct { 
    26     /// Radius of hardsphere [Å] 
    27     //  [DEFAULT]=radius=50.0 [Å] 
     26    /// Radius of hardsphere [A] 
     27    //  [DEFAULT]=radius=50.0 [A] 
    2828    double radius; 
    2929 
  • sansmodels/src/sans/models/c_extensions/HayterMSA.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = HayterMSAStructure 
    88 //[DISP_PARAMS] = radius 
    9  //[DESCRIPTION] =<text>To calculate the structure factor (the Fourier transform 
    10  //                     of the pair correlation function g(r)) for 
    11  //                     a system of charged, spheroidal objects in 
    12  //                     a dielectric medium. When combined with an 
    13  //                     appropriate form factor, this allows 
    14  //                     for inclusion of the interparticle 
    15  //                     interference effects due to screened coulomb 
    16  //                     repulsion between charged particles. 
    17  //                     (note: charge > 0 required.) 
     9 //[DESCRIPTION] =<text>To calculate the structure factor (the Fourier transform of the 
     10 //                     pair correlation function g(r)) for a system of 
     11 //                     charged, spheroidal objects in a dielectric 
     12 //                                             medium. 
     13 //                     When combined with an appropriate form 
     14 //                     factor, this allows for inclusion of 
     15 //                     the interparticle interference effects 
     16 //                     due to screened coulomb repulsion between 
     17 //                     charged particles. 
     18 //                                             (Note: charge > 0 required.) 
    1819 // 
    1920 //                     Ref: JP Hansen and JB Hayter, Molecular 
     
    2425 
    2526typedef struct { 
    26     /// Radius of particle [Å] 
    27     //  [DEFAULT]=radius=20.75 [Å] 
     27    /// Radius of particle [A] 
     28    //  [DEFAULT]=radius=20.75 [A] 
    2829    double radius; 
    2930 
  • sansmodels/src/sans/models/c_extensions/SquareWell.h

    r70faf5d r1ed3834  
    66//   [PYTHONCLASS] = SquareWellStructure 
    77//   [DISP_PARAMS] = radius 
    8 //   [DESCRIPTION] = <text> Structure Factor for interacting particles: 
     8//   [DESCRIPTION] = <text> Structure Factor for interacting particles:             . 
    99// 
    1010//  The interaction potential is 
     
    1414//                      = 0     , r >= 2Rw 
    1515// 
    16 //              R: radius (A)of the particle, v: volume fraction 
     16//              R: radius (A)of the particle 
     17//              v: volume fraction 
    1718//              d: well depth 
    18 //              w: well width; multiples of the particle diameter 
     19//              w: well width; multiples of the 
     20//              particle diameter 
    1921// 
    20 //              Ref: Sharma, R. V.; Sharma, K. C., Physica, 
    21 //            1977, 89A, 213. 
     22//              Ref: Sharma, R. V.; Sharma, 
     23//      K. C., Physica, 1977, 89A, 213. 
    2224//                      </text> 
    2325//   [FIXED]= radius.width 
     
    2628 
    2729typedef struct { 
    28     /// Radius of particle [Å] 
    29     //  [DEFAULT]=radius=50.0 [Å] 
     30    /// Radius of particle [A] 
     31    //  [DEFAULT]=radius=50.0 [A] 
    3032    double radius; 
    3133 
  • sansmodels/src/sans/models/c_extensions/StickyHS.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = StickyHSStructure 
    88 //[DISP_PARAMS] = radius 
    9  //[DESCRIPTION] =<text> Structure Factor for interacting particles: 
     9 //[DESCRIPTION] =<text> Structure Factor for interacting particles:                               . 
    1010 // 
    1111 //  The interaction potential is 
     
    2121 //                                             v: The volume fraction , v > 0 
    2222 // 
    23  //                     Ref: Menon, S. V. G.,et.al., J. Chem. Phys., 
    24  //                          1991, 95(12), 9186-9190. 
     23 //                     Ref: Menon, S. V. G.,et.al., J. Chem. 
     24 //                      Phys., 1991, 95(12), 9186-9190. 
    2525 //                             </text> 
    2626 //[FIXED]= radius.width 
    2727typedef struct { 
    28     /// Radius of hardsphere [Å] 
    29     //  [DEFAULT]=radius=50.0 [Å] 
     28    /// Radius of hardsphere [A] 
     29    //  [DEFAULT]=radius=50.0 [A] 
    3030    double radius; 
    3131 
  • sansmodels/src/sans/models/c_extensions/core_shell.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = CoreShellModel 
    88 //[DISP_PARAMS] = radius, thickness 
    9  //[DESCRIPTION] =<text> Form factor for a monodisperse spherical particle with 
    10  //    particle with a core-shell structure: 
     9 //[DESCRIPTION] =<text>Form factor for a monodisperse spherical particle with particle 
     10 //    with a core-shell structure: 
     11 // 
    1112 //    The form factor is normalized by the 
    1213 //    total particle volume. 
    1314 // 
    14  //             radius: core radius 
    15  //     thickness: shell thickness 
     15 //             radius: core radius, thickness: shell thickness 
    1616 // 
    1717 //     Ref: Guinier, A. and G. Fournet, 
     
    2525    //  [DEFAULT]=scale=1.0 
    2626    double scale; 
    27     /// Core Radius [Å] 60.0 
    28     //  [DEFAULT]=radius=60.0 [Å] 
     27    /// Core Radius [A] 60.0 
     28    //  [DEFAULT]=radius=60.0 [A] 
    2929    double radius; 
    30     /// Shell Thickness [Å] 10.0 
    31     //  [DEFAULT]=thickness=10 [Å] 
     30    /// Shell Thickness [A] 10.0 
     31    //  [DEFAULT]=thickness=10 [A] 
    3232    double thickness; 
    33     /// Core SLD [1/Ų] 1.0e-6 
    34     //  [DEFAULT]=core_sld=1.0e-6 [1/Ų] 
     33    /// Core SLD [1/A²] 1.0e-6 
     34    //  [DEFAULT]=core_sld=1.0e-6 [1/A²] 
    3535    double core_sld; 
    36         /// Shell SLD [1/Ų] 2.0e-6 
    37         //  [DEFAULT]=shell_sld=2.0e-6 [1/Ų] 
     36        /// Shell SLD [1/A²] 2.0e-6 
     37        //  [DEFAULT]=shell_sld=2.0e-6 [1/A²] 
    3838        double shell_sld; 
    39         /// Solvent SLD [1/Ų] 3.0e-6 
    40         //  [DEFAULT]=solvent_sld=3.0e-6 [1/Ų] 
     39        /// Solvent SLD [1/A²] 3.0e-6 
     40        //  [DEFAULT]=solvent_sld=3.0e-6 [1/A²] 
    4141        double solvent_sld; 
    4242        /// Incoherent Background [1/cm] 0.000 
  • sansmodels/src/sans/models/c_extensions/core_shell_cylinder.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = CoreShellCylinderModel 
    88 //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi 
    9  //[DESCRIPTION] = <text>P(q,alpha)= scale/Vs*f(q)^(2) + bkg  Where:\n\ 
    10  //      f(q)= 2(core_sld- solvant_sld)* Vc*sin[qLcos(alpha/2)]/\n\ 
    11  //      [qLcos(alpha/2)]*J1(qRsin(alpha))/[qRsin(alpha)] +\n 
    12  //  2(shell_sld-solvent_sld)*Vs 
    13  //      *sin[q(L+T)cos(alpha/2)]/[[q(L+T)cos(alpha/2)] 
    14  //      *J1(q(R+T)sin(alpha))/q(R+T)sin(alpha)] 
    15  //                     alpha:is the angle between the axis of the cylinder 
    16  //          and the q-vector 
     9 //[DESCRIPTION] = <text>P(q,alpha)= scale/Vs*f(q)^(2) + bkg,  where: f(q)= 2(core_sld 
     10//                      - solvant_sld)* Vc*sin[qLcos(alpha/2)] 
     11//                      /[qLcos(alpha/2)]*J1(qRsin(alpha)) 
     12 //                     /[qRsin(alpha)]+2(shell_sld-solvent_sld) 
     13 //                     *Vs*sin[q(L+T)cos(alpha/2)][[q(L+T) 
     14 //                     *cos(alpha/2)]*J1(q(R+T)sin(alpha)) 
     15 //                     /q(R+T)sin(alpha)] 
     16 // 
     17 //                     alpha:is the angle between the axis of 
     18 //          the cylinder and the q-vector 
    1719 //                     Vs: the volume of the outer shell 
    1820 //                     Vc: the volume of the core 
    1921 //                     L: the length of the core 
    20  //             shell_sld: the scattering length density of the shell 
    21  //                     solvent_sld: the scattering length density of the solvent 
     22 //             shell_sld: the scattering length density 
     23 //                     of the shell 
     24 //                     solvent_sld: the scattering length density 
     25 //                     of the solvent 
    2226 //                     bkg: the background 
    2327 //                     T: the thickness 
     
    2630 //                     J1: the first order Bessel function 
    2731 //             theta: axis_theta of the cylinder 
    28  //             phi: the axis_phi of the cylinder 
     32 //             phi: the axis_phi of the cylinder... 
    2933 //             </text> 
    3034 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;radius.width; thickness_width</text> 
     
    3741    double scale; 
    3842 
    39     /// Core radius [Å] 
    40     //  [DEFAULT]=radius=20.0 [Å] 
     43    /// Core radius [A] 
     44    //  [DEFAULT]=radius=20.0 [A] 
    4145    double radius; 
    4246 
    43     /// Shell thickness [Å] 
    44     //  [DEFAULT]=thickness=10.0 [Å] 
     47    /// Shell thickness [A] 
     48    //  [DEFAULT]=thickness=10.0 [A] 
    4549    double thickness; 
    4650 
    47     /// Core length [Å] 
    48     //  [DEFAULT]=length=400.0 [Å] 
     51    /// Core length [A] 
     52    //  [DEFAULT]=length=400.0 [A] 
    4953    double length; 
    5054 
    51     /// Core SLD [1/Ų] 
    52     //  [DEFAULT]=core_sld=1.0e-6 [1/Ų] 
     55    /// Core SLD [1/A²] 
     56    //  [DEFAULT]=core_sld=1.0e-6 [1/A²] 
    5357    double core_sld; 
    5458 
    55     /// Shell SLD [1/Ų] 
    56     //  [DEFAULT]=shell_sld=4.0e-6 [1/Ų] 
     59    /// Shell SLD [1/A²] 
     60    //  [DEFAULT]=shell_sld=4.0e-6 [1/A²] 
    5761    double shell_sld; 
    5862 
    59     /// Solvent SLD [1/Ų] 
    60     //  [DEFAULT]=solvent_sld=1.0e-6 [1/Ų] 
     63    /// Solvent SLD [1/A²] 
     64    //  [DEFAULT]=solvent_sld=1.0e-6 [1/A²] 
    6165    double solvent_sld; 
    6266 
  • sansmodels/src/sans/models/c_extensions/cylinder.h

    r70faf5d r1ed3834  
    44 * [PYTHONCLASS] = CylinderModel 
    55 * [DISP_PARAMS] = radius, length, cyl_theta, cyl_phi 
    6    [DESCRIPTION] = <text>P(q,alpha)= scale/V*f(q)^(2)+bkg 
    7                                 f(q)= 2*(scatter_sld - solvent_sld)*V 
    8                                 *sin(qLcos(alpha/2))/[qLcos(alpha/2)] 
    9                                 *J1(qRsin(alpha/2))/[qRsin(alpha)] 
    10                                 V: Volume of the cylinder 
    11                                 R: Radius of the cylinder 
    12                                 L: Length of the cylinder 
    13                                 J1: The bessel function 
    14                                 alpha: angle betweenthe axis of the cylinder 
    15                                 and the q-vector for 1D:the ouput is 
    16                                 P(q)=scale/V*integral from pi/2 to zero of 
    17                                 f(q)^(2)*sin(alpha)*dalpha+ bkg 
    18                                         </text> 
     6   [DESCRIPTION] = <text> f(q)= 2*(scatter_sld - solvent_sld)*V*sin(qLcos(alpha/2)) 
     7                                /[qLcos(alpha/2)]*J1(qRsin(alpha/2))/[qRsin(alpha)] 
     8 
     9                P(q,alpha)= scale/V*f(q)^(2)+bkg 
     10                V: Volume of the cylinder 
     11                R: Radius of the cylinder 
     12                L: Length of the cylinder 
     13                J1: The bessel function 
     14                alpha: angle betweenthe axis of the 
     15                cylinder and the q-vector for 1D 
     16                :the ouput is P(q)=scale/V*integral 
     17                from pi/2 to zero of... 
     18                f(q)^(2)*sin(alpha)*dalpha+ bkg 
     19                </text> 
    1920        [FIXED]= <text>cyl_phi.width; cyl_theta.width; length.width;radius.width</text> 
    2021        [ORIENTATION_PARAMS]= <text>cyl_phi; cyl_theta; cyl_phi.width; cyl_theta.width</text> 
     
    2627    //  [DEFAULT]=scale=1.0 
    2728    double scale; 
    28     /// Radius of the cylinder [Å] 
    29     //  [DEFAULT]=radius=20.0 [Å] 
     29    /// Radius of the cylinder [A] 
     30    //  [DEFAULT]=radius=20.0 [A] 
    3031    double radius; 
    31     /// Length of the cylinder [Å] 
    32     //  [DEFAULT]=length=400.0 [Å] 
     32    /// Length of the cylinder [A] 
     33    //  [DEFAULT]=length=400.0 [A] 
    3334    double length; 
    34     /// Contrast [1/Ų] 
    35     //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
     35    /// Contrast [1/A²] 
     36    //  [DEFAULT]=contrast=3.0e-6 [1/A²] 
    3637    double contrast; 
    3738        /// Incoherent Background [1/cm] 0.00 
  • sansmodels/src/sans/models/c_extensions/ellipsoid.h

    r70faf5d r1ed3834  
    99 //[PYTHONCLASS] = EllipsoidModel 
    1010 //[DISP_PARAMS] = radius_a, radius_b, axis_theta, axis_phi 
    11  //[DESCRIPTION] = <text>"P(q.alpha)= scale*f(q)^(2)+ bkg 
    12  //             f(q)= 3*(scatter_sld- scatter_solvent)*V 
    13  //                     *[sin(q*r(Ra,Rb,alpha))- q*r*cos(qr(Ra,Rb,alpha))] 
     11 //[DESCRIPTION] = <text>"P(q.alpha)= scale*f(q)^(2)+ bkg, where f(q)= 3*(scatter_sld 
     12 //             - scatter_solvent)*V*[sin(q*r(Ra,Rb,alpha)) 
     13 //             -q*r*cos(qr(Ra,Rb,alpha))] 
    1414 //             /[qr(Ra,Rb,alpha)]^(3)" 
     15 // 
    1516 //     r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) 
    1617 //     + Ra^(2)*(cos(alpha))^(2)]^(1/2) 
    17  //             scatter_sld: scattering length density of the scatter 
    18  //             solvent_sld: scattering length density of the solvent 
     18 // 
     19 //             scatter_sld: SLD of the scatter 
     20 //             solvent_sld: SLD of the solvent 
     21 //     contrast: SLD difference between scatter 
     22 //             and solvent 
    1923 //             V: volune of the Eliipsoid 
    20  //             Ra: radius along the rotation axis of the Ellipsoid 
    21  //             Rb: radius perpendicular to the rotation axis of the ellipsoid 
     24 //             Ra: radius along the rotation axis 
     25 //             of the Ellipsoid 
     26 //             Rb: radius perpendicular to the 
     27 //             rotation axis of the ellipsoid 
    2228 //             </text> 
    2329 //[FIXED]= <text> axis_phi.width; axis_theta.width;radius_a.width; 
     
    3238    double scale; 
    3339 
    34     /// Rotation axis radius_a [Å] 
    35     //  [DEFAULT]=radius_a=20.0 [Å] 
     40    /// Rotation axis radius_a [A] 
     41    //  [DEFAULT]=radius_a=20.0 [A] 
    3642    double radius_a; 
    3743 
    38     /// Radius_b [Å] 
    39     //  [DEFAULT]=radius_b=400 [Å] 
     44    /// Radius_b [A] 
     45    //  [DEFAULT]=radius_b=400 [A] 
    4046    double radius_b; 
    4147 
    42     /// Contrast [1/Ų] 
    43     //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
     48    /// Contrast [1/A²] 
     49    //  [DEFAULT]=contrast=3.0e-6 [1/A²] 
    4450    double contrast; 
    4551 
  • sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h

    r70faf5d r1ed3834  
    1616    //  [DEFAULT]=scale=1.0 
    1717    double scale; 
    18     /// Minor radius [Å] 
    19     //  [DEFAULT]=r_minor=20.0 [Å] 
     18    /// Minor radius [A] 
     19    //  [DEFAULT]=r_minor=20.0 [A] 
    2020    double r_minor; 
    2121    /// Ratio of major/minor radii 
    2222    //  [DEFAULT]=r_ratio=1.5 
    2323    double r_ratio; 
    24     /// Length of the cylinder [Å] 
    25     //  [DEFAULT]=length=400.0 [Å] 
     24    /// Length of the cylinder [A] 
     25    //  [DEFAULT]=length=400.0 [A] 
    2626    double length; 
    27     /// Contrast [1/Ų] 
    28     //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
     27    /// Contrast [1/A²] 
     28    //  [DEFAULT]=contrast=3.0e-6 [1/A²] 
    2929    double contrast; 
    3030        /// Incoherent Background [1/cm] 0.000 
  • sansmodels/src/sans/models/c_extensions/sphere.h

    r70faf5d r1ed3834  
    77 //[PYTHONCLASS] = SphereModel 
    88 //[DISP_PARAMS] = radius 
    9  //[DESCRIPTION] =<text>P(q)=(scale/V) 
    10  //                                             *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 
    11  //                                             +bkg 
    12  //                                             bkg: background level 
    13  //                                             R: radius of the sphere 
    14  //                                             V:The volume of the scatter 
    15  //                                             scatter_sld: the scattering length density of the scatter 
    16  //                                             solvent_sld: the scattering length density of the solvent 
    17  //                             </text> 
     9 //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR)) 
     10 //                                             /(qR)^3]^(2)+bkg 
     11 // 
     12 //                             bkg:background, R: radius of sphere 
     13 //                             V:The volume of the scatter 
     14 //                             contrast:SLD difference between 
     15 //                             scatter and solvent 
     16 //                             scatter_sld: the SLD of the scatter 
     17 //                             solvent_sld: the SLD of the solvent 
     18 // 
     19 //             </text> 
    1820 //[FIXED]=  radius.width 
    1921 //[ORIENTATION_PARAMS]= <text> </text> 
     
    2426    double scale; 
    2527 
    26     /// Radius of sphere [Å] 
    27     //  [DEFAULT]=radius=60.0 [Å] 
     28    /// Radius of sphere [A] 
     29    //  [DEFAULT]=radius=60.0 [A] 
    2830    double radius; 
    2931 
    3032    /// Contrast [1/Ų] 
    31     //  [DEFAULT]=contrast= 1.0e-6 [1/Ų] 
     33    //  [DEFAULT]=contrast= 1.0e-6 [1/A²] 
    3234    double contrast; 
    3335 
Note: See TracChangeset for help on using the changeset viewer.