Changeset 2c4b289 in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Jul 13, 2009 9:17:07 AM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
770e4c9
Parents:
e4193d9
Message:
 
Location:
sansmodels/src/sans/models
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_extensions/c_models.c

    r3d25331f r2c4b289  
    5555        addCVesicleModel(m); 
    5656        addCBinaryHSModel(m); 
     57        addCBinaryHSPSF11Model(m); 
    5758 
    5859} 
  • sansmodels/src/sans/models/c_models/c_models.cpp

    r3d25331f r2c4b289  
    3535void addCVesicleModel(PyObject *module); 
    3636void addCBinaryHSModel(PyObject *module); 
     37void addCBinaryHSPSF11Model(PyObject *module); 
    3738 
    3839 
     
    188189        addCMultiShellModel(m); 
    189190        addCBinaryHSModel(m); 
     191        addCBinaryHSPSF11Model(m); 
    190192        addDisperser(m); 
    191193        addCGaussian(m); 
  • sansmodels/src/sans/models/c_models/models.hh

    r3d25331f r2c4b289  
    545545}; 
    546546 
     547class BinaryHSPSF11Model{ 
     548public: 
     549        // Model parameters 
     550        Parameter l_radius; 
     551        Parameter s_radius; 
     552        Parameter vol_frac_ls; 
     553        Parameter vol_frac_ss; 
     554        Parameter ls_sld; 
     555        Parameter ss_sld; 
     556        Parameter solvent_sld; 
     557        Parameter background; 
     558         
     559        //Constructor 
     560        BinaryHSPSF11Model(); 
     561         
     562        //Operators to get I(Q) 
     563        double operator()(double q); 
     564        double operator()(double qx , double qy); 
     565        double evaluate_rphi(double q, double phi); 
     566}; 
     567 
    547568#endif 
Note: See TracChangeset for help on using the changeset viewer.