Enhanced Ellipsoid Models for SasView

Description:

These models are designed to handle the integration of the highly oscillatory functions more effectively. By dynamically adjusting the number of Gauss–Legendre quadrature points based on the specific parameters of each function, these models ensure more precise and reliable results.
This approach significantly improves integration accuracy compared to standard methods, particularly in challenging scenarios where a quadrature with a fixed number of points might fail or be too inefficient. These optimized models are ready for use in SasView, providing enhanced performance without altering the original model functionalities.

Available Enhanced Ellipsoid Models
- Core-Shell Ellipsoid
- Ellipsoid

Installation
- Navigate to the models folder in the sasmodels package. This should be located in your Sasview installation.

- Copy the files ending in `*_high_res.c` and `*_high_res.py` here. You don't need to install all of them, just the `.py` and `.c` files of the model you require.

- Copy the `kron.c`, `lookup_cos.c`, `lookup_sin.c` to the `lib` folder located in the models folder.
These files exceed the maximum size of flies that can be uploaded so you can find them [here](https://github.com/davidnwobi/Integral-Fitting-Tool/tree/master/models/lib)

- In the same directory as the `lib` folder, create a folder named `integration` and place the `*_integration.c` file of the model you require there.

TL;DR
`*_high_res.c` and `*_high_res.py` -> sasmodels/models directory
`kron.c`, `lookup_cos.c`, `lookup_sin.c` -> sasmodels/models/lib directory
`*_integration.c` -> sasmodels/models/integration directory (create if it does not exist)

Details:

Created By davidnwobi
Uploaded Aug. 29, 2024, 10:10 p.m.
Category Ellipsoid
Score 0
Verified This model has not been verified by a member of the SasView team
In Library This model is not currently included in the SasView library. You must download the files and install it yourself.
Files core_shell_ellipsoid_high_res.c
core_shell_ellipsoid_high_res.py
core_shell_ellipsoid_high_res_integration.c
ellipsoid_high_res.c
ellipsoid_high_res.py
ellipsoid_high_res_integration.c

Comments:

No comments yet.

Please log in to add a comment.