FLUKA for Mac OSX G. Battistoni, INFN Milano. System tested Mac OS X Yosemite (now 10.10.3) 64-bit...
-
Upload
maximilian-ford -
Category
Documents
-
view
221 -
download
1
Transcript of FLUKA for Mac OSX G. Battistoni, INFN Milano. System tested Mac OS X Yosemite (now 10.10.3) 64-bit...
FLUKA for Mac OSX
G. Battistoni, INFN Milano
System tested
Mac OS X Yosemite (now 10.10.3) 64-bit
fink as manager for software installation
gcc 4.9.2-1002, includes gfortran
Fluka:Development version fluka2014.5 (march 2015)Same version run in comparison under linux (Fedora 20 64 bit gfortran 4.8.3)
• Linux
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <values.h>
#include <stdarg.h>
• Mac
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <limits.h>
#include <float.h>
#include <stdarg.h>
Only problem in compilation$FLUKA/flutil/usbmax.c
Not found in Mac (not safely identified in the usual path of includes)
Seem to be the right replacement for values.h
Many test cases considered
Air
Proton beam
Tracker device with 6 X-Y planes of scintillating fibers0.05 mm pitch
Thick plastic scintllatorPixellated LYSO crystal
An example (INSIDE project) Large use of LATTICE… (384x2x6 fibers 24x24 LYSO pyxels)
Output and Test results
• Standard
USRBIN
• User output
Detailed dump event by event of track history, energy depositions in each detector element
Test successful (several cycles and events)
- Identical history of random seeds in Linux and Mac
- No difference at all in results between Mac and Linux version both in standard and user output (also same size of files)
Flair installation
Started from flair*tgz packages to be locally compiledTested versions: 2.1-0, 2.1-1 and 2.1-3 (the most recent one)
Available Gnuplot is v.5.0.0-3Important:Non positive experience with python from installers (*.dmg) downloaded from https://www.python.org/downloads/mac-osx/ or similar!
Also python packages shoud be installed using fink software goes into /sw/lib/python2.7/site-packages /sw/bin/python
The easy_install command from python setuptools has also to be used.
Notice: in mac-osx tkinter goes with python installation You will not find it explicitly with fink
Most important
Pillow-2.7.0-py2.7
pydicom-0.9.9-py2.7
numpy-1.9.2-py2.7
gnuplot python interface 1.8-1004
Pythons packages
Recently added (including dependencies) required by last version 2.1-3
(some trouble also under llnux…)
matplotlib-1.3.1
pytz
six-1.8.0-py2.7
python_dateutil-2.2
PyOpenGL-3.0.2
tornado
wx-2.8-gtk2-unicode
mpl_toolkits
six.pyo
pyparsing
cffi
PIL
dateutil
Doubts… see later
Graphical aspect identical to linux version
Use of geoviewer 1
Use of geoviewer 2
Use of geoviewer 3
• Input management
• Help
• Geometry viewing and editing
• Picture exporting
• Run control
• Postprocessing of output files
• Viewer
• 1D plots, 2D plots (w/o geometry superposition)
• Compiling and linking
• Calculator
• Material database
Successfully tested features:
Yet two unsolved issues remain…
Unsolved issue #1: 2D plots with geometry
Example: Shooting a He beam (in air) to a polythyrene flask and a water phantom
2D USRBIN plot without geoemetry
OK. Same as in linux version
Unsolved issue #1: 2D plots with geometry
Example: Shooting a He beam (in air) to a polythyrene flask and a water phantom
2D USRBIN plot WITH geoemetry ??? Notice that also the palette scale goes crazy
There are problems in Gnuplot for mac (transparency seems to behave differently with respect to linux)and/or in the python-gnuplot interfaceNot yet understood
In linear Z scaleYou just see a white plotAnd geometry contours
Unsolved issue #2: numpy with dicom?
Attempting to view a dicom slice an error message appears:
ValueError: all the input arrays must have same number of dimensions
Apparently due to numpy (scientific computing with Python)
Unsolved issue #2: numpy with dicom?
• FLUKA under Mac OSX appears to work correctly giving the same results as in Linux.
• A devel distribution for the collaboration could be shared.
• A pro beta version could be distributed.
• Flair for Mac has still a couple (at least) of things that should be understood and possibly solved. At present I am not able to do that, I’m afraid…
High level help needed (already some interactions with Vasilis occurred)
Conclusions
Added during the meeting
The problem of 2D plots with geometry superimposed has been solved in version 2.1-4(V. Vlachoudis)
Set format “%g” in order to get exponential scale