SpaceAngleVector

class SpaceAngleVector(mesh, angular)

A class for space-angle vectors, such as angular fluences, sources, etc. Also points to the Mesh and AngularSpace on which a given object is constructed.

Do not try to re-assign or re-populate a variable of this object before destroying.

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

Parameters:
  • mesh (Mesh) – The mesh on which this object will be created.

  • angular (AngularSpace) – The angular discretization on which this object will be created.

<self[i,s]>

Gives the value of the space-angle array at angular d.o.f. i and spatial d.o.f. s

Type:

np.float64

mesh

The mesh on which this object was created.

Type:

Mesh

angular

The angular discretization on which this object was created.

Type:

AngularSpace

num_angular_dofs

Number of angular d.o.f.s.

Type:

int

num_spatial_dofs

Number of spatial d.o.f.s.

Type:

int

destroy()

Deallocates all data

fluence()

Gives the fluence corresponding to this space-angle vector

Returns:

fl – The fluence indexed by spatial d.o.f.

Return type:

np.float64 [:]

populate_from_h5(h5group, angles='all')

Populates this object using space-angle vector data from an HDF5 group formatted as per Lionbolt schema conventions.

Parameters:
  • h5group (h5py.Group) – The HDF5 group corresponding to the desired space-angle vector.

  • angles (list(int) or int, optional) – The set of angles desired. By default, all are given.