forked from OpenTOPAS/TPS2TOPAS_interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvertVarianPHSPToTOPAS.txt
More file actions
27 lines (23 loc) · 892 Bytes
/
convertVarianPHSPToTOPAS.txt
File metadata and controls
27 lines (23 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Script to convert Varian PHSP (in IAEA format) to TOPAS PHSP
## NameOfTheVarianPHSP and NameOfTOPASPHSP should be replaced by the correct PHSP names in your system.
Ph/Default/Modules = 1 "transportation_only"
s:So/phsp/Type = "PhaseSpace"
s:So/phsp/Component = "source"
s:So/phsp/PhaseSpaceFileName = "NameOfTheVarianPHSP"
b:So/phsp/PhaseSpacePrecheck = "T"
i:So/phsp/PhaseSpaceMultipleUse = 1
s:Ge/Source/Type = "TsBox"
s:Ge/Source/Material = "G4_AIR"
s:Ge/Source/Parent = "World"
d:Ge/Source/HLZ = 0.05 mm
d:Ge/Source/HLX = 100 cm
d:Ge/Source/HLY = 100 cm
s:Sc/Dose/Quantity = "PhaseSpace"
s:Sc/Dose/Surface = "Source/ZPlusSurface"
s:Sc/Dose/IfOutputfileAlreadyExists = "Overwrite"
s:Sc/Dose/OutputType = "Binary"
s:Sc/Dose/OutputFile = "NameOfTOPASPHSP"
b:Sc/Dose/KillAfterPhaseSpace= "True"
i:Ts/NumberOfThreads = 0
b:Ts/ShowCPUTime = "T"
i:Ts/ShowHistoryCountAtInterval = 9000000