[SasView Users] Inquiry regarding fitting the SAXS data

Stephen King - STFC UKRI via users users at lists.sasview.org
Thu Apr 18 05:18:10 EDT 2024


Dear Rini,

Please could you install release version 5.0.6 and try that.

Kind regards,
Steve King


On behalf of the Development Team

SasView is a not-for-profit collaboration. If you would like to get involved, please visit https://www.sasview.org/contribute/



From: users <users-bounces at lists.sasview.org> On Behalf Of Rini P R via users
Sent: 18 April 2024 10:12
To: Paul Butler <butlerpd at udel.edu>
Cc: users at sasview.org
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data

Hi Paul,

Thank you very much for your email and for providing all the helpful links. It helps a lot!

I have found that the Raspberry model is not suitable for my systems, so I have created a plugin model using the power law and a cylinder. However, I needed to include the hayter_msa as structure factor. The tutorial showed how to include the structure factor in these plugin models, and I tried to follow the same steps.
[cid:image001.png at 01DA9179.B5786E90]

[cid:image002.png at 01DA9179.B5786E90]

But when I tried to do that I am getting an error message in Sasview as

[cid:image003.png at 01DA9179.B5786E90]
I tried to multiply the plugin model with structure factor, but I do not get the screen that I am supposed to get.

I am using sasview 6.0.0a1 which I downloaded from the github.

Could you please look into it and tell me what is the source of the error?

Best regards,
Rini PR

PhD candidate
Institute for Energy Technology (IFE)
Kjeller, Norway

Workplace:
Soft and Complex matter lab
Department of Physics
Norwegian University of Science and Technology (NTNU)
Trondheim, Norway
________________________________
From: Paul Butler <butlerpd at udel.edu<mailto:butlerpd at udel.edu>>
Sent: Wednesday, April 17, 2024 16:46
To: Rini P R <rinipr at stud.ntnu.no<mailto:rinipr at stud.ntnu.no>>
Cc: users at sasview.org<mailto:users at sasview.org> <users at sasview.org<mailto:users at sasview.org>>
Subject: Re: [SasView Users] Inquiry regarding fitting the SAXS data


Hi Rini,


Just to clarify your question. I assume you are saying that the “raspberry model,” which was developed by the Pozzo group at the University of Washington to model pickering emulsions is not suitable for your case and you have developed your own plugin model?

Or is the question how to write a plugin model based on a model you have developed theoretically? Or is the question that your plugin does not allow you to multiply a structure factor with it?. Or are you wanting to write your own structure factor plugin? If in fact that next to last is what you are looking for, that should be pretty straightforward. Basically you will need to define the effective radius for interactions in your plugin model as described here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#form-factors

If you also want to be able to include the beta approximation option you will also need to calculate the F(Q) in your model (currently would require a c model) and declare that Fq is available in the python part of your model as described here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#structure-factors

Finally, if you want to create a structure factor you just need to include that flag (structure_factor=true) as explained here: https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/plugin.html#model-definition


Also we now have a tutorial on writing custom models available here: https://www.sasview.org/downloads/creating_custom_fitting_models_in_sasview_v5.pdf


Let me know if any of this helps, if you need more information, or if you are looking for something completely different


Stay safe


Paul Butler

developer team member


On Wed, Apr 17, 2024 at 5:11 AM Rini P R via users <users at lists.sasview.org<mailto:users at lists.sasview.org>> wrote:
Dear SasView Team,

I hope this message finds you well. My name is Rini and I am a PhD candidate in the Department of Physics at the Norwegian University of Science and Technology, Trondheim, Norway.

I have a specific question and I'm not sure who to contact. We are working with Pickering emulsions made with food-grade materials and have encountered challenges in fitting the data from our recent SAXS experiment with the available models. We have concluded that combining a structure factor with our current plugin model will enable us to fit our data and extract the information we need.

Could you please direct me to the right person or help me get in touch with someone who can assist us with modifying the model as described?

Thank you in advance for your time and support.

Best regards,
Rini PR

PhD candidate
Institute for Energy Technology (IFE)
Kjeller, Norway

Workplace:
Soft and Complex matter lab
Department of Physics
Norwegian University of Science and Technology (NTNU)
Trondheim, Norway
_______________________________________________
users mailing list
users at lists.sasview.org<mailto:users at lists.sasview.org>
http://lists.sasview.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/37a6bbab/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 52293 bytes
Desc: image001.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/37a6bbab/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 24081 bytes
Desc: image002.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/37a6bbab/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 75506 bytes
Desc: image003.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/37a6bbab/attachment-0005.png>


More information about the users mailing list