pyg4ometry.fluka.Writer¶
GLOBAL 20000. -1. 1. 0. 0. 0.
DEFAULTS 0.0 0.0 0.0 0.0 0.0 0.0 EM-CASCA
BEAM 17.5 0.0 10000.0 0.0 0.0 1.0 ELECTRON
GEOBEGIN 3. COMBNAME
0 0
USRBIN , 10., ELECTRON, -21., 250., 0.1, 2000., ElecTop
USRBIN , -250., -0.1, -2000., 400., 1., 400., &
USRBIN , 10., POSITRON, -22., 250., 0.1, 2000., PosTop
USRBIN , -250., -0.1, -2000., 400., 1., 400., &
USRBIN , 10., PHOTON, -23., 250., 0.1, 2000., PhotTop
USRBIN , -250., -0.1, -2000., 400., 1., 400., &
RANDOMIZ , 1.
START , 1000.
STOP
END
Classes¶
Class to write FLUKA input files from a fluka registry object. |
Module Contents¶
- class pyg4ometry.fluka.Writer.Writer¶
Class to write FLUKA input files from a fluka registry object.
>>> f = Writer() >>> f.addDetectro(flukaRegObject) >>> f.write("model.inp")
- _flukaFFString = '*...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+...'¶
- addDetector(flukaRegistry)¶
Set the fluka registry and therefore the model for this writer instance.
- write(fileName)¶
Write the output to a given filename. e.g. “model.inp”.