Changeset 39a06c9 in sasmodels for sasmodels/generate.py
- Timestamp:
- Oct 25, 2018 5:58:26 PM (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:
- 81751c2
- Parents:
- 304c775
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
re44432d r39a06c9 24 24 dimension, or 1.0 if no volume normalization is required. 25 25 26 *ER(p1, p2, ...)* returns the effective radius of the form with 27 particular dimensions. 28 29 *VR(p1, p2, ...)* returns the volume ratio for core-shell style forms. 26 *shell_volume(p1, p2, ...)* returns the volume of the shell for forms 27 which are hollow. 28 29 *effective_radius(mode, p1, p2, ...)* returns the effective radius of 30 the form with particular dimensions. Mode determines the type of 31 effective radius returned, with mode=1 for equivalent volume. 30 32 31 33 #define INVALID(v) (expr) returns False if v.parameter is invalid … … 72 74 background. This will work correctly even when polydispersity is off. 73 75 74 *ER* and *VR* are python functions which operate on parameter vectors.75 The constructor code will generate the necessary vectors for computing76 them with the desired polydispersity.77 76 The kernel module must set variables defining the kernel meta data: 78 77 … … 106 105 create the OpenCL kernel functions. The files defining the functions 107 106 need to be listed before the files which use the functions. 108 109 *ER* is a python function defining the effective radius. If it is110 not present, the effective radius is 0.111 112 *VR* is a python function defining the volume ratio. If it is not113 present, the volume ratio is 1.114 107 115 108 *form_volume*, *Iq*, *Iqac*, *Iqabc* are strings containing
Note: See TracChangeset
for help on using the changeset viewer.