Ignore:
Timestamp:
Aug 14, 2009 3:58:58 PM (15 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:
d5bd424
Parents:
cad821b
Message:

working on 2D models. Still need smore corrections and unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/LamellarModel.py

    r9bd69098 r975ec8e  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          delta           = 50.0 [A] 
    36          sigma           = 0.15  
    37          contrast        = 5.3e-006 [1/A²] 
     35         bi_thick        = 50.0 [A] 
     36         sld_bi          = 1e-006 [1/A²] 
     37         sld_sol         = 6.3e-006 [1/A²] 
    3838         background      = 0.0 [1/cm] 
    3939 
     
    5252        self.description ="""[Dilute Lamellar Form Factor](from a lyotropic lamellar phase) 
    5353                I(q)= 2*pi*P(q)/(delta *q^(2)), where 
    54                 P(q)=2*(contrast/q)^(2)*(1-cos(q*delta) 
    55                 *e^(1/2*(q*sigma)^(2)). 
    56                 delta = bilayer thickness 
    57                 sigma = variation in bilayer thickness 
    58                 = delta*polydispersity 
    59                 contrast = SLD_solvent - SLD_bilayer 
    60                 Note: the polydispersity in delta is included.""" 
     54                P(q)=2*(contrast/q)^(2)*(1-cos(q*delta))^(2)) 
     55                bi_thick = bilayer thickness 
     56                sld_bi = SLD of bilayer 
     57                sld_sol = SLD of solvent 
     58                background = Incoherent background 
     59                scale = scale factor 
     60                """ 
    6161        
    6262                ## Parameter details [units, min, max] 
    6363        self.details = {} 
    6464        self.details['scale'] = ['', None, None] 
    65         self.details['delta'] = ['[A]', None, None] 
    66         self.details['sigma'] = ['', None, None] 
    67         self.details['contrast'] = ['[1/A²]', None, None] 
     65        self.details['bi_thick'] = ['[A]', None, None] 
     66        self.details['sld_bi'] = ['[1/A²]', None, None] 
     67        self.details['sld_sol'] = ['[1/A²]', None, None] 
    6868        self.details['background'] = ['[1/cm]', None, None] 
    6969 
Note: See TracChangeset for help on using the changeset viewer.