[959eb01] | 1 | """ |
---|
| 2 | Real-Space Modeling for SAS |
---|
[f2ea95a] | 3 | """ |
---|
[959eb01] | 4 | ## \mainpage Real-Space Modeling for SAS |
---|
| 5 | # |
---|
| 6 | # \section intro_sec Introduction |
---|
[f2ea95a] | 7 | # This module provides SAS scattering intensity simulation |
---|
[959eb01] | 8 | # based on real-space modeling. |
---|
| 9 | # |
---|
[f2ea95a] | 10 | # Documentation can be found here: |
---|
[959eb01] | 11 | # http://danse.us/trac/sas/wiki/RealSpaceModeling |
---|
| 12 | # |
---|
| 13 | # \section install_sec Installation |
---|
| 14 | # |
---|
| 15 | # \subsection obtain Obtaining the Code |
---|
| 16 | # |
---|
| 17 | # The code is available here: |
---|
| 18 | # \verbatim |
---|
| 19 | #$ svn co svn://danse.us/sas/realSpaceModeling |
---|
| 20 | #$ svn co svn://danse.us/sas/RealSpaceTopLayer |
---|
| 21 | # \endverbatim |
---|
| 22 | # |
---|
| 23 | # \subsection depends External Dependencies |
---|
| 24 | # None |
---|
| 25 | # |
---|
| 26 | # \subsection build Building the code |
---|
| 27 | # The standard python package can be built with distutils. |
---|
| 28 | # From the realSpaceModeling directory: |
---|
| 29 | # \verbatim |
---|
| 30 | #$ python setup.py install |
---|
| 31 | # \endverbatim |
---|
| 32 | # |
---|
| 33 | # From the RealSpaceTopLayer/src directory: |
---|
| 34 | # \verbatim |
---|
| 35 | #$ python setup.py install |
---|
| 36 | # \endverbatim |
---|
| 37 | # |
---|
| 38 | # \section overview_sec Package Overview |
---|
[f2ea95a] | 39 | # |
---|
[959eb01] | 40 | # \subsection class Class Diagram: |
---|
| 41 | # \image html real-space-class-diagram.png |
---|
| 42 | # |
---|
| 43 | # \subsection behav Behavior Enumeration: |
---|
[f2ea95a] | 44 | # \image html enum.png |
---|
[959eb01] | 45 | # |
---|
| 46 | # \subsection Tutorial |
---|
| 47 | # To create an empty canvas: |
---|
| 48 | # \verbatim |
---|
| 49 | #import sas.realspace.VolumeCanvas as VolumeCanvas |
---|
| 50 | # canvas = VolumeCanvas.VolumeCanvas() |
---|
| 51 | # \endverbatim |
---|
| 52 | # |
---|
| 53 | # To set the simulation point density: |
---|
| 54 | # \verbatim |
---|
| 55 | # canvas.setParam('lores_density', 0.01) |
---|
| 56 | # \endverbatim |
---|
| 57 | # |
---|
| 58 | # To add an object: |
---|
| 59 | # \verbatim |
---|
| 60 | # sphare = VolumeCanvas.SphereDescriptor() |
---|
| 61 | # handle = canvas.addObject(sphere) |
---|
| 62 | # canvas.setParam('%s.radius' % handle, 15.0) |
---|
| 63 | # \endverbatim |
---|
| 64 | # |
---|
| 65 | # To evaluate the scattering intensity at a given q: |
---|
| 66 | # \verbatim |
---|
| 67 | # output, error = canvas.getIqError(q=0.1) |
---|
| 68 | # output, error = canvas.getIq2DError(qx=0.1, qy=0.1) |
---|
| 69 | # \endverbatim |
---|
| 70 | # |
---|
| 71 | # To get the value of a parameter: |
---|
| 72 | # \verbatim |
---|
| 73 | # canvas.getParam('scale') |
---|
| 74 | # \endverbatim |
---|
| 75 | # |
---|
| 76 | # Examples are available as unit tests under sas.realspace.test. |
---|
| 77 | # |
---|
| 78 | # \section help_sec Contact Info |
---|
| 79 | # Code and Documentation by Jing Zhou as part of the DANSE project. |
---|