Changeset 8c8cb05 in sasview for sansmodels/src/sans/models
- Timestamp:
- Jul 22, 2011 4:35:48 PM (13 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:
- ca153ba
- Parents:
- 204d0fa
- Location:
- sansmodels/src/sans/models
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/c_models.cpp
r59b9b675 r8c8cb05 20 20 void addCSphereSLDModel(PyObject *module); 21 21 void addCOnionModel(PyObject *module); 22 void addCPearlNecklaceModel(PyObject *module); 22 23 void addCReflModel(PyObject *module); 23 24 void addCReflAdvModel(PyObject *module); … … 282 283 addCDiamCylFunc(m); 283 284 addCSLDCalFunc(m); 284 285 // addCOblateModel(m); 286 // addCProlateModel(m); 285 addCPearlNecklaceModel(m); 287 286 addCLamellarModel(m); 288 287 addCLamellarFFHGModel(m); -
sansmodels/src/sans/models/c_models/models.hh
r96656e3 r8c8cb05 562 562 563 563 564 class PearlNecklaceModel{ 565 public: 566 // Model parameters 567 Parameter scale; 568 Parameter radius; 569 Parameter edge_separation; 570 Parameter thick_string; 571 Parameter num_pearls; 572 Parameter sld_pearl; 573 Parameter sld_string; 574 Parameter sld_solv; 575 Parameter background; 576 577 // Constructor 578 PearlNecklaceModel(); 579 580 // Operators to get I(Q) 581 double operator()(double q); 582 double operator()(double qx, double qy); 583 double calculate_ER(); 584 double evaluate_rphi(double q, double phi); 585 }; 586 564 587 class FCCrystalModel{ 565 588 public:
Note: See TracChangeset
for help on using the changeset viewer.