Changeset 3d25331f in sasview for sansmodels/src/sans/models/c_models
- Timestamp:
- Jul 9, 2009 2:51:02 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:
- cee6867
- Parents:
- 793c988
- Location:
- sansmodels/src/sans/models/c_models
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/c_models.cpp
r27fea3f r3d25331f 32 32 void addCLamellarFFHGModel(PyObject *module); 33 33 void addCHollowCylinderModel(PyObject *module); 34 void addCMultiShellModel(PyObject *module); 35 void addCVesicleModel(PyObject *module); 36 void addCBinaryHSModel(PyObject *module); 34 37 35 38 … … 183 186 addCLamellarFFHGModel(m); 184 187 addCHollowCylinderModel(m); 188 addCMultiShellModel(m); 189 addCBinaryHSModel(m); 185 190 addDisperser(m); 186 191 addCGaussian(m); 187 192 addCLorentzian(m); 193 addCVesicleModel(m); 188 194 189 195 -
sansmodels/src/sans/models/c_models/models.hh
r27fea3f r3d25331f 483 483 double evaluate_rphi(double q, double phi); 484 484 }; 485 486 class MultiShellModel{ 487 public: 488 // Model parameters 489 Parameter scale; 490 Parameter core_radius; 491 Parameter s_thickness; 492 Parameter w_thickness; 493 Parameter core_sld; 494 Parameter shell_sld; 495 Parameter n_pairs; 496 Parameter background; 497 498 //Constructor 499 MultiShellModel(); 500 501 //Operators to get I(Q) 502 double operator()(double q); 503 double operator()(double qx , double qy); 504 double evaluate_rphi(double q, double phi); 505 }; 506 507 class VesicleModel{ 508 public: 509 // Model parameters 510 Parameter scale; 511 Parameter core_radius; 512 Parameter thickness; 513 Parameter core_sld; 514 Parameter shell_sld; 515 Parameter background; 516 517 //Constructor 518 VesicleModel(); 519 520 //Operators to get I(Q) 521 double operator()(double q); 522 double operator()(double qx , double qy); 523 double evaluate_rphi(double q, double phi); 524 }; 525 526 class BinaryHSModel{ 527 public: 528 // Model parameters 529 Parameter l_radius; 530 Parameter s_radius; 531 Parameter vol_frac_ls; 532 Parameter vol_frac_ss; 533 Parameter ls_sld; 534 Parameter ss_sld; 535 Parameter solvent_sld; 536 Parameter background; 537 538 //Constructor 539 BinaryHSModel(); 540 541 //Operators to get I(Q) 542 double operator()(double q); 543 double operator()(double qx , double qy); 544 double evaluate_rphi(double q, double phi); 545 }; 546 485 547 #endif
Note: See TracChangeset
for help on using the changeset viewer.