Comparing Id and Haskell in a Monte Carlo Photon Transport Code Y Capsule Review

نویسنده

  • Olaf Lubeck
چکیده

In this paper we present functional Id and Haskell versions of a large Monte Carlo radiation transport code, and compare the two languages with respect to their expressiveness. Monte Carlo transport simulation exercises such abilities as parsing, input/output, recur-sive data structures and traditional number crunching, which makes it a good test problem for languages and compilers. Using some code examples, we compare the programming styles encouraged by the two languages. In particular, we discuss the eeect of laziness on programming style. We point out that resource management problems currently prevent running realistically large problem sizes in the functional versions of the code. The Monte Carlo technique has a long history. Its importance has grown in tandem with the availability of cheap computing power. The authors outline the functionality of a large Monte Carlo simulation program, and demonstrate that a simpliied kernel version can be cleanly coded in a functional style. They illustrate some eeects of functional language implementation on programming style. It is characteristic of the Monte Carlo method that code validation and debugging depend on high-statistics results. The authors frankly describe the problems encountered in obtaining such results from the functional codes. Their experiences highlight the need for future research to address speciic implementation problems. Chief among these needs are eeective debugging tools for inspecting partial results and eecient yet unobtrusive methods of memory management. Reports of this kind provide important empirical data on the practice of functional programming that can help guide both application development and language support research.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Developement a simple point source model for Elekta SL-25 linear accelerator using MCNP4C Monte Carlo code

Background: Monte Carlo (MC) modeling of a linear accelerator is a prerequisite for Monte Carlo dose calculations in external beam radiotherapy. In this study, a simple and efficient model was developed for Elekta SL-25 linear accelerator using MCNP4C Monte Carlo code Materials and methods: The head of Elekta SL-25 linac was simulated for 6 and 18 MV photon beams using MCNP4C MC code. Energ...

متن کامل

The dosimetry assessment of Varian Linear Accelerators of 6, 15 and 20 MV by Monte Carlo Method

 Introduction: Monte Carlo method is often applied in radiation therapy as utilized in all the branches of science. An important requirement for successful radiotherapy is carefully examine the dose distribution specifications and decrease the difference between these features with experience to an acceptable level. In this study, the characteristics of 6, 15 and 20 MeV incident x-rays are prov...

متن کامل

Comparison of MCNP4C, 4B and 4A Monte Carlo codes when calculating electron therapy depth doses

ABSTRACT Background: accurate methods of radiation therapy dose calculation. There are different Monte Carlo codesfor simulation of photons, electrons and the coupled transport of electrons and photons. MCNPis a general purpose Monte Carlo code that can be used for electron, photon and coupledphoton-electron transport.Monte Carlo simulation of radiation transport is considered to be one of the ...

متن کامل

Dose Calculations for Lung Inhomogeneity in High-Energy Photon Beams and Small Beamlets: A Comparison between XiO and TiGRT Treatment Planning Systems and MCNPX Monte Carlo Code

Introduction Radiotherapy with small fields is used widely in newly developed techniques. Additionally, dose calculation accuracy of treatment planning systems in small fields plays a crucial role in treatment outcome. In the present study, dose calculation accuracy of two commercial treatment planning systems was evaluated against Monte Carlo method. Materials and Methods Siemens Once or linea...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995