The Gnome Chemistry Utils
0.14.0
|
Go to the source code of this file.
Classes | |
struct | GcuValue |
struct | GcuDimensionalValue |
struct | GcuAtomicRadius |
struct | GcuElectronegativity |
struct | GcuIsotope |
Macros | |
#define | MAX_ELT 116 |
Enumerations | |
enum | gcu_spin_state |
enum | gcu_radius_type |
Functions | |
const double * | gcu_element_get_default_color (int Z) |
const char * | gcu_element_get_symbol (int Z) |
const char * | gcu_element_get_name (int Z) |
int | gcu_element_get_Z (char *symbol) |
int | gcu_element_get_radius (GcuAtomicRadius *radius) |
int | gcu_element_get_electronegativity (GcuElectronegativity *en) |
GcuDimensionalValue const * | gcu_element_get_ionization_energy (int Z, int N) |
GcuDimensionalValue const * | gcu_element_get_electron_affinity (int Z, int N) |
char * | gcu_element_get_weight_as_string (int Z) |
char const * | gcu_element_get_electronic_configuration (int Z) |
const GcuAtomicRadius ** | gcu_element_get_radii (int Z) |
const GcuElectronegativity ** | gcu_element_get_electronegativities (int Z) |
void | gcu_element_load_databases (char const *name,...) |
char * | gcu_value_get_string (GcuValue const *value) |
char * | gcu_dimensional_value_get_string (GcuDimensionalValue const *value) |
C interface to the chemistry library.
To use this file, add the following line to your source file:
Definition in file chemistry.h.
#define MAX_ELT 116 |
The greatest atomic number known in this version of the Gnome Chemictry Utils
Definition at line 63 of file chemistry.h.
enum gcu_radius_type |
gcu_radius_type gcu_radius_type describes the type of the atomic radius Possible values are:
GCU_VAN_DER_WAALS: van der Waals radius,
This enumeration is used in the GcuAtomicRadius structure.
Definition at line 93 of file chemistry.h.
enum gcu_spin_state |
gcu_spin_state gcu_spin_state describes the spin state of a central atom in a complex. Possible values are:
GCU_HIGH_SPIN: high spin.
This enumeration is used in the GcuAtomicRadius structure.
Definition at line 74 of file chemistry.h.
char* gcu_dimensional_value_get_string | ( | GcuDimensionalValue const * | value | ) |
value,: | the GcuDimensionalValue to represent as a string. |
const double* gcu_element_get_default_color | ( | int | Z | ) |
Z,: | the atomic number of the element. |
Retrieves the default color used for the element.
Referenced by gcu_periodic_set_colors().
GcuDimensionalValue const* gcu_element_get_electron_affinity | ( | int | Z, |
int | N | ||
) |
Z,: | the atomic number. |
N,: | the rank of the extra electron. |
For some elements, second and even third electron affinities have been estimated. The program searches the Nth electron affinity value for the element and returns it if found. A value of 0 means that the anion is unstable in the gaseous phase and that no better etimation is available.
const GcuElectronegativity** gcu_element_get_electronegativities | ( | int | Z | ) |
Z,: | the atomic number of the element. |
int gcu_element_get_electronegativity | ( | GcuElectronegativity * | en | ) |
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.
char const* gcu_element_get_electronic_configuration | ( | int | Z | ) |
Z,: | the atomic number. |
Referenced by gcu_periodic_set_tips().
GcuDimensionalValue const* gcu_element_get_ionization_energy | ( | int | Z, |
int | N | ||
) |
Z,: | the atomic number. |
N,: | the rank of the ionization. |
The program searches for the Nth ionization energy value for the element and returns it if found.
const char* gcu_element_get_name | ( | int | Z | ) |
Z,: | the atomic number of the element. |
Referenced by gcu_periodic_set_tips().
const GcuAtomicRadius** gcu_element_get_radii | ( | int | Z | ) |
Z,: | the atomic number of the element. |
int gcu_element_get_radius | ( | GcuAtomicRadius * | radius | ) |
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.
const char* gcu_element_get_symbol | ( | int | Z | ) |
gcu_element_get_symbol:
Z,: | the atomic number of the element. |
Referenced by gcu_combo_periodic_set_element(), and gcu_periodic_set_tips().
char* gcu_element_get_weight_as_string | ( | int | Z | ) |
Z,: | the atomic number. |
Referenced by gcu_periodic_set_tips().
int gcu_element_get_Z | ( | char * | symbol | ) |
gcu_element_get_Z:
symbol,: | the symbol of the element (e.g. "C" ot "Pt"). |
void gcu_element_load_databases | ( | char const * | name, |
... | |||
) |
name,: | name of a database to load such as "radii", "elecprops", "isotopes", the first name is followed by a list of other database terminated by NULL. |
Loads the listed databases.
Referenced by main().