Opened 6 years ago
Closed 6 years ago
#1190 closed defect (invalid)
documentation for magnetism need update
Reported by: | richardh | Owned by: | smk78 |
---|---|---|---|
Priority: | minor | Milestone: | SasView 4.3.0 |
Component: | SasView | Keywords: | |
Cc: | Work Package: | SasView Documentation |
Description
docs for magnetism need changing as they claim that magnetism only works for 5 models, when in fact they should now work for all discrete particles i.e. all of cylinder, ellipsoid, parallelepiped & sphere categories.
Magnetic sld's are automatically generated for any parameter name starting sld_.
Except need to check whether there are any pure python models - see #1048
Paul K said: The calculation works by setting the effective SLD for each particle SLD based on the spin and scattering angle of the neutron and the angle of the magnetic field for that SLD. The scattering patterns for the different spin states (++, +-, -+, —) are then added proportionally. Assuming uniform magnetism within each particle component, I see no reason that this wouldn't apply to all particle types.
Change History (3)
comment:1 Changed 6 years ago by smk78
comment:2 Changed 6 years ago by pkienzle
Emphasis on parameter type instead of parameter name. So long as has "sld" in the fifth column, then the parameter can have a magnetic moment, even if it's name does not start with sld_.
comment:3 Changed 6 years ago by richardh
- Resolution set to invalid
- Status changed from new to closed
Apologies for great confusion caused, somehow I must have been looking at the docs for 4.1.2 where it says only 5 models have magnetism instead of docs for 4.2 as given by Steve above.
The only 5 models part still needs sorting in 5.0, see Jira issue 1199.
Meanwhile I will close this issue as invalid.
@richardh, which docs are you referring to please?
The docs just released with 4.2.0 say (this is from Writing a Plugin Model):
And Polarisation/Magnetic Scattering says: