f4enix.input.materials.Element#
- class f4enix.input.materials.Element(zaidList: list[Zaid])#
Bases:
objectGenerate an Element object starting from a list of zaids. It will collapse multiple instance of a zaid into a single one
- Parameters:
zaidList (list) – list of zaids constituting the element.
- Return type:
None.
- Variables:
Z (str) – element str notation (AA) read from the zaids.
zaids (list[Zaid])
Methods
__init__(zaidList)Generate an Element object starting from a list of zaids.
Get the sum of the fraction of the zaids composing the element
update_zaidinfo(libmanager, mass_fraction)Update zaids infos through a libmanager.
- get_fraction() float#
Get the sum of the fraction of the zaids composing the element
- Returns:
fraction – element fraction.
- Return type:
float
- update_zaidinfo(libmanager: LibManager, mass_fraction: float) None#
Update zaids infos through a libmanager. Info are the formula name and the abundance in the material.
- Parameters:
libmanager (libmanager.LibManager) – libmanager handling the libraries operations.
mass_fraction (float) – mass fraction of the element in the submaterial.
- Return type:
None.