-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_vis.mac
More file actions
36 lines (35 loc) · 804 Bytes
/
init_vis.mac
File metadata and controls
36 lines (35 loc) · 804 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
28
29
30
31
32
33
34
35
36
# Macro file for the initialization of example B1
# in interactive session
#
# set path
#/control/macroPath ..
# Set some default verbose
/control/verbose 2
/control/saveHistory
/run/verbose 2
# Define simulation units
/units/setPositionUnit um
/units/setMomentumUnit MeV
/units/setTimeUnit fs
#
# Change the default number of threads (in multi-threaded mode)
/run/numberOfThreads 1
#
# Initialize kernel
/run/initialize
#
# Define propagation axis
/target/setPropagationAxis x
# /target/addLayer G4_Al 5000
# /target/addLayer G4_W 5000
# /target/addLayer G4_Fe 5000
# /target/addLayer G4_W 5000
/target/addLayer G4_Al 36000
#
/input/setFileName input.dat
/input/setParticle e-
/diags/setFileBaseName vis
/diags/setLowEnergyLimit 10 keV
# Visualization setting
/vis/initialize
#/control/execute vis.mac