AngularSpace

class AngularSpace(h5)

This class contains angular 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 angular discretization is being described.

  • h5 (Group)

h5

The HDF5 group from which this object is built.

Type:

h5py.Group

num_angular_dofs

The number of angular d.o.f.s in this discretization. For SN, this is the total number of discrete ordinates. For PN, this is the total number of spherical harmonics in the expansion.

Type:

int

abscissae(cache=True)

For SN solves, this gives the quadrature abscissae.

Returns:

x – Indexed like [i, direction] for the ith abscissa.

Return type:

np.float64 [:,:]

destroy()

Deallocates all data

weights()

For SN solves, this gives the quadrature weights.

Returns:

w – The ith entry in this array is the quadrature weight of abscissa i.

Return type:

np.float64 [:]