The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



PerSysCoord


Unit:SDL_cdata
Class:none
Declaration:procedure PerSysCoord (AtNr: integer; var x,y: integer);

In oder to display the periodic system of elements one need to know where to place the atom symbols. The procedure PerSysCoord returns the coordinates of the atom specified by the parameter AtNr (atomic number) in the variable parameters x and y.

The coordinate system is shown in the figure below. Hydrogen has coordinates [0,0]. Note that the coordinates have to be properly scaled when displaying the atom symbols (see also the sample project PERIOSYS.DPR which comes with CDATA).

PERIOSYS.gif

Example: This procedure is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): periosys



Last Update: 2023-Feb-06