Changeset 94a3f8f in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Oct 7, 2010 4:27:47 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:
d5b6a9d
Parents:
a1ecfc3
Message:

added simple cubic paracrystal 1d and anisotropic model; still needs more test and doc.s

Location:
sansmodels/src/sans/models
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/c_models.cpp

    r35aface r94a3f8f  
    2020void addCHardsphereStructure(PyObject *module); 
    2121void addCStickyHSStructure(PyObject *module); 
     22void addCSCCrystalModel(PyObject *module); 
    2223void addCSquareWellStructure(PyObject *module); 
    2324void addCHayterMSAStructure(PyObject *module); 
     
    229230        addCHardsphereStructure(m); 
    230231        addCStickyHSStructure(m); 
     232        addCSCCrystalModel(m); 
    231233        addCSquareWellStructure(m); 
    232234        addCHayterMSAStructure(m); 
  • sansmodels/src/sans/models/c_models/models.hh

    r35aface r94a3f8f  
    278278        // Constructor 
    279279        SphereModel(); 
     280 
     281        // Operators to get I(Q) 
     282        double operator()(double q); 
     283        double operator()(double qx, double qy); 
     284        double calculate_ER(); 
     285        double evaluate_rphi(double q, double phi); 
     286}; 
     287 
     288 
     289class SCCrystalModel{ 
     290public: 
     291        // Model parameters 
     292        Parameter scale; 
     293        Parameter dnn; 
     294        Parameter d_factor; 
     295        Parameter radius; 
     296        Parameter sldSph; 
     297        Parameter sldSolv; 
     298        Parameter background; 
     299        Parameter theta; 
     300        Parameter phi; 
     301        Parameter psi; 
     302 
     303        // Constructor 
     304        SCCrystalModel(); 
    280305 
    281306        // Operators to get I(Q) 
Note: See TracChangeset for help on using the changeset viewer.