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....


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).


Example: This procedure is used in the following example program (see for downloading the code): periosys

Last Update: 2012-Oct-20