#2542: Support for creating and saving 1D histograms
| Reporter: | Wolfgang Kastaun |
| Status: | new |
| Milestone: | |
| Version: | development version |
| Type: | enhancement |
| Priority: | minor |
| Component: | Carpet |
One common task that is not easy in ET is to create simple one-dimensional histograms from grid variables. There should be support for this in the core infrastructure. Writing user thorns for this task requires the use of internal implementation details such as the Carpet weight mask. This also ties such code to Carpet and prevents use with e.g. CarpetX. Further, there needs to be a standard to save such histograms to disk at regular timesteps, much like the grid data itself.
Proposal:
Example applications:
A histogram of ejecta velocities in BNS merger simulations. This requires a one-dimensional histogram at a given timestep, where the bins correspond to velocity. The baryonic mass in each cell then needs to be added in the bin given by the velocity in the same cell. All the user would have to do is write a thorn that sets up two scalar grid variables, one with unbound mass density (per coordinate volume) and one with the velocity.
Another thorn might use a different approach for measuring the same, computing fluxes through a surface instead. Such a thorn could then still use the histogram API directly to get standardized file IO of those hi
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2542/support-for-creating-and-saving-1d