Changeset 18f2ca1 in sasview for sansmodels/src/sans/models/c_models


Ignore:
Timestamp:
Oct 15, 2010 6:43:06 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

hope this was the last model left to add

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  
    1616void addCTriaxialEllipsoidModel(PyObject *module); 
    1717void addCParallelepipedModel(PyObject *module); 
     18void addCCSParallelepipedModel(PyObject *module); 
    1819void addCSphereModel(PyObject *module); 
    1920void addCOnionModel(PyObject *module); 
     
    227228        addCCappedCylinderModel(m); 
    228229        addCParallelepipedModel(m); 
     230        addCCSParallelepipedModel(m); 
    229231        addCCoreShellCylinderModel(m); 
    230232        addCCoreShellModel(m); 
  • sansmodels/src/sans/models/c_models/models.hh

    r339ce67 r18f2ca1  
    9898class ParallelepipedModel{ 
    9999public: 
    100         // TODO: add 2D 
    101100        // Model parameters 
    102101        Parameter scale; 
     
    121120}; 
    122121 
     122 
     123class CSParallelepipedModel{ 
     124public: 
     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}; 
    123152 
    124153class OnionModel{ 
Note: See TracChangeset for help on using the changeset viewer.