18
FLUKA for Mac OSX G. Battistoni, INFN Milano

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,

Embed Size (px)

Citation preview

Page 1: 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,

FLUKA for Mac OSX

G. Battistoni, INFN Milano

Page 2: 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,

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)

Page 3: 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,

• 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

Page 4: 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,

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)

Page 5: 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,

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)

Page 6: 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,

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

Page 7: 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,

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

Page 8: 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,

Graphical aspect identical to linux version

Page 9: 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,

Use of geoviewer 1

Page 10: 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,

Use of geoviewer 2

Page 11: 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,

Use of geoviewer 3

Page 12: 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,

• 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…

Page 13: 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,

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

Page 14: 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,

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

Page 15: 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,

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)

Page 16: 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,

Unsolved issue #2: numpy with dicom?

Page 17: 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,

• 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

Page 18: 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,

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