Changeset 70faf5d in sasview


Ignore:
Timestamp:
Apr 15, 2009 9:58:33 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:
b22748b
Parents:
179a411
Message:

changed notation of units

Location:
sansmodels/src/sans/models/c_extensions
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_extensions/Hardsphere.h

    r25a608f5 r70faf5d  
    1515 // 
    1616 //                                             R: radius of the Hardsphere particle 
    17  //                                             V:The volume fraction  
     17 //                                             V:The volume fraction 
    1818 // 
    19  //    Ref: Percus., J. K.,etc., J. Phy. Rev.  
     19 //    Ref: Percus., J. K.,etc., J. Phy. Rev. 
    2020 //    1958, 110, 1. 
    2121 //      </text> 
    22  //[FIXED]= radius.width   
     22 //[FIXED]= radius.width 
    2323 
    2424 
    2525typedef struct { 
    26     /// Radius of hardsphere [A] 
    27     //  [DEFAULT]=radius=50.0 A 
     26    /// Radius of hardsphere [Å] 
     27    //  [DEFAULT]=radius=50.0 [Å] 
    2828    double radius; 
    2929 
  • sansmodels/src/sans/models/c_extensions/HayterMSA.h

    r25579e8 r70faf5d  
    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  
     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 
    1616 //                     repulsion between charged particles. 
    1717 //                     (note: charge > 0 required.) 
    1818 // 
    19  //                     Ref: JP Hansen and JB Hayter, Molecular  
     19 //                     Ref: JP Hansen and JB Hayter, Molecular 
    2020 //                           Physics 46, 651-656 (1982). 
    2121 // 
    2222 //                             </text> 
    23  //[FIXED]= radius.width   
    24   
     23 //[FIXED]= radius.width 
     24 
    2525typedef struct { 
    26     /// Radius of particle [A] 
    27     //  [DEFAULT]=radius=20.75 A 
     26    /// Radius of particle [Å] 
     27    //  [DEFAULT]=radius=20.75 [Å] 
    2828    double radius; 
    2929 
     
    3737 
    3838        ///     Temperature [K] 
    39     //  [DEFAULT]=temperature= 318.16 K  
     39    //  [DEFAULT]=temperature= 318.16 [K] 
    4040    double temperature; 
    4141 
    42         ///     Monovalent salt concentration [M]  
    43     //  [DEFAULT]=saltconc= 0  
     42        ///     Monovalent salt concentration [M] 
     43    //  [DEFAULT]=saltconc= 0 [M] 
    4444    double saltconc; 
    4545 
    46     /// Dielectric constant of solvent  
    47     //  [DEFAULT]=dielectconst= 71.08  
     46    /// Dielectric constant of solvent 
     47    //  [DEFAULT]=dielectconst= 71.08 
    4848    double dielectconst; 
    4949} HayterMSAParameters; 
  • sansmodels/src/sans/models/c_extensions/SquareWell.h

    r25a608f5 r70faf5d  
    1818//              w: well width; multiples of the particle diameter 
    1919// 
    20 //              Ref: Sharma, R. V.; Sharma, K. C., Physica,  
     20//              Ref: Sharma, R. V.; Sharma, K. C., Physica, 
    2121//            1977, 89A, 213. 
    2222//                      </text> 
    23 //   [FIXED]= radius.width  
     23//   [FIXED]= radius.width 
    2424//[ORIENTATION_PARAMS]= <text> </text> 
    2525 
    2626 
    2727typedef struct { 
    28     /// Radius of particle [A] 
    29     //  [DEFAULT]=radius=50.0 A 
     28    /// Radius of particle [Å] 
     29    //  [DEFAULT]=radius=50.0 [Å] 
    3030    double radius; 
    3131 
     
    3535 
    3636    /// Well depth [kT] 
    37     //  [DEFAULT]=welldepth= 1.50 kT 
     37    //  [DEFAULT]=welldepth= 1.50 [kT] 
    3838    double welldepth; 
    3939 
    40     /// Well width  
    41     //  [DEFAULT]=wellwidth= 1.20  
     40    /// Well width 
     41    //  [DEFAULT]=wellwidth= 1.20 
    4242    double wellwidth; 
    4343 
  • sansmodels/src/sans/models/c_extensions/StickyHS.h

    r25579e8 r70faf5d  
    1515 //                         = 0   , r >= 2R +w 
    1616 // 
    17  //                                             R: radius of the hardsphere  
     17 //                                             R: radius of the hardsphere 
    1818 //                     stickiness = [exp(Uo/kT)]/(12*perturb) 
    1919 //                     perturb = w/(w+ 2R) , 0.01 =< w <= 0.1 
     
    2121 //                                             v: The volume fraction , v > 0 
    2222 // 
    23  //                     Ref: Menon, S. V. G.,et.al., J. Chem. Phys.,  
     23 //                     Ref: Menon, S. V. G.,et.al., J. Chem. Phys., 
    2424 //                          1991, 95(12), 9186-9190. 
    2525 //                             </text> 
    26  //[FIXED]= radius.width   
     26 //[FIXED]= radius.width 
    2727typedef struct { 
    28     /// Radius of hardsphere [A] 
    29     //  [DEFAULT]=radius=50.0 A 
     28    /// Radius of hardsphere [Å] 
     29    //  [DEFAULT]=radius=50.0 [Å] 
    3030    double radius; 
    3131 
  • sansmodels/src/sans/models/c_extensions/core_shell.h

    r25a608f5 r70faf5d  
    77 //[PYTHONCLASS] = CoreShellModel 
    88 //[DISP_PARAMS] = radius, thickness 
    9  //[DESCRIPTION] =<text> Form factor for a monodisperse spherical 
    10  //                         particle with a core-shell structure: 
    11  //                       The form factor is normalized by the  
    12  //                        total particle volume. 
    13  //  
    14  //                                             radius: core radius 
    15  //                     thickness: shell thickness 
     9 //[DESCRIPTION] =<text> Form factor for a monodisperse spherical particle with 
     10 //    particle with a core-shell structure: 
     11 //    The form factor is normalized by the 
     12 //    total particle volume. 
    1613 // 
    17  //                     Ref: Guinier, A. and G. Fournet,  
    18  //                          John Wiley and Sons, New York, 1955. 
     14 //             radius: core radius 
     15 //     thickness: shell thickness 
     16 // 
     17 //     Ref: Guinier, A. and G. Fournet, 
     18 //     John Wiley and Sons, New York, 1955. 
    1919 //                             </text> 
    2020 //[FIXED]= <text> thickness.width;radius.width</text> 
     
    2525    //  [DEFAULT]=scale=1.0 
    2626    double scale; 
    27     /// Core Radius (A) 60.0 
    28     //  [DEFAULT]=radius=60.0 A 
     27    /// Core Radius [Å] 60.0 
     28    //  [DEFAULT]=radius=60.0 [Å] 
    2929    double radius; 
    30     /// Shell Thickness (A) 10.0 
    31     //  [DEFAULT]=thickness=10 A 
     30    /// Shell Thickness [Å] 10.0 
     31    //  [DEFAULT]=thickness=10 [Å] 
    3232    double thickness; 
    33     /// Core SLD (Å-2) 1.0e-6 
    34     //  [DEFAULT]=core_sld=1.0e-6 A-2 
     33    /// Core SLD [1/Ų] 1.0e-6 
     34    //  [DEFAULT]=core_sld=1.0e-6 [1/Ų] 
    3535    double core_sld; 
    36         /// Shell SLD (Å-2) 2.0e-6 
    37         //  [DEFAULT]=shell_sld=2.0e-6 A-2 
     36        /// Shell SLD [1/Ų] 2.0e-6 
     37        //  [DEFAULT]=shell_sld=2.0e-6 [1/Ų] 
    3838        double shell_sld; 
    39         /// Solvent SLD (Å-2) 3.0e-6 
    40         //  [DEFAULT]=solvent_sld=3.0e-6 A-2 
     39        /// Solvent SLD [1/Ų] 3.0e-6 
     40        //  [DEFAULT]=solvent_sld=3.0e-6 [1/Ų] 
    4141        double solvent_sld; 
    42         /// Incoherent Background (cm-1) 0.000 
    43         //  [DEFAULT]=background=0 cm-1 
     42        /// Incoherent Background [1/cm] 0.000 
     43        //  [DEFAULT]=background=0 [1/cm] 
    4444        double background; 
    4545} CoreShellParameters; 
  • sansmodels/src/sans/models/c_extensions/core_shell_cylinder.h

    r25a608f5 r70faf5d  
    88 //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi 
    99 //[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 2(shell_sld-solvent_sld)*Vs 
    12  //                                             *sin[q(L+T)cos(alpha/2)]/[[q(L+T)cos(alpha/2)] 
    13  //                                             *J1(q(R+T)sin(alpha))/q(R+T)sin(alpha)] 
    14  //                                             alpha:is the angle between the axis of the cylinder and the q-vector 
    15  //                                             Vs: the volume of the outer shell 
    16  //                                             Vc: the volume of the core 
    17  //                                             L: the length of the core 
    18  //                                     shell_sld: the scattering length density of the shell 
    19  //                                             solvent_sld: the scattering length density of the solvent 
    20  //                                             bkg: the background 
    21  //                                             T: the thickness 
    22  //                                     R+T: is the outer radius 
    23  //                                     L+2T: The total length of the outershell 
    24  //                                             J1: the first order Bessel function 
    25  //                                     theta: axis_theta of the cylinder 
    26  //                                     phi: the axis_phi of the cylinder 
    27  //                                     </text> 
     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 
     17 //                     Vs: the volume of the outer shell 
     18 //                     Vc: the volume of the core 
     19 //                     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 //                     bkg: the background 
     23 //                     T: the thickness 
     24 //             R+T: is the outer radius 
     25 //             L+2T: The total length of the outershell 
     26 //                     J1: the first order Bessel function 
     27 //             theta: axis_theta of the cylinder 
     28 //             phi: the axis_phi of the cylinder 
     29 //             </text> 
    2830 //[FIXED]= <text> axis_phi.width; axis_theta.width; length.width;radius.width; thickness_width</text> 
    29  //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width  
     31 //[ORIENTATION_PARAMS]= axis_phi; axis_theta;axis_phi.width; axis_theta.width 
    3032 
    3133 
     
    3537    double scale; 
    3638 
    37     /// Core radius [A] 
    38     //  [DEFAULT]=radius=20.0 A 
     39    /// Core radius [Å] 
     40    //  [DEFAULT]=radius=20.0 [Å] 
    3941    double radius; 
    4042 
    41     /// Shell thickness [A] 
    42     //  [DEFAULT]=thickness=10.0 A 
     43    /// Shell thickness [Å] 
     44    //  [DEFAULT]=thickness=10.0 [Å] 
    4345    double thickness; 
    4446 
    45     /// Core length [A] 
    46     //  [DEFAULT]=length=400.0 A 
     47    /// Core length [Å] 
     48    //  [DEFAULT]=length=400.0 [Å] 
    4749    double length; 
    4850 
    49     /// Core SLD [A-2] 
    50     //  [DEFAULT]=core_sld=1.0e-6 A-2 
     51    /// Core SLD [1/Ų] 
     52    //  [DEFAULT]=core_sld=1.0e-6 [1/Ų] 
    5153    double core_sld; 
    5254 
    53     /// Shell SLD [A-2] 
    54     //  [DEFAULT]=shell_sld=4.0e-6 A-2 
     55    /// Shell SLD [1/Ų] 
     56    //  [DEFAULT]=shell_sld=4.0e-6 [1/Ų] 
    5557    double shell_sld; 
    5658 
    57     /// Solvent SLD [A-2] 
    58     //  [DEFAULT]=solvent_sld=1.0e-6 A-2 
     59    /// Solvent SLD [1/Ų] 
     60    //  [DEFAULT]=solvent_sld=1.0e-6 [1/Ų] 
    5961    double solvent_sld; 
    6062 
    61         /// Incoherent Background [cm-1] 
    62         //  [DEFAULT]=background=0 cm-1 
     63        /// Incoherent Background [1/cm] 
     64        //  [DEFAULT]=background=0 [1/cm] 
    6365        double background; 
    6466 
    6567    /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad] 
    66     //  [DEFAULT]=axis_theta=1.57 rad 
     68    //  [DEFAULT]=axis_theta=1.57 [rad] 
    6769    double axis_theta; 
    6870 
    6971    /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad] 
    70     //  [DEFAULT]=axis_phi=0.0 rad 
     72    //  [DEFAULT]=axis_phi=0.0 [rad] 
    7173    double axis_phi; 
    7274 
  • sansmodels/src/sans/models/c_extensions/cylinder.h

    r25a608f5 r70faf5d  
    55 * [DISP_PARAMS] = radius, length, cyl_theta, cyl_phi 
    66   [DESCRIPTION] = <text>P(q,alpha)= scale/V*f(q)^(2)+bkg 
    7                                                 f(q)= 2*(scatter_sld - solvent_sld)*V*sin(qLcos(alpha/2))/[qLcos(alpha/2)]* 
    8                                                 J1(qRsin(alpha/2))/[qRsin(alpha)] 
    9                                                 V: Volume of the cylinder 
    10                                                 R: Radius of the cylinder 
    11                                                 L: Length of the cylinder 
    12                                                 J1: The bessel function 
    13                                                 alpha: angle betweenthe axis of the cylinder and the q-vector 
    14                                                 for 1D:the ouput is P(q)=scale/V*integral from pi/2 to zero of f(q)^(2)* 
    15                                                 sin(alpha)*dalpha+ 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 
    1618                                        </text> 
    1719        [FIXED]= <text>cyl_phi.width; cyl_theta.width; length.width;radius.width</text> 
    1820        [ORIENTATION_PARAMS]= <text>cyl_phi; cyl_theta; cyl_phi.width; cyl_theta.width</text> 
    19          
     21 
    2022 
    2123 **/ 
     
    2426    //  [DEFAULT]=scale=1.0 
    2527    double scale; 
    26     /// Radius of the cylinder [A] 
    27     //  [DEFAULT]=radius=20.0 A 
     28    /// Radius of the cylinder [Å] 
     29    //  [DEFAULT]=radius=20.0 [Å] 
    2830    double radius; 
    29     /// Length of the cylinder [A] 
    30     //  [DEFAULT]=length=400.0 A 
     31    /// Length of the cylinder [Å] 
     32    //  [DEFAULT]=length=400.0 [Å] 
    3133    double length; 
    32     /// Contrast [A-2] 
    33     //  [DEFAULT]=contrast=3.0e-6 A-2 
     34    /// Contrast [1/Ų] 
     35    //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
    3436    double contrast; 
    35         /// Incoherent Background (cm-1) 0.000 
    36         //  [DEFAULT]=background=0 cm-1 
     37        /// Incoherent Background [1/cm] 0.00 
     38        //  [DEFAULT]=background=0.0 [1/cm] 
    3739        double background; 
    3840    /// Orientation of the cylinder axis w/respect incoming beam [rad] 
    39     //  [DEFAULT]=cyl_theta=1.0 rad 
     41    //  [DEFAULT]=cyl_theta=1.0 [rad] 
    4042    double cyl_theta; 
    4143    /// Orientation of the cylinder in the plane of the detector [rad] 
    42     //  [DEFAULT]=cyl_phi=1.0 rad 
     44    //  [DEFAULT]=cyl_phi=1.0 [rad] 
    4345    double cyl_phi; 
    44          
     46 
    4547} CylinderParameters; 
    4648 
  • sansmodels/src/sans/models/c_extensions/ellipsoid.h

    r25a608f5 r70faf5d  
    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\n\ 
    12  //                                     f(q)= 3*(scatter_sld- scatter_solvent)*V*[sin(q*r(Ra,Rb,alpha)) - q*r*cos(qr(Ra,Rb,alpha))] 
    13  //                                                     /[qr(Ra,Rb,alpha)]^(3)" 
    14  //                                             r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) + Ra^(2)*(cos(alpha))^(2)]^(1/2) 
    15  //                                             scatter_sld: scattering length density of the scatter 
    16  //                                             solvent_sld: scattering length density of the solvent 
    17  //                                             V: volune of the Eliipsoid 
    18  //                                             Ra: radius along the rotation axis of the Ellipsoid 
    19  //                                             Rb: radius perpendicular to the rotation axis of the ellipsoid 
    20  //                                             </text> 
     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))] 
     14 //             /[qr(Ra,Rb,alpha)]^(3)" 
     15 //     r(Ra,Rb,alpha)= [Rb^(2)*(sin(alpha))^(2) 
     16 //     + 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 
     19 //             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 
     22 //             </text> 
    2123 //[FIXED]= <text> axis_phi.width; axis_theta.width;radius_a.width; 
    2224 //radius_b.width; length.width; r_minor.width 
     
    3032    double scale; 
    3133 
    32     /// Rotation axis radius_a [A] 
    33     //  [DEFAULT]=radius_a=20.0 A 
     34    /// Rotation axis radius_a [Å] 
     35    //  [DEFAULT]=radius_a=20.0 [Å] 
    3436    double radius_a; 
    3537 
    36     /// Radius_b [A] 
    37     //  [DEFAULT]=radius_b=400 A 
     38    /// Radius_b [Å] 
     39    //  [DEFAULT]=radius_b=400 [Å] 
    3840    double radius_b; 
    3941 
    40     /// Contrast [Å-2] 
    41     //  [DEFAULT]=contrast=3.0e-6 A-2 
     42    /// Contrast [1/Ų] 
     43    //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
    4244    double contrast; 
    4345 
    44         /// Incoherent Background [cm-1] 
    45         //  [DEFAULT]=background=0 cm-1 
     46        /// Incoherent Background [1/cm] 
     47        //  [DEFAULT]=background=0 [1/cm] 
    4648        double background; 
    4749 
    4850    /// Orientation of the long axis of the ellipsoid w/respect incoming beam [rad] 
    49     //  [DEFAULT]=axis_theta=1.57 rad 
     51    //  [DEFAULT]=axis_theta=1.57 [rad] 
    5052    double axis_theta; 
    5153    /// Orientation of the long axis of the ellipsoid in the plane of the detector [rad] 
    52     //  [DEFAULT]=axis_phi=0.0 rad 
     54    //  [DEFAULT]=axis_phi=0.0 [rad] 
    5355    double axis_phi; 
    5456} EllipsoidParameters; 
  • sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h

    r25a608f5 r70faf5d  
    55 * [PYTHONCLASS] = EllipticalCylinderModel 
    66 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi 
    7  * [DESCRIPTION] = "" 
     7 * [DESCRIPTION] = Please see details... 
    88 * [FIXED]= <text> cyl_phi.width; 
    99 * cyl_theta.width; cyl_psi.width; length.width; r_minor.width; r_ratio.width </text> 
    10  * [ORIENTATION_PARAMS]= cyl_phi; cyl_theta; cyl_psi;  cyl_phi.width; cyl_theta.width; cyl_psi.width  
     10 * [ORIENTATION_PARAMS]= cyl_phi; cyl_theta; cyl_psi;  cyl_phi.width; cyl_theta.width; cyl_psi.width 
    1111 * */ 
    1212 
     
    1616    //  [DEFAULT]=scale=1.0 
    1717    double scale; 
    18     /// Minor radius [A] 
    19     //  [DEFAULT]=r_minor=20.0 A 
     18    /// Minor radius [Å] 
     19    //  [DEFAULT]=r_minor=20.0 [Å] 
    2020    double r_minor; 
    2121    /// Ratio of major/minor radii 
    22     //  [DEFAULT]=r_ratio=1.5 A 
     22    //  [DEFAULT]=r_ratio=1.5 
    2323    double r_ratio; 
    24     /// Length of the cylinder [A] 
    25     //  [DEFAULT]=length=400.0 A 
     24    /// Length of the cylinder [Å] 
     25    //  [DEFAULT]=length=400.0 [Å] 
    2626    double length; 
    27     /// Contrast [A-2] 
    28     //  [DEFAULT]=contrast=3.0e-6 A-2 
     27    /// Contrast [1/Ų] 
     28    //  [DEFAULT]=contrast=3.0e-6 [1/Ų] 
    2929    double contrast; 
    30         /// Incoherent Background (cm-1) 0.000 
    31         //  [DEFAULT]=background=0 cm-1 
     30        /// Incoherent Background [1/cm] 0.000 
     31        //  [DEFAULT]=background=0 [1/cm] 
    3232        double background; 
    3333    /// Orientation of the cylinder axis w/respect incoming beam [rad] 
    34     //  [DEFAULT]=cyl_theta=1.57 rad 
     34    //  [DEFAULT]=cyl_theta=1.57 [rad] 
    3535    double cyl_theta; 
    3636    /// Orientation of the cylinder in the plane of the detector [rad] 
    37     //  [DEFAULT]=cyl_phi=0.0 rad 
     37    //  [DEFAULT]=cyl_phi=0.0 [rad] 
    3838    double cyl_phi; 
    3939    /// Orientation of major radius of the cross-section w/respect vector q [rad] 
    40     //  [DEFAULT]=cyl_psi=0.0 rad 
     40    //  [DEFAULT]=cyl_psi=0.0 [rad] 
    4141    double cyl_psi; 
    4242} EllipticalCylinderParameters; 
  • sansmodels/src/sans/models/c_extensions/sphere.h

    r25a608f5 r70faf5d  
    77 //[PYTHONCLASS] = SphereModel 
    88 //[DISP_PARAMS] = radius 
    9  //[DESCRIPTION] =<text>P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 
     9 //[DESCRIPTION] =<text>P(q)=(scale/V) 
     10 //                                             *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 
    1011 //                                             +bkg 
    1112 //                                             bkg: background level 
     
    1718 //[FIXED]=  radius.width 
    1819 //[ORIENTATION_PARAMS]= <text> </text> 
    19   
     20 
    2021typedef struct { 
    2122    /// Scale factor 
     
    2324    double scale; 
    2425 
    25     /// Radius of sphere [A] 
    26     //  [DEFAULT]=radius=60.0 A 
     26    /// Radius of sphere [Å] 
     27    //  [DEFAULT]=radius=60.0 [Å] 
    2728    double radius; 
    2829 
    29     /// Contrast [Å-2] 
    30     //  [DEFAULT]=contrast= 1.0e-6 A-2 
     30    /// Contrast [1/Ų] 
     31    //  [DEFAULT]=contrast= 1.0e-6 [1/Ų] 
    3132    double contrast; 
    3233 
    33         /// Incoherent Background [cm-1] 
    34         //  [DEFAULT]=background=0 cm-1 
     34        /// Incoherent Background [1/cm] 
     35        //  [DEFAULT]=background=0 [1/cm] 
    3536        double background; 
    3637} SphereParameters; 
Note: See TracChangeset for help on using the changeset viewer.