fiesta.disperse.Network#

class fiesta.disperse.Network(file_path, verbose=False)[source]#

Class to deal with filament network output by DisPerSE.

Variables:
  • cps (list of CriticalPoint’s) – Array of CriticalPoint’s in the network.

  • ncps (int) – Number of critical points in the network.

  • fils (list of Filament’s) – Array of Filament’s in the network.

  • nfils (int) – Number of filaments in the network

  • scale (str) – Either pixel if the grid is not scaled to the source AREPO snapshot, else physical.

Parameters:
  • file_path (str) – File path of the DisPerSE output (currently only supports ASCII format).

  • verbose (bool, optional) – If True, prints output during file reading. Default value is False.

Network.calc_filament_lengths([verbose])

Calculate the length of all filaments in the network.

Network.calc_filament_masses(avg[, verbose])

Calculate the mass of all filaments in the network.

Network.get_cp(idx)

Function to fetch a critical point of specific ID.

Network.get_filament(idx)

Function to fetch a filament of specific ID.

Network.plot_network([fil_idxs, ...])

Plot the filament network in 3D.

Network.remove_short_filaments(min_length[, ...])

Remove filaments below a given minimum length.

Network.set_scale(acg)

Function to set the physical scale of the network by passing the ArepoCubicGrid that was used as input for DisPerSE.