openmc.TallyDerivative¶
-
class
openmc.
TallyDerivative
(derivative_id=None, variable=None, material=None, nuclide=None)[source]¶ A material perturbation derivative to apply to a tally.
Parameters: - derivative_id (int, optional) – Unique identifier for the tally derivative. If none is specified, an identifier will automatically be assigned
- variable (str, optional) – Accepted values are ‘density’, ‘nuclide_density’, and ‘temperature’
- material (int, optional) – The perturbed material ID
- nuclide (str, optional) – The perturbed nuclide. Only needed for ‘nuclide_density’ derivatives. Ex: ‘Xe135’
Variables: -
to_xml_element
()[source]¶ Return XML representation of the tally derivative
Returns: element – XML element containing derivative data Return type: xml.etree.ElementTree.Element