[SasView Users] Inquiry regarding fitting the SAXS data

Rini P R via users users at lists.sasview.org
Thu Apr 18 05:12:04 EDT 2024


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:86df6596-a5bf-4b17-a433-caa8f0f6b7a6]

[cid:7ecbfbc7-e18e-4ea2-ae0b-2d12632bc35c]

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

[cid:f6b1c3fe-8b00-4a40-a367-286adf4d1faf]
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>
Sent: Wednesday, April 17, 2024 16:46
To: Rini P R <rinipr at stud.ntnu.no>
Cc: users at sasview.org <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/93e62cec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-phe1fwj0.png
Type: image/png
Size: 80129 bytes
Desc: Outlook-phe1fwj0.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/93e62cec/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-awjn5a3x.png
Type: image/png
Size: 24081 bytes
Desc: Outlook-awjn5a3x.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/93e62cec/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-l0bvhdyq.png
Type: image/png
Size: 75506 bytes
Desc: Outlook-l0bvhdyq.png
URL: <http://lists.sasview.org/pipermail/users/attachments/20240418/93e62cec/attachment-0005.png>


More information about the users mailing list