SpECTRE  v2024.04.12
ElementVolumeData Struct Reference

Holds tensor components on a grid, to be written into an H5 file. More...

#include <TensorData.hpp>

Public Member Functions

 ElementVolumeData (std::string element_name_in, std::vector< TensorComponent > components, std::vector< size_t > extents_in, std::vector< Spectral::Basis > basis_in, std::vector< Spectral::Quadrature > quadrature_in)
 
template<size_t Dim>
 ElementVolumeData (const ElementId< Dim > &element_id, std::vector< TensorComponent > components, const Mesh< Dim > &mesh)
 
void pup (PUP::er &p)
 

Public Attributes

std::string element_name {}
 Name of the grid (should be human-readable). For standard volume data this name must be the string representation of an ElementId, such as [B0,(L0I1,L0I0,L3I2)]. Code that reads the volume data may rely on this pattern to reconstruct the ElementId.
 
std::vector< TensorComponenttensor_components {}
 All tensor components on the grid.
 
std::vector< size_t > extents {}
 Number of grid points in every dimension of the grid.
 
std::vector< Spectral::Basisbasis {}
 Spectral::Basis in every dimension of the grid.
 
std::vector< Spectral::Quadraturequadrature {}
 Spectral::Quadrature in every dimension of the grid.
 

Detailed Description

Holds tensor components on a grid, to be written into an H5 file.


The documentation for this struct was generated from the following file: