SasView / sasmodels

Package for calculation of small angle scattering models using OpenCL.
BSD 3-Clause "New" or "Revised" License
15 stars 27 forks source link

Add model for cubic sponge phase (Trac #289) #223

Open ajj opened 5 years ago

ajj commented 5 years ago

Student of Tommy Nylander, Maria Valldeperas, has asked to be able to add a model for her system which is a cubic sponge phase of lipids.

Might be doable with python, but I suspect that some polydispersity will be needed from previous fitting of these systems that Tommy is working on.

Paper attached.

Migrated from http://trac.sasview.org/ticket/289

{
    "status": "assigned",
    "changetime": "2019-03-25T17:46:30",
    "_ts": "2019-03-25 17:46:30.063239+00:00",
    "description": "Student of Tommy Nylander, Maria Valldeperas, has asked to be able to add a model for her system which is a cubic sponge phase of lipids.\n\nMight be doable with python, but I suspect that some polydispersity will be needed from previous fitting of these systems that Tommy is working on.\n\nPaper attached.",
    "reporter": "ajj",
    "cc": "",
    "resolution": "",
    "workpackage": "SasModels New Model",
    "time": "2015-01-12T08:00:37",
    "component": "SasView",
    "summary": "Add model for cubic sponge phase",
    "priority": "minor",
    "keywords": "",
    "milestone": "SasView Next Release +1",
    "owner": "none",
    "type": "enhancement"
}
ajj commented 5 years ago

Trac update at 2015/01/12 08:01:53: ajj changed attachment from "" to "SAXS_cubic_lipid.pdf"

butlerpd commented 5 years ago

Trac update at 2015/02/01 23:14:46: butler changed workpackage from "SasView Bug Fixing" to "SasModels New Model"

butlerpd commented 5 years ago

Trac update at 2019/03/03 01:55:26:

actually Maria worked with me to get !SasView 4.2.x (developer versions) to work (is how we found the problems with double loading of math etc). I believe she eventually got this to work and I may have the code that enventually worked. We should ask her and/or Tommy about getting that added?

butlerpd commented 5 years ago

Trac update at 2019/03/03 17:08:15:

The reference she used for her model is:

L. Porcar, W.A. Hamilton, P.D. Butler, G.G. Warr; Langmuir 19, 10779-10794 (2003)

Equations 1 for S(Q) and 2 for P(Q).

to:

1551633265596227

The reference she used for her model is:

L. Porcar, W.A. Hamilton, P.D. Butler, G.G. Warr; Langmuir 19, 10779-10794 (2003)

Equations 1 for S(Q) and 2 for P(Q).

butlerpd commented 5 years ago

Trac update at 2019/03/25 17:46:30: butler commented:

Maria Valldeperas implemented this model for her thesis. Attached are the various files she created in the process that can be used as a starting point. The first two are just equation 1 and 2 from the paper listed above (the disk "form factor" and the "structure factor" used to create the sponge). She then modified equation one to: since the first part of the equation was not changing much the fitting and I wanted to simplify the model

She also created two versions of this simplified model with a single and a double "broad peak" respectively. We need to figure out which of these we need to/want to implement.

butlerpd commented 5 years ago

Trac update at 2019/03/25 17:52:52:

Original Equation 1

butlerpd commented 5 years ago

Trac update at 2019/03/25 17:53:33:

Original Equation 2

butlerpd commented 5 years ago

Trac update at 2019/03/25 17:56:24:

Modified Equation 1 with one peak

butlerpd commented 5 years ago

Trac update at 2019/03/25 17:57:49:

Modified Equation 2 with 2 peaks

butlerpd commented 3 years ago

I had to change the .py to .txt in order to be able to add these. they are available from the trac link above but if that ever ges away I thought it would be good to have them here.

Eq.2_Porcar_et_al. L3 Pq.txt Eq.1 Porcar et al. L3_Sq.txt L3 Sq_1peak_Eq.1 modified.txt L3 Sq_2peaks_Eq.1 modified.txt

butlerpd commented 3 years ago

Probably we should look at the 1 and 2 peak modifications to see if they make sense and/or they can be written in a way that the right parameter choices get you back to the original?