Changeset 0f5bc9f in sasview for sansmodels/src/sans/models/c_extensions
- Timestamp:
- Aug 19, 2008 2:42:22 PM (17 years ago)
- 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:
- d30fdde
- Parents:
- a86bbe9
- Location:
- sansmodels/src/sans/models/c_extensions
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/c_models.cpp
raf03ddd r0f5bc9f 9 9 10 10 void addCCylinderModel(PyObject *module); 11 void addCSphereModel(PyObject *module); 12 void addCCoreShellModel(PyObject *module); 13 void addCCoreShellCylinderModel(PyObject *module); 14 void addCEllipsoidModel(PyObject *module); 15 void addCEllipticalCylinderModel(PyObject *module); 16 11 17 extern "C" { 12 void addCCoreShellCylinderModel(PyObject *module);13 void addCCoreShellModel(PyObject *module);14 void addCEllipsoidModel(PyObject *module);15 void addCSphereModel(PyObject *module);16 void addCEllipticalCylinderModel(PyObject *module);18 //void addCCoreShellCylinderModel(PyObject *module); 19 //void addCCoreShellModel(PyObject *module); 20 //void addCEllipsoidModel(PyObject *module); 21 //void addCSphereModel(PyObject *module); 22 //void addCEllipticalCylinderModel(PyObject *module); 17 23 void addDisperser(PyObject *module); 18 24 void addCGaussian(PyObject *module); -
sansmodels/src/sans/models/c_extensions/core_shell.h
rae3ce4e r0f5bc9f 2 2 #define core_shell_h 3 3 4 /** 5 * Structure definition for core-shell parameters 4 /** 5 * Structure definition for core-shell parameters 6 6 */ 7 7 //[PYTHONCLASS] = CoreShellModel 8 //[DISP_PARAMS] = radius, thickness 8 9 typedef struct { 9 /// Scale factor 10 /// Scale factor 10 11 // [DEFAULT]=scale=1.0 11 12 double scale; … … 27 28 /// Incoherent Background (cm-1) 0.000 28 29 // [DEFAULT]=background=0 cm-1 29 double background; 30 double background; 30 31 } CoreShellParameters; 31 32 -
sansmodels/src/sans/models/c_extensions/core_shell_cylinder.h
rae3ce4e r0f5bc9f 2 2 #define core_shell_cylinder_h 3 3 4 /** 5 * Structure definition for core-shell cylinder parameters 4 /** 5 * Structure definition for core-shell cylinder parameters 6 6 */ 7 7 //[PYTHONCLASS] = CoreShellCylinderModel 8 //[DISP_PARAMS] = radius, thickness, length, axis_theta, axis_phi 8 9 typedef struct { 9 /// Scale factor 10 /// Scale factor 10 11 // [DEFAULT]=scale=1.0 11 12 double scale; 12 13 13 14 /// Core radius [A] 14 15 // [DEFAULT]=radius=20.0 A 15 16 double radius; 16 17 17 18 /// Shell thickness [A] 18 19 // [DEFAULT]=thickness=10.0 A 19 20 double thickness; 20 21 21 22 /// Core length [A] 22 23 // [DEFAULT]=length=400.0 A 23 24 double length; 24 25 25 26 /// Core SLD [A-2] 26 27 // [DEFAULT]=core_sld=1.0e-6 A-2 27 28 double core_sld; 28 29 29 30 /// Shell SLD [A-2] 30 31 // [DEFAULT]=shell_sld=4.0e-6 A-2 31 32 double shell_sld; 32 33 33 34 /// Solvent SLD [A-2] 34 35 // [DEFAULT]=solvent_sld=1.0e-6 A-2 35 36 double solvent_sld; 36 37 37 38 /// Incoherent Background [cm-1] 38 39 // [DEFAULT]=background=0 cm-1 39 double background; 40 40 double background; 41 41 42 /// Orientation of the long axis of the core-shell cylinder w/respect incoming beam [rad] 42 43 // [DEFAULT]=axis_theta=1.57 rad 43 44 double axis_theta; 44 45 45 46 /// Orientation of the long axis of the core-shell cylinder in the plane of the detector [rad] 46 47 // [DEFAULT]=axis_phi=0.0 rad 47 double axis_phi; 48 48 double axis_phi; 49 49 50 } CoreShellCylinderParameters; 50 51 -
sansmodels/src/sans/models/c_extensions/ellipsoid.h
rae3ce4e r0f5bc9f 2 2 #define ellipsoid_h 3 3 4 /** 5 * Structure definition for ellipsoid parameters 4 /** 5 * Structure definition for ellipsoid parameters 6 6 * The ellipsoid has axes radius_b, radius_b, radius_a. 7 7 * Ref: Jan Skov Pedersen, Advances in Colloid and Interface Science, 70 (1997) 171-210 8 8 */ 9 9 //[PYTHONCLASS] = EllipsoidModel 10 //[DISP_PARAMS] = radius_a, radius_b, axis_theta, axis_phi 10 11 typedef struct { 11 /// Scale factor 12 /// Scale factor 12 13 // [DEFAULT]=scale=1.0 13 14 double scale; 14 15 /// Rotation axis radius_a [A] 15 16 /// Rotation axis radius_a [A] 16 17 // [DEFAULT]=radius_a=20.0 A 17 18 double radius_a; 18 19 /// Radius_b [A] 19 20 /// Radius_b [A] 20 21 // [DEFAULT]=radius_b=400 A 21 22 double radius_b; 22 23 /// Contrast [Å-2] 23 24 /// Contrast [Å-2] 24 25 // [DEFAULT]=contrast=3.0e-6 A-2 25 26 double contrast; 26 27 27 28 /// Incoherent Background [cm-1] 28 29 // [DEFAULT]=background=0 cm-1 29 double background; 30 30 double background; 31 31 32 /// Orientation of the long axis of the ellipsoid w/respect incoming beam [rad] 32 33 // [DEFAULT]=axis_theta=1.57 rad … … 34 35 /// Orientation of the long axis of the ellipsoid in the plane of the detector [rad] 35 36 // [DEFAULT]=axis_phi=0.0 rad 36 double axis_phi; 37 double axis_phi; 37 38 } EllipsoidParameters; 38 39 -
sansmodels/src/sans/models/c_extensions/elliptical_cylinder.h
rae3ce4e r0f5bc9f 2 2 #define ell_cylinder_h 3 3 4 /** Structure definition for cylinder parameters 4 /** Structure definition for cylinder parameters 5 5 * [PYTHONCLASS] = EllipticalCylinderModel 6 * [DISP_PARAMS] = r_minor, r_ratio, length, cyl_theta, cyl_phi, cyl_psi 7 * 6 8 * */ 7 9 typedef struct { 8 /// Scale factor 10 /// Scale factor 9 11 // [DEFAULT]=scale=1.0 10 12 double scale; … … 23 25 /// Incoherent Background (cm-1) 0.000 24 26 // [DEFAULT]=background=0 cm-1 25 double background; 27 double background; 26 28 /// Orientation of the cylinder axis w/respect incoming beam [rad] 27 29 // [DEFAULT]=cyl_theta=1.57 rad … … 29 31 /// Orientation of the cylinder in the plane of the detector [rad] 30 32 // [DEFAULT]=cyl_phi=0.0 rad 31 double cyl_phi; 33 double cyl_phi; 32 34 /// Orientation of major radius of the cross-section w/respect vector q [rad] 33 35 // [DEFAULT]=cyl_psi=0.0 rad 34 double cyl_psi; 36 double cyl_psi; 35 37 } EllipticalCylinderParameters; 36 38 -
sansmodels/src/sans/models/c_extensions/sphere.h
rae3ce4e r0f5bc9f 2 2 #define sphere_h 3 3 4 /** 5 * Structure definition for sphere parameters 4 /** 5 * Structure definition for sphere parameters 6 6 */ 7 7 //[PYTHONCLASS] = SphereModel 8 //[DISP_PARAMS] = radius 8 9 typedef struct { 9 /// Scale factor 10 /// Scale factor 10 11 // [DEFAULT]=scale=1.0e-6 11 12 double scale; 12 13 /// Radius of sphere [A] 13 14 /// Radius of sphere [A] 14 15 // [DEFAULT]=radius=60.0 A 15 16 double radius; 16 17 /// Contrast [Å-2] 17 18 /// Contrast [Å-2] 18 19 // [DEFAULT]=contrast=1.0 A-2 19 20 double contrast; 20 21 21 22 /// Incoherent Background [cm-1] 22 23 // [DEFAULT]=background=0 cm-1 23 double background; 24 double background; 24 25 } SphereParameters; 25 26
Note: See TracChangeset
for help on using the changeset viewer.