-
Notifications
You must be signed in to change notification settings - Fork 7
/
particle_in_field.toml
58 lines (44 loc) · 1.11 KB
/
particle_in_field.toml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Define simulation related parameters
[Grid]
N = 30
r_min = 0.0
r_max = 1.0
[Clock]
start_time = 0.0
end_time = 1e-8
num_steps = 20
# Add the physics modules
[PhysicsModules]
[PhysicsModules.EMWave]
amplitude = 1.0
omega = 2e8
[PhysicsModules.ChargedParticle]
position = 0.5
pusher = "ForwardEuler"
# Add the compute tools
# Empty "heading" is ok, adds the tool with no/default parameters
[Tools.ForwardEuler]
# Add the diagnostics
[Diagnostics]
# First add some default diagnostic parameters
directory = "output/"
output_type = "csv"
[Diagnostics.grid]
filename = "grid.csv"
[Diagnostics.clock]
filename = "time.csv"
# [[Diagnostics.field]] # Double brackets here because we can have multiples of these...
[[Diagnostics.FieldPlottingDiagnostic]]
component = 0
field = "EMField:E"
filename = "efield.csv"
[Diagnostics.point] # single brackets here because we only have one of these...
field = "EMField:E"
location = 0.5
filename = "e_0.5.csv"
[[Diagnostics.ParticleDiagnostic]]
component = "momentum"
filename = "particle_p.csv"
[[Diagnostics.ParticleDiagnostic]]
component = "position"
filename = "particle_x.csv"