Class Scine::Utils::Constants::ElementDataSingleton::ElementData

class ElementData

Data type for each element of the periodic table, Data includes: Mass (a.u.), Z,.

Public Functions

ElementData()

Constructor for default (empty) element.

ElementData(std::string symbol, int Z, double mass, double vdWRadiusInPicometers = -1, int valElectrons = -1, int sElectrons = -1, int pElectrons = -1, int dElectrons = -1)

Construct a new ElementData object.

Parameters
  • symbol: The element symbol.

  • Z: The nuclear charge.

  • mass: The mass (isotope average, precision: 3 digits).

  • vdWRadiusInPicometers: The van der Waals radius in pm.

  • valElectrons: The number of electrons in the valence shell.

  • sElectrons: The number of s-electrons in the valence shell.

  • pElectrons: The number of p-electrons in the valence shell.

  • dElectrons: The number of d-electrons in the valence shell.

std::string symbol() const

Getter for the element symbol.

Return

std::string Returns the element symbol as string.

int Z() const

Getter for the atomic number.

Return

int Returns the atomic number.

double mass() const

Getter for the mass in atomic mass units (u).

Return

double Returns the atomic mass (isotope average, precision: 3 digits)

double vdWRadius() const

Getter for the Van-der-Waals Radius.

Return

double Returns the Van-der-Waals Radius in atomic units.

int valElectrons() const

Getter for the number of valence electrons.

Return

int Returns the number of valence electrons.

int sElectrons() const

Getter for the number of valence s-electrons.

Return

int Returns the number of valence s-electrons.

int pElectrons() const

Getter for the number of valence p-electrons.

Return

int Returns the number of valence p-electrons.

int dElectrons() const

Getter for the number of valence d-electrons.

Return

int Returns the number of valence d-electrons.

class DataNotAvailable

An exception if the data does not exist.