Changeset c78d677 in sasmodels
- Timestamp:
- Sep 28, 2018 8:31:31 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- c351383
- Parents:
- 9235fc3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/be_polyelectrolyte.py
r9235fc3 rc78d677 1 1 r""" 2 .. note:: Please read the Validation section below. 3 2 4 Definition 3 5 ---------- … … 20 22 21 23 $K$ is the contrast factor for the polymer which is defined differently than in 22 other models and is given in barns where $1 barn = 10^{-24}cm^2$. $K$ is24 other models and is given in barns where 1 $barn = 10^{-24}$ $cm^2$. $K$ is 23 25 defined as: 24 26 … … 29 31 a = b_p - (v_p/v_s) b_s 30 32 31 where $b_p$ and $b_s$ are sum of the scattering lengths of the atoms 32 constituting the monomer of the polymer and the sum of the scattering lengths 33 of the atoms constituting the solvent molecules respectively, and $v_p$ and 34 $v_s$ are the partial molar volume of the polymer and the solvent respectively 35 36 $L_b$ is the Bjerrum length(|Ang|) - **Note:** This parameter needs to be 37 kept constant for a given solvent and temperature! 38 39 $h$ is the virial parameter (|Ang^3|) - **Note:** See [#Borue]_ for the 40 correct interpretation of this parameter. It incorporates second and third 41 virial coefficients and can be Negative. 42 43 $b$ is the monomer length(|Ang|), $C_s$ is the concentration of monovalent 44 salt(1/|Ang|- converted from mol/L), $\alpha$ is the ionization degree 45 (ionization degree : ratio of charged monomers to total number of monomers), 46 $C_a$ is the polymer molar concentration(1/|Ang|- converted from mol/L), 47 and $background$ is the incoherent background. 33 where: 34 35 - $b_p$ and $b_s$ are **sum of the scattering lengths of the atoms** 36 constituting the polymer monomer and the solvent molecules, respectively. 37 38 - $v_p$ and $v_s$ are the partial molar volume of the polymer and the 39 solvent, respectively. 40 41 - $L_b$ is the Bjerrum length (|Ang|) - **Note:** This parameter needs to be 42 kept constant for a given solvent and temperature! 43 44 - $h$ is the virial parameter (|Ang^3|) - **Note:** See [#Borue]_ for the 45 correct interpretation of this parameter. It incorporates second and third 46 virial coefficients and can be *negative*. 47 48 - $b$ is the monomer length (|Ang|). 49 50 - $C_s$ is the concentration of monovalent salt(1/|Ang| - converted from mol/L). 51 52 - $\alpha$ is the degree of ionization (the ratio of charged monomers to the total 53 number of monomers) 54 55 - $C_a$ is the polymer molar concentration (1/|Ang| - converted from mol/L) 56 57 - $background$ is the incoherent background. 48 58 49 59 For 2D data the scattering intensity is calculated in the same way as 1D, … … 62 72 that in that implementation, while both the polymer concentration and salt 63 73 concentration were converted from experimental units of mol/L to more 64 dimensionally useful units of 1/|Ang |^3, only the converted version of the74 dimensionally useful units of 1/|Ang^3|, only the converted version of the 65 75 polymer concentration was actually being used in the calculation while the 66 unconverted salt concentration (still in apparent units of mol/L) was being used. This67 was carried through to sasmodels as used for sasview 4.1(though the line of code converting 68 the salt concentration to the new units was removed somewhere along the line).69 Simple dimensional analysis of the calculation shows that the 70 converted salt concentration should be used, which the original code suggests 71 was the intention, so this has now been corrected (for sasview 4.2). Once better 72 validation has been performed this note will be removed.76 unconverted salt concentration (still in apparent units of mol/L) was being 77 used. This was carried through to Sasmodels as used for SasView 4.1 (though 78 the line of code converting the salt concentration to the new units was removed 79 somewhere along the line). Simple dimensional analysis of the calculation shows 80 that the converted salt concentration should be used, which the original code 81 suggests was the intention, so this has now been corrected (for SasView 4.2). 82 Once better validation has been performed this note will be removed. 73 83 74 84 References
Note: See TracChangeset
for help on using the changeset viewer.