source: sasview/src/sas/models/include/micelleSphCore.h @ c93122e

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 c93122e was 79492222, checked in by krzywon, 10 years ago

Changed the file and folder names to remove all SANS references.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#if !defined(micelleSphCore_h)
2#define micelleSphCore_h
3#include "parameters.hh"
4
5/**
6[PYTHONCLASS] = MicelleSphCoreModel
7[DISP_PARAMS] = radius_core, radius_gyr
8[DESCRIPTION] = <text>
9                Model parameters:   
10                ndensity : number density of micelles
11                v_core: volume block in core
12                v_corona: volume block in corona
13                rho_solv: sld of solvent
14                rho_core: sld of core
15                rho_corona: sld of corona
16                radius_core: radius of core
17                radius_gyr: radius of gyration of chains in corona
18                d_penetration: close to unity, mimics non-penetration of gaussian chains
19                n_aggreg: aggregation number of the micelle
20                background: incoherent background
21                scale : scale factor
22                </text>
23[FIXED]= <text> radius_core.width; radius_gyr.width </text>
24[ORIENTATION_PARAMS]= <text> </text>
25**/
26
27class MicelleSphCoreModel{
28public:
29
30    // Model parameters
31 
32    /// Scale factor
33    //  [DEFAULT]=scale= 1.0
34    Parameter scale;
35
36    /// Number density of micelles [1/cm^(3)]
37    //  [DEFAULT]=ndensity= 8.94e15 [1/cm^(3)]
38    Parameter ndensity;
39
40    /// Core volume [A]
41    //  [DEFAULT]=v_core= 62624. [A^3]
42    Parameter v_core;
43
44    /// Corona volume [A^(3)]
45    //  [DEFAULT]=v_corona= 61940. [A^(3)]
46    Parameter v_corona;
47
48    /// solvent scattering length density [1/A^(2)]
49    //  [DEFAULT]=rho_solv= 6.4e-6 [1/A^(2)]
50    Parameter rho_solv;
51
52    /// core scattering length density [1/A^(2)]
53    //  [DEFAULT]=rho_core= 3.4e-7 [1/A^(2)]
54    Parameter rho_core;
55
56    /// corona scattering length density [1/A^(2)]
57    //  [DEFAULT]=rho_corona= 8.0e-7 [1/A^(2)]
58    Parameter rho_corona;
59
60    /// core radius [A]
61    //  [DEFAULT]=radius_core= 45.0 [A]
62    Parameter radius_core;
63
64    /// radius of gyration of chains in corona[A]
65    //  [DEFAULT]=radius_gyr= 20.0 [A]
66    Parameter radius_gyr;
67
68    /// d factor to mimic non-penetration of Gaussian chains, close to unity
69    //  [DEFAULT]=d_penetration= 1.0
70    Parameter d_penetration;
71
72    /// aggregation number of the micelle
73    //  [DEFAULT]=n_aggreg= 6.0
74    Parameter n_aggreg;
75
76    /// Incoherent Background [1/cm]
77    //  [DEFAULT]=background=0 [1/cm]
78    Parameter background;
79
80    //Constructor
81    MicelleSphCoreModel();
82   
83    // Operators to get I(Q)
84    double operator()(double q);
85    double operator()(double qx, double qy);
86    double calculate_ER();
87    double calculate_VR();
88    double evaluate_rphi(double q, double phi);
89};
90#endif
Note: See TracBrowser for help on using the repository browser.