EnergyGrid

class EnergyGrid(h5)

This class contains energy discretization information.

Print an object of this class to view all available attributes.

Parameters:
  • h5group (h5py.Group) – The HDF5 group corresponding to the particles whose energy discretization is being described.

  • h5 (File)

h5

The HDF5 group from which this object is built.

Type:

h5py.Group

num_energy_dofs

The number of energy d.o.f.s in this discretization.

Type:

int

destroy()

Deallocates all data

gridpoints(cache=True)

Energy grid points

Returns:

E – Gives the set of energy grid points. Not necessarily indexed by energy d.o.f., for instance in the case of multigroup discretization, the size of E will actually be num_energy_dofs + 1. The grid points are however still organized in descending order such that energy group g is defined by energies from E[g + 1] to E[g]

Return type:

np.float64 [:]