Persistent Generators DarkSky¶
Pipeline description¶
This example computes the most persistent one-dimensional generators of the opposite of the density of dark matter in an astrophysics simulation. These generators characterize prominent loops in the cosmic web.
The data is originally a point cloud. It is processed into a scalar field defined on a regular grid using Gaussian resampling.
Generators are then computed using PersistentGenerators, and thresholded in order to keep the most persistent ones..
For context, the one-dimensional separatrices of the MorseSmale complex are computed using MorseSmaleComplex after some topological simplification using TopologicalSimplificationand shown in the ParaView example.
The python script simply computes the most persistent generators and saves the result as a .vtu file.
ParaView¶
To reproduce the above screenshot, go to your ttk-data directory and enter the following command:
paraview states/persistentGenerators_darkSky.pvsm
Python code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
To run the above Python script, go to your ttk-data directory and enter the following command:
pvpython python/persistentGenerators_darkSky.py
Inputs¶
- ds14_scivis_0128_e4_dt04_1.0000.vtp: A point cloud dataset representing a simulation of the density of dark matter in the universe.
Outputs¶
PersistentGeneratorsDarkSky.vtu
: the raw one-dimensional most persistent generators of the field.