source: sasview/sansmodels/src/sans/models/c_extensions/bcc.h @ 34c2649

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 34c2649 was 4628e31, checked in by Jae Cho <jhjcho@…>, 14 years ago

changed the unit of angles into degrees

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[d5b6a9d]1#if !defined(bcc_h)
2#define bcc_h
3
4/**
5 * Structure definition for BCC_ParaCrystal parameters
6 */
7 //[PYTHONCLASS] = BCCrystalModel
8 //[DISP_PARAMS] = radius,phi, psi, theta
9 //[DESCRIPTION] =<text>P(q)=(scale/Vp)*V_lattice*P(q)*Z(q)+bkg where scale is the volume
10 //                                      fraction of sphere,
11 //                             Vp = volume of the primary particle,
12 //                             V_lattice = volume correction for
13 //                                     for the crystal structure,
14 //                             P(q)= form factor of the sphere (normalized),
15 //                             Z(q)= paracrystalline structure factor
16 //                                     for a face centered cubic structure.
17 //                             [Body Centered Cubic ParaCrystal Model]
18 //                             Parameters;
19 //                             scale: volume fraction of spheres
20 //                             bkg:background, R: radius of sphere
21 //                             dnn: Nearest neighbor distance
22 //                             d_factor: Paracrystal distortion factor
23 //                             radius: radius of the spheres
24 //                             sldSph: SLD of the sphere
25 //                             sldSolv: SLD of the solvent
26 //
27 //             </text>
28 //[FIXED]=  radius.width;phi.width;psi.width; theta.width
29 //[ORIENTATION_PARAMS]= <text> phi;psi; theta; phi.width;psi.width; theta.width</text>
30
31typedef struct {
32    /// Scale factor
33    //  [DEFAULT]=scale= 1.0
34    double scale;
35
36    /// Nearest neighbor distance [A]
37    //  [DEFAULT]=dnn=220.0 [A]
38    double dnn;
39
40    /// Paracrystal distortion factor g
41    //  [DEFAULT]=d_factor=0.06
42    double d_factor;
43
44    /// Radius of sphere [A]
45    //  [DEFAULT]=radius=40.0 [A]
46    double radius;
47
48    /// sldSph [1/A^(2)]
49    //  [DEFAULT]=sldSph= 3.0e-6 [1/A^(2)]
50    double sldSph;
51
52    /// sldSolv [1/A^(2)]
53    //  [DEFAULT]=sldSolv= 6.3e-6 [1/A^(2)]
54    double sldSolv;
55
56        /// Incoherent Background [1/cm]
57        //  [DEFAULT]=background=0 [1/cm]
58        double background;
[4628e31]59    /// Orientation of the a1 axis w/respect incoming beam [deg]
60    //  [DEFAULT]=theta=0.0 [deg]
[d5b6a9d]61    double theta;
[4628e31]62    /// Orientation of the a2 in the plane of the detector [deg]
63    //  [DEFAULT]=phi=0.0 [deg]
[d5b6a9d]64    double phi;
[4628e31]65    /// Orientation of the a3 in the plane of the detector [deg]
66    //  [DEFAULT]=psi=0.0 [deg]
[d5b6a9d]67    double psi;
68
69} BCParameters;
70
71
72
73/// 1D scattering function
74double bc_analytical_1D(BCParameters *pars, double q);
75
76/// 2D scattering function
77double bc_analytical_2D(BCParameters *pars, double q, double phi);
78double bc_analytical_2DXY(BCParameters *pars, double qx, double qy);
79double bc_analytical_2D_scaled(BCParameters *pars, double q, double q_x, double q_y);
80
81#endif
Note: See TracBrowser for help on using the repository browser.