The Gnome Chemistry Utils
0.14.0
|
Chemical element. More...
#include <gcu/element.h>
Public Member Functions | |
int | GetZ () |
const char * | GetSymbol () |
char | GetDefaultValence () |
unsigned | GetMaxBonds () |
bool | GetBestSide () |
double * | GetDefaultColor () |
const char * | GetName () |
const GcuAtomicRadius ** | GetRadii () |
const GcuElectronegativity ** | GetElectronegativities () |
unsigned | GetValenceElectrons () |
unsigned | GetTotalValenceElectrons () |
unsigned | GetMaxValenceElectrons () |
DimensionalValue const * | GetWeight () |
IsotopicPattern * | GetIsotopicPattern (unsigned natoms) |
std::string const & | GetElectronicConfiguration () |
std::map< std::string, std::string > const & | GetNames () |
GcuDimensionalValue const * | GetIonizationEnergy (unsigned rank=1) |
GcuDimensionalValue const * | GetElectronAffinity (unsigned rank=1) |
Value const * | GetProperty (char const *property_name) |
std::string & | GetStringProperty (char const *property_name) |
int | GetIntegerProperty (char const *property_name) |
bool | IsMetallic () |
bool | GetStability (void) const |
Static Public Member Functions | |
static const char * | Symbol (int Z) |
static bool | BestSide (int Z) |
static int | Z (const char *symbol) |
static Element * | GetElement (int Z) |
static Element * | GetElement (const char *symbol) |
static bool | GetRadius (GcuAtomicRadius *radius) |
static bool | GetElectronegativity (GcuElectronegativity *en) |
static unsigned | GetMaxBonds (int Z) |
static void | LoadRadii () |
static void | LoadElectronicProps () |
static void | LoadIsotopes () |
static void | LoadBODR () |
static void | LoadAllData () |
static void | Init () |
Chemical element.
Represents a chemical element. This class has no public constructor or destructor. The instances are created by the framework from data in the elements.xml file and a user cannot create a new element.
|
static |
Z,: | the atomic number of a chemical element. |
This static method is used to know on what side of the symbol of the element whose atomic number is Z attached hydrogens should be written.
|
inline |
|
inline |
|
inline |
GcuDimensionalValue const* gcu::Element::GetElectronAffinity | ( | unsigned | rank = 1 | ) |
rank,: | the rank of the electron affinity. |
const GcuElectronegativity** gcu::Element::GetElectronegativities | ( | ) |
|
static |
en,: | a pointer to a GcuElectronegativity structure. |
Before calling this function, the following fields in the GcuElectronegativity structure must be filled:
The programs searches an electronegativity value for the element in the scale if given. If one is found the value and the scale (if NULL on calling) are given the corresponding values of the first match before returning.
|
inline |
|
static |
Z,: | the atomic number of a chemical element. |
|
static |
symbol,: | the symbol of a chemical element. |
int gcu::Element::GetIntegerProperty | ( | char const * | property_name | ) |
property_name,: | the name of the property as used in the Blue Obelisk Data Repository (without the "bo:" prefix). |
GcuDimensionalValue const* gcu::Element::GetIonizationEnergy | ( | unsigned | rank = 1 | ) |
rank,: | the rank of the ionization. |
IsotopicPattern* gcu::Element::GetIsotopicPattern | ( | unsigned | natoms | ) |
natoms,: | atoms count. |
|
static |
Z,: | the atomic number of a chemical element. |
The value returned by this method might be too low in some cases and is only indicative. Instances of the Atom class accept any number of bonds. This behavior might change in future versions.
|
inline |
The value returned by this method might be too low in some cases and is only indicative. Instances of the Atom class accept any number of bonds. This behavior might change in future versions.
|
inline |
|
inline |
|
inline |
Value const* gcu::Element::GetProperty | ( | char const * | property_name | ) |
property_name,: | the name of the property as used in the Blue Obelisk Data Repository (without the "bo:" prefix). |
const GcuAtomicRadius** gcu::Element::GetRadii | ( | ) |
|
static |
radius,: | a pointer to a GcuAtomicRadius structure. |
Before calling this function, most fields in the GcuAtomicRadius structure must be filled:
The programs searches a value corresponding to the fields having a non default value. If one is found the other fields are given the corresponding values f the first match before returning.
|
inline |
std::string& gcu::Element::GetStringProperty | ( | char const * | property_name | ) |
property_name,: | the name of the property as used in the Blue Obelisk Data Repository (without the "bo:" prefix). |
|
inline |
|
inline |
|
inline |
DimensionalValue const* gcu::Element::GetWeight | ( | ) |
|
inline |
|
static |
Intialize the element database. There is no need to call this method if any of the Load*() method is called.
bool gcu::Element::IsMetallic | ( | ) |
|
static |
Loads all databases.
|
static |
Loads the Blue Obelisk Database.
|
static |
Loads the atomic electronic properties database.
|
static |
Loads the isotopes database.
|
static |
Loads the atomic radii database.
|
static |
Z,: | the atomic number of a chemical element. |
|
static |
symbol,: | the symbol of a chemical element. |