.. algorithm:: .. summary:: .. relatedalgorithms:: .. properties:: Description ----------- Calculates the multiple scattering contribution for deep inelastic neutron scattering on the `Vesuvio `__ instrument at ISIS. The algorithm follows the procedures defined by J. Mayers et al. [1]_. To improve the speed of the calculation, OpenMP was used for the calculation of scattering contributions per spectrum. Users are recommended to use the user properties file :ref:`properties file `, ``Mantid.user.properties``, to set the parameter ``MultiThreaded.MaxCores`` to 0 for a better utilisation of available cores. Usage ----- .. code-block:: python runs = "" # fill in run numbers here ip_file = "" # fill in IP file here data = LoadVesuvio(Filename="my-file", SpectrumList=spectra, Mode="SingleDifference", InstrumentParFile=ip_file) # Cut it down to the typical range data = CropWorkspace(raw_ws,XMin=50.0,XMax=562.0) # Coarser binning data = Rebin(raw_ws, Params=[49.5, 1.0, 562.5]) # Create sample shape height = 0.1 # y-dir (m) width = 0.1 # x-dir (m) thick = 0.005 # z-dir (m) half_height, half_width, half_thick = 0.5*height, 0.5*width, 0.5*thick xml_str = \ " " \ + " " % (half_width,-half_height,half_thick) \ + " " % (half_width, half_height, half_thick) \ + " " % (half_width, -half_height, -half_thick) \ + " " % (-half_width, -half_height, half_thick) \ + "" CreateSampleShape(data, xml_str) atom_props = [1.007900, 0.9272392, 5.003738, 16.00000, 3.2587662E-02, 13.92299, 27.50000, 4.0172841E-02, 15.07701] tot_scatter, ms_scatter = \ VesuvioCalculateMS(data, NoOfMasses=3, SampleDensity=241, AtomicProperties=atom_props, BeamRadius=2.5) References ---------- .. [1] J. Mayers, A.L. Fielding and R. Senesi, `Nucl. Inst Methods A 481, 454(2002) `__ .. categories:: .. sourcelink::