fiesta.disperse.Filament#
- class fiesta.disperse.Filament[source]#
Class to deal with filaments output by DisPerSE.
- Variables:
cps (pair of
CriticalPoint
) – Critical point at the start and end of the filament.nsamp (
int
) – Number of sampling points of the filament.samps (
Quantity
) – Array of position \((x,y,z)\) of each sampling point of the filament. Defaults to units ofu.pix
.scale (
str
) – Eitherpixel
if the grid is not scaled to the source AREPO snapshot, elsephysical
.length (
Quantity
) – Length of the filament. Set only after callingcalc_length
.radius (
Quantity
) – Radius of the filament. Fixed value set duringcharacterize_filament
.mass (
Quantity
) – Mass of the filament. Set only after callingcalc_mass
.arepo_ids (
list
ofint
’s) – List of indices ofArepoVoronoiGrid
cells that are “part” of the filament. Set only after callingcharacterize_filament
.
Filament.calc_length
([verbose])Calculates the length of the filament, either in pixels or physical units depending on
scale
, by finely integrating the Euclidean distance between very close points on the filament.Filament.calc_mass
(avg[, verbose])Calculates the mass of the filament by summing the mass of all cells given by
arepo_ids
(corrected for double-counting).Filament.characterize_filament
(avg, ...[, ...])Function to query all simulation cells around the filament, based on source
ArepoVoronoiGrid
.Filament.correct_spine
(avg, sphere_radius[, ...])Function to correct the spine of a filament, based on source
ArepoVoronoiGrid
.Returns
arepo_ids
.Filament.get_length
([unit])Returns
length
.Filament.get_mass
([unit])Returns
mass
.Filament.get_points
(s[, unit])Function to sample any point on the filament spine.
Filament.get_radius
([unit])Returns
radius
.Filament.plot_density_profile
(avg[, ...])Plot mass-weighted 2d histogram projection of the AREPO Voronoi grid along an axis.