# flair project file Version: 300 Mode: fluka Title: FLUKA training exercise: dipole field md5: 6e8cf431098c95a6ee44c0cc79a29dac Input: * *############################################################################ *### *### FLUKA exercise: defining a dipole field *### *### A bare minimum example where a 600 MeV/c proton beam is deflected *### by a dipole field on a target. *### *### Last updated: 14/09/2020 *### *############################################################################ * * TITLE FLUKA training exercise: dipole field * *The default physics settings can be selected with the DEFAULTS card. For *many problems PRECISIO settings are a good starting point. Details about *the settings can be found in the manual. * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... DEFAULTS PRECISIO * *The simulation setup defines a proton pencil beam with a momentum of *600 MeV/c. * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... BEAM PROTON 0.6 * *The beam starts at (x,y,z)=(0,0,-50) cm and is directed along the z-axis, *which is the default beam direction in FLUKA. * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... BEAMPOS ,,, -50.0 * *The geometry consists of a cylindrical target which is located in the *x-z plane (at 25 degree wrt to z-axis), and a magnet region (vacuum) at *the origin. * GEOBEGIN COMBNAME Cylindrical target * SPH BLK 0.0 0.0 0.0 10000.0 * SPH VOID 0.0 0.0 0.0 1000.0 * *The target body is placed via a transformation (25 deg wrt z-axis) *- see also ROT-DEFI cards. $start_transform TRANS1 RCC TARGET 0.0 0.0 -25.0 0.0 0.0 50.0 5.0 $end_transform * *Body which defines the outer surface of our magnetic field region. RPP MAGNET -25.0 25.0 -25.0 25.0 -25.0 25.0 * END * *Outer blackhole confinement REGION BLKHOLE 5 +BLK -VOID * *Surrounding void region REGION VOID 5 +VOID -TARGET -MAGNET * *Target region. REGION TARGET 5 +TARGET * *Magnetic field region. REGION MAGNET 5 +MAGNET * END GEOEND * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... ROT-DEFI TRANS1 0.0,,,,, 200.0 ROT-DEFI TRANS1 200.,, -25. ROT-DEFI TRANS1 0.0,,,,, 1.228713 * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... ASSIGNMA , BLCKHOLE BLKHOLE ASSIGNMA , VACUUM VOID ASSIGNMA , VACUUM MAGNET ASSIGNMA , COPPER TARGET * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7 USRBIN PartFlu 10.0 ALL-PART -31.0 100.0 5.0 300.0 -100.0 -5.0 -100.0 81.0 1.0 \ 160.0 * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... RANDOMIZ , 1.0 1.0 * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... START , 1.0,,,, 0.0 * *..+....1....+....2....+....3....+....4....+....5....+....6....+....7... STOP EndInput Page: Plot # Run information Run: Last: 1 StartRun: 1600099474 End # Plots information Plot: Fluence Type: USRBIN cblog: 1 cbmin: 1E-4 cbtics: 1 commands: set format cb "10^{%L}" datafile: ex_magfield_31.bnn grid: 0 hist: 2D Projection int: 229.04017272472913 max: 4.78960238E-02 min: 9.95898619E-04 proj: Y title: Particle fluence (1/cm^2/primary) xlabel: z (cm) ylabel: x (cm) End