Changeset eddff027 in sasview for sansmodels/src/sans/models
- Timestamp:
- Aug 18, 2009 2:39:37 PM (15 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:
- 7df26c3
- Parents:
- 3c102d4
- Location:
- sansmodels/src/sans/models
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/spheroid.h
r975ec8e reddff027 2 2 #define spheroid_h 3 3 /** Structure definition for oblate parameters 4 * [PYTHONCLASS] = CoreShell SpheroidModel4 * [PYTHONCLASS] = CoreShellEllipsoidModel 5 5 * [DISP_PARAMS] = equat_core, polar_core, equat_shell,polar_shell,axis_phi, axis_theta 6 6 [DESCRIPTION] = <text>[SpheroidCoreShellModel] Calculates the form factor for an spheroid … … 21 21 Note:It is the users' responsibility to ensure 22 22 that shell radii are larger than core radii. 23 oblate shell: equatorial radius > polar radius 24 prolate shell: equatorial radius < polar radius 23 25 </text> 24 26 -
sansmodels/src/sans/models/c_models/c_models.cpp
r975ec8e reddff027 30 30 void addCLamellarPSModel(PyObject *module); 31 31 void addCLamellarPSHGModel(PyObject *module); 32 void addCCoreShell SpheroidModel(PyObject *module);32 void addCCoreShellEllipsoidModel(PyObject *module); 33 33 void addCOblateModel(PyObject *module); 34 34 void addCProlateModel(PyObject *module); … … 226 226 addCLamellarPSModel(m); 227 227 addCLamellarPSHGModel(m); 228 addCCoreShell SpheroidModel(m);228 addCCoreShellEllipsoidModel(m); 229 229 addCOblateModel(m); 230 230 addCProlateModel(m); -
sansmodels/src/sans/models/c_models/models.hh
r2cb89e7 reddff027 421 421 }; 422 422 423 class CoreShell SpheroidModel{423 class CoreShellEllipsoidModel{ 424 424 public: 425 425 // Model parameters … … 436 436 437 437 // Constructor 438 CoreShell SpheroidModel();438 CoreShellEllipsoidModel(); 439 439 440 440 // Operators to get I(Q) -
sansmodels/src/sans/models/c_models/spheroid.cpp
r975ec8e reddff027 32 32 } 33 33 34 CoreShell SpheroidModel :: CoreShellSpheroidModel() {34 CoreShellEllipsoidModel :: CoreShellEllipsoidModel() { 35 35 scale = Parameter(1.0); 36 36 equat_core = Parameter(200.0, true); … … 56 56 * @return: function value 57 57 */ 58 double CoreShell SpheroidModel :: operator()(double q) {58 double CoreShellEllipsoidModel :: operator()(double q) { 59 59 double dp[8]; 60 60 … … 139 139 * @return: function value 140 140 */ 141 double CoreShell SpheroidModel :: evaluate_rphi(double q, double phi) {141 double CoreShellEllipsoidModel :: evaluate_rphi(double q, double phi) { 142 142 return (*this).operator()(q); 143 143 } 144 144 145 145 146 double CoreShell SpheroidModel :: operator()(double qx, double qy) {146 double CoreShellEllipsoidModel :: operator()(double qx, double qy) { 147 147 SpheroidParameters dp; 148 148 // Fill parameter array
Note: See TracChangeset
for help on using the changeset viewer.