File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444Examples:
4545
4646 # Using gadget preset and target new units (L_new = 300 kpc, M_new = 1e12 Msun, want G_new=1)
47- python convert_units_general .py --preset gadget --new-length 300 --new-mass 1e12 --G_new 1 --print-scales
47+ python expunits .py --preset gadget --new-length 300 --new-mass 1e12 --G_new 1 --print-scales
4848
4949 # Provide explicit old/new units (length in kpc, mass in Msun, velocity in km/s):
50- python convert_units_general .py --old-length 1 --new-length 300 --old-mass 1 --new-mass 1e12 --G_old 4.5e-06 --G_new 1 --print-scales
50+ python expunits .py --old-length 1 --new-length 300 --old-mass 1 --new-mass 1e12 --G_old 4.5e-06 --G_new 1 --print-scales
5151
5252 # Convert a particle file (7 cols) using the scales computed above:
53- python convert_units_general .py --preset bonsai --new-length 300 --new-mass 1e12 --G_new 1 --infile particles.txt --outfile particles_g1.txt
53+ python expunits .py --preset bonsai --new-length 300 --new-mass 1e12 --G_new 1 --infile particles.txt --outfile particles_g1.txt
5454
5555
5656Notes and guidance:
You can’t perform that action at this time.
0 commit comments