Changeset 18f2ca1 in sasview for sansmodels/src/sans/models/c_models
- Timestamp:
- Oct 15, 2010 6:43:06 PM (14 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:
- 2e862a0
- Parents:
- 495c377
- Location:
- sansmodels/src/sans/models/c_models
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/c_models.cpp
rfbd09fa0 r18f2ca1 16 16 void addCTriaxialEllipsoidModel(PyObject *module); 17 17 void addCParallelepipedModel(PyObject *module); 18 void addCCSParallelepipedModel(PyObject *module); 18 19 void addCSphereModel(PyObject *module); 19 20 void addCOnionModel(PyObject *module); … … 227 228 addCCappedCylinderModel(m); 228 229 addCParallelepipedModel(m); 230 addCCSParallelepipedModel(m); 229 231 addCCoreShellCylinderModel(m); 230 232 addCCoreShellModel(m); -
sansmodels/src/sans/models/c_models/models.hh
r339ce67 r18f2ca1 98 98 class ParallelepipedModel{ 99 99 public: 100 // TODO: add 2D101 100 // Model parameters 102 101 Parameter scale; … … 121 120 }; 122 121 122 123 class CSParallelepipedModel{ 124 public: 125 // Model parameters 126 Parameter scale; 127 Parameter shortA; 128 Parameter midB; 129 Parameter longC; 130 Parameter rimA; 131 Parameter rimB; 132 Parameter rimC; 133 Parameter sld_rimA; 134 Parameter sld_rimB; 135 Parameter sld_rimC; 136 Parameter sld_pcore; 137 Parameter sld_solv; 138 Parameter background; 139 Parameter parallel_theta; 140 Parameter parallel_phi; 141 Parameter parallel_psi; 142 143 // Constructor 144 CSParallelepipedModel(); 145 146 // Operators to get I(Q) 147 double operator()(double q); 148 double operator()(double qx, double qy); 149 double calculate_ER(); 150 double evaluate_rphi(double q, double phi); 151 }; 123 152 124 153 class OnionModel{
Note: See TracChangeset
for help on using the changeset viewer.