sim_analysis | R Documentation |
The purpose of this function is to measure the true particle properties of the simulation prior to observation. This function produces a list that includes a summary of the total galaxy, a summary of the half-mass properties, and a data.frame containing the radial trends of a series of properties, computed in a series of spherical shells.
sim_analysis(
simspin_file,
type = "stars",
half_mass = NA,
bin_breaks = NA,
verbose = F,
shape = T
)
simspin_file |
The path to the location of the SimSpin .Rdata file OR
output list from |
type |
String "stars" (default) or "gas" to specify which set of of particles are used in the property calculations. |
half_mass |
If simulation file contains all particles cutout from a box (rather than just particles from a single galaxy), you can the half-mass value at which the alignment function is run. Numeric length = 1. Default is NA, in which case half the total mass of the supplied simulation data is used. |
bin_breaks |
Optional parameter that allows you to specify radial bin break positions. Default will give bins spaced with varying sized bins: 'seq(0, 9, by=1), seq(12, 51, by=3), seq(61, 101, by=10), seq(151, 501, by=50)' |
verbose |
Boolean to describe if the code should give updates on progress. Default is FALSE. |
shape |
Boolean to describe whether or not the shape of the system should be measured at increasing radii. Default is TRUE. |
Returns a list that contains:
list()
list()
data.frame()
data.frame()
where Properties
includes:
Component considered within analysis
Total mass (solar)
Mean age (Gyr)
Mean metallicity (fraction of solar)
Total number of particles
where HalfMassProperties
includes:
Half mass (solar)
Circularised radius at half-mass (kpc)
Elliptical radius at half-mass given shapes p & q (kpc)
Axis ratio (b/a) of particles within half-mass
Axis ratio (c/a) of particles within half-mass
where RadialTrends_Spherical
includes:
Radial coordinate at the centre of the radial bin (kpc)
Mass (solar) contained within radial bin
Mass (solar) of all particles contained within radius of this bin
Mass density of shell (Msol/kpc^3)
Mean age (Gyr) of particles within radial bin
Mean metallicity (fraction of solar) of particles within radial bin
Beta parameter of particles within radial bin
Bullock et al (2001) spin parameter measured from all particles contained within radius of this bin
Mass weighted angular momentum, j (kpc km/s), of particles within radial bin
Axis ratio (b/a) of all particles within radius of this bin
Axis ratio (c/a) of all particles within radius of this bin
,
Number of particles contained within radial bin
where RadialTrends_Cylindrical
includes:
Radial coordinate at the centre of the radial bin (kpc)
Mass (solar) contained within radial bin
Mass (solar) of all particles contained within radius of this bin
Mass density of shell (Msol/kpc^3)
Mean age (Gyr) of particles within radial bin
Mean metallicity (fraction of solar) of particles within radial bin
Circular velocity (km/s) due to mass contained within radius of this bin
Mean velocity along circular orbits (km/s) in radial bin
Standard deviation of velocities in circular orbits (km/s) in radial bin
The circularity parameter j[z]/j[circ](E), as defined in Abadi et al. (2003).
The fraction of kinetic energy of the system contained within a rotational component, as defined by Sales et al. (2010).
The fraction of kinetic energy of the system conatined within a co-rotating component, as defined by Correa et al. (2017).
The stellar spin parameter as defined in Wilkinson et al (2023).
The mass fraction of orbits with circularity > 0.7, as defined by Sales et al. (2010).
Twice the mass fraction of counter-rotating orbits, as defined in Wilkinson et al. (2023).
Number of particles contained within radial bin
ss_gadget = system.file("extdata", "SimSpin_example_Gadget_spectra.Rdata",
package = "SimSpin")
props = sim_analysis(simspin_file = ss_gadget)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.