Title: fsexray Keywords: Monte Carlo, Image, X-ray Computer: Macintosh Operating System: MacOS Programming Language: MPW C Hardware Requirements: FPU Author: Dr Alan R Wilson DSTO - AMRL, SSMD GPO Box 4331 Melbourne 3001 Victoria Australia. E'mail: wilsona@blackjack.cis.dsto.gov.au Fax:61 3 626 7087 Phone: 61 3 626 7508 Abstract: Monte Carlo Programs for calculating the x-ray intensity produced from bulk materials containing multiple verticle interfaces. General. The programs are used to calculate the x-rays generated from a progressive scan of points across multiple interfaces. The x-rays generated in the specimen are stored in 2-D arrays. The cell size of these arrays is variable to ensure that a very thin interface has at least one cell devoted to it. Suite of programs 1. fsexray - the Monte Carlo program. Produces a set of arrays for each element which contain the x-ray intensity at a specific point in the specimen. The arrays are 2D and sum the intensity parallel to the interface. 2. xray - determines the x-ray intensity at the entrance to the detector. Includes absorbtion in the specimen but no detector absorbtion etc. The x-ray detector is assumed to be in a plain perpendicular to the interface. Assumes all x-rays generated in fsexray head towards the detector. (Uses the results from fsexray.) 3. imagexray - converts the fsexray results to an array of 16 bit unsigned integers sutiable for display in the PD program Image. Each element at each point in the scan has its own array. Note that each pixel in this array may not be equivalent to the same lateral distance in the specimen since the finite element arrays used to store the x-ray intensities may have variable element widths to allow for very thin interfaces. Code. Written for Apple Macintosh computers with FPU. Some structures are used across all three routines and if changed in one must be changed in the others. All code has been developed in MPW C. I expect to migrate the code to native PowerMacintosh in the future. Executables. Executable code is included in this file. Copyright. The programs are copyright of the author however they are available for use in the public domain but not for sale in any form. The programs are not guaranteed to be bug free and any feed back from there use would be greatly appreciated. Normal acknowledgement of the use of these in any published work is expected.