![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gboolean tool_physic_getElementFromZ (gchar **name
,float *radcov
,int zele
); gboolean tool_physic_getElementFromSymbol (int *zele
,float *radcov
,gchar *symbol
); enum ToolUnits; const gchar** tool_physic_getUnitNames (void
); float tool_physic_getUnitValueInMeter (ToolUnits unit
); ToolUnits tool_physic_getUnitFromName (const gchar *name
);
This is a data base associating symbol names and atomic numbers. One can also get the covalent radius of chemical species. It is convenient to plot bindings.
gboolean tool_physic_getElementFromZ (gchar **name
,float *radcov
,int zele
);
Get the symbol or the covalence radius of the argument zele
.
|
a pointer on an unallocated string (can be NULL) ; |
|
a pointer on a float (can be NULL) ; |
|
the atomic number. |
Returns : |
TRUE if zele is known in the atomic built-in list. |
gboolean tool_physic_getElementFromSymbol (int *zele
,float *radcov
,gchar *symbol
);
Get the the covalence radius or the atomic number of a given atomic
symbol
.
|
a pointer on an integer (can be NULL) ; |
|
a pointer on a float (can be NULL) ; |
|
the symbol of an atom. |
Returns : |
TRUE if symbol is known in the atomic built-in list.
|
typedef enum { unit_undefined, unit_bohr, unit_angstroem, unit_nanometer, /*< private >*/ nb_units } ToolUnits;
The possible length units defined in V_Sim. The special case
unit_undefined
means that a unit must be defined before any
conversion operations may be done.
the units are undefined. | |
the length are given in Bohr (1ang = 0.529177Bohr); | |
the length are given in angstroems ; | |
the length are given in nanometers. | |
private. |
Since 3.5
const gchar** tool_physic_getUnitNames (void
);
It provides the names corresponding to each units.
Returns : |
an array, null terminated of strings. It is owned by V_Sim. |
Since 3.5
float tool_physic_getUnitValueInMeter (ToolUnits unit
);
It provides the factor used to transform unit
into meters.
|
a ToolUnits. |
Returns : |
a factor. |
Since 3.5
ToolUnits tool_physic_getUnitFromName (const gchar *name
);
Find the unit corresponding to the name
. If none is found,
unit_undefined is returned.
|
a unit name. |
Returns : |
a ToolUnits. |
Since 3.5