Changeset 8a48713 in sasview for sansmodels/src/sans
- Timestamp:
- Jun 23, 2009 12:19:50 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:
- f41b4c3
- Parents:
- 3b9e023
- Location:
- sansmodels/src/sans/models
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_extensions/c_models.c
rdb1dcef r8a48713 27 27 28 28 addCCylinderModel(m); 29 addCParallelepipedModel(m); 29 30 addCCoreShellCylinderModel(m); 30 31 addCCoreShellModel(m); -
sansmodels/src/sans/models/c_models/c_models.cpp
r4d09267 r8a48713 9 9 10 10 void addCCylinderModel(PyObject *module); 11 void addCParallelepipedModel(PyObject *module); 11 12 void addCSphereModel(PyObject *module); 12 13 void addCHardsphereStructure(PyObject *module); … … 148 149 149 150 addCCylinderModel(m); 151 addCParallelepipedModel(m); 150 152 addCCoreShellCylinderModel(m); 151 153 addCCoreShellModel(m); -
sansmodels/src/sans/models/c_models/models.hh
ra0782f1 r8a48713 19 19 extern "C" { 20 20 #include "cylinder.h" 21 #include "parallelepiped.h" 21 22 } 22 23 … … 42 43 double evaluate_rphi(double q, double phi); 43 44 }; 45 46 class ParallelepipedModel{ 47 public: 48 // TODO: add 2D 49 // Model parameters 50 Parameter scale; 51 Parameter short_edgeA; 52 Parameter longer_edgeB; 53 Parameter longuest_edgeC; 54 Parameter contrast; 55 Parameter background; 56 Parameter parallel_theta; 57 Parameter parallel_phi; 58 59 // Constructor 60 ParallelepipedModel(); 61 62 // Operators to get I(Q) 63 double operator()(double q); 64 double operator()(double qx, double qy); 65 double evaluate_rphi(double q, double phi); 66 }; 67 44 68 45 69 class SphereModel{
Note: See TracChangeset
for help on using the changeset viewer.