1
0

default.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ---
  2. # When calling > python simulation.py filename.yml --output_folder
  3. # the simulation will use the default parameters here unless specified
  4. name: default
  5. simulation:
  6. dt: 0.001 #timestep of the simulation
  7. tmax: 15 #total runtime of the simulation
  8. soft: 0.1 #plummer softening characteristic length
  9. saveEvery: 100 #the state of the simulation is saved every saveEvery steps
  10. method: bruteForce #method for computing gravitational forces
  11. # One of 'bruteForce', 'bruteForceNumba',
  12. # bruteForceNumbaOptimized', 'bruteForceCPP', 'barnesHutCPP'.
  13. orbit:
  14. e: 1 #eccentricity
  15. rmin: 1 #separation at pericenter
  16. R0: 4 #separation at t=0
  17. galaxy1:
  18. orientation: [0, 0] #[theta, phi] in degrees
  19. # These are related to i, $\omega$ through theta = i + 180 and $\omega$ = phi
  20. centralMass: 1 #mass of the central point object
  21. bulge:
  22. model: plummer #alternatively: hernquist
  23. totalMass: 0
  24. particles: 0 #number of particles
  25. l: .04 #characteristic length scale both for plummer and Hernquist models
  26. disk:
  27. model: uniform #alternatively: rings, exp
  28. totalMass: 0
  29. particles: 2000 #number of particles
  30. l: 0.8 #for uniform: single number for maximum radius
  31. #l: [0., .7, 100] #for rings: [closest ring, furthest ring, number of rings]
  32. #l: .2 #for exp: characteristic decay length
  33. halo:
  34. model: NFW #Navarro-Frenk-White profile only
  35. totalMass: 0
  36. particles: 0 #number of particles
  37. rs: 1 #characteristic length scale of NFW. Cutoff is 5*rs
  38. # The same options are available for the second galaxy
  39. galaxy2:
  40. orientation: [0, 0]
  41. centralMass: 1
  42. bulge:
  43. model: plummer
  44. totalMass: 0
  45. particles: 0
  46. l: .04
  47. disk:
  48. model: uniform
  49. totalMass: 0
  50. particles: 0 #the second galaxy does not possess a ring by default
  51. l: 0.7
  52. halo:
  53. model: NFW
  54. totalMass: 0
  55. particles: 0
  56. rs: 1