externalPointMass.yml 1.87 KB
Newer Older
Peter W. Draper's avatar
Peter W. Draper committed
1
# Define the system of units to use internally. 
2
InternalUnitSystem:
3
  UnitMass_in_cgs:     1.98848e33    # M_sun
4
  UnitLength_in_cgs:   3.08567758e21 # kpc
5
  UnitVelocity_in_cgs: 1e5           # km/s
Peter W. Draper's avatar
Peter W. Draper committed
6
7
8
9
10
11
  UnitCurrent_in_cgs:  1   # Amperes
  UnitTemp_in_cgs:     1   # Kelvin

# Parameters governing the time integration
TimeIntegration:
  time_begin: 0.    # The starting time of the simulation (in internal units).
12
  time_end:   8.    # The end time of the simulation (in internal units).
Peter W. Draper's avatar
Peter W. Draper committed
13
14
15
  dt_min:     1e-6  # The minimal time-step size of the simulation (in internal units).
  dt_max:     1e-3  # The maximal time-step size of the simulation (in internal units).

16
17
18
19
20
21
# Parameters governing the snapshots
Snapshots:
  basename:            pointMass # Common part of the name of output files
  time_first:          0.        # Time of the first output (in internal units)
  delta_time:          0.02      # Time difference between consecutive outputs (in internal units)

22
23
24
25
# Parameters governing the conserved quantities statistics
Statistics:
  delta_time:          1e-2 # Time between statistics output

Peter W. Draper's avatar
Peter W. Draper committed
26
27
# Parameters for the hydrodynamics scheme
SPH:
28
29
  resolution_eta:        1.2348   # Target smoothing length in units of the mean inter-particle separation (1.2348 == 48Ngbs with the cubic spline kernel).
  CFL_condition:         0.1      # Courant-Friedrich-Levy condition for time integration.
Peter W. Draper's avatar
Peter W. Draper committed
30
31
32

# Parameters related to the initial conditions
InitialConditions:
33
  file_name:  PointMass.hdf5        # The file to read
34
  periodic:   0
35
  shift:      [50.,50.,50.]         # A shift to apply to all particles read from the ICs (in internal units).
Peter W. Draper's avatar
Peter W. Draper committed
36

37
# External potential parameters
38
PointMassPotential:
39
  position:        [50.,50.,50.]    # location of external point mass in internal units
40
  mass:            1e10     # mass of external point mass in internal units
41
  timestep_mult:   0.03     # controls time step
42