INFORMATION SYSTEM "ELECTRONIC STRUCTURE OF ATOMS" WITH DYNAMIC CONSTRUCTION OF A GRAPHIC DISPLAY OF SPECTRAL DATA
V.G.Kazakov, A.S.Tyumentsev, and A.S.Yatsenko
Gathering and analysis of information on the properties of some physical systems are an important part of scientific research. For instance, for gas or plasma systems this information frequently concerns parameters of atoms, molecules, and ions, that is, characteristics of energy levels and radiation transitions between them. The most traditional procedure for representing these data is the use of tables. For example, paper  presents tables containing information on energy levels of an atom or its ion, which were sorted in increasing energy. Paper  presents all allowed transitions between different levels.
Accurate and comprehensive data on optical spectra of atomic systems are conventionally presented as tables; and graphical representations are successfully used for general analysis of electronic structures of nuclei, atoms, or molecules.
Paper  describes the main stages of evolution of graphical representation of atomic systems in the form of diagrams in order to illustrate distribution of excited states in electronic configurations and mark the most intensive transitions. The Grotrian diagram looks like a rectangle with given sizes inside which the electronic structure of the atomic system is represented by lines, letters, and numbers. The energy levels are laid off on the ordinate and the designations of terms are plotted on the abscissa. Even and odd states alternate. The energy in terms of reciprocal centimeters (cm-1) and electron-volts (eV) is laid off on vertical scales. Slanting lines show radiation transitions.
The technique of constructing Grotrian diagrams somewhat changed and presently there are several kinds of them. For instance, diagrams [5, 6] that differ from Grotrian diagrams because they show forbidden transitions are applied in astrophysics. The problem of constructing diagrams for atoms with a great nuclear charge of Z (from H to Mn) was solved by authors of  who used several diagrams with different electronic configurations for describing a complete electronic structure of one element. One more solution of this problem became application of an attendant table, along with the Grotrian diagram, which contains information on levels and transitions that did not go in the diagram. This approach was used in  that presents information on spectra of atoms and ions from Z = 26 (Fe) to Z = 42 (Mo).
Papers [9, 10] present diagrams for most of elements in the Periodic Table. They use a technique that differs from the foregoing ones [7, 8]. The first (top) line of the diagram contains a designation for all available electronic configurations nlk the second line presents terms of atomic cores, and the third line presents terms of energy states of atoms. Even and odd terms in the last line are spaced from the ground state to different sides of the diagram. Compared with diagrams from [7, 8], this diagram as well as the original Grotrian one is placed on one page, contains sufficient information, and is convenient for usage.
At present, one can find tabulated information and Grotrian diagrams (printed information) in the Internet Network. For instance, tables from  are presented in  as a text, whereas paper  presents diagrams from  as raster pictures. Some diagrams are also available in . This copying allows constant actualization of information but this technique is not interactive and cannot ensure mechanisms for information sorting and detailing.
There are some systems with different functional options that provide necessary means for information retrieval and preprocessing to the user. For example, the ASDB Program works with tabulated data and allows sampling and sorting by parameters. A demoversion of this program is available in . Information systems (IS) based on databases (DB) with publication in the Internet Network are most complicated in implementation although most attractive. These systems ensure obtaining partial information as tables or the whole database, and also interactive SQL inquiring . At present, there are many such systems in the world, which allow information access over various protocols (http, ftp, or telnet), they are reviewed in . One of the most complete DBs is ASD NIST USA; it contains information on radiation transitions of 99 elements and energy levels of 52 elements . There are other systems with similar possibilities: NIFS, AMDIS, OPD, and COREX, their addresses are listed in .
The described systems satisfy completely researcher needs in tabulated information, nevertheless they cannot help to overcome the deficit of graphical representations because they cannot automatically construct Grotrian diagrams yet. Graphical representations available in the computer medium just copy diagrams of printed editions without extending their list or functionality. An effective method for solving this problem is dynamic construction of user diagrams by a computer system based on an extensive database. This method has not been implemented yet. We know the only attempt to construct a diagram by means of a special program "Multi-Photon Grotrian Diagram" is described in . However, dynamic construction is absent here: transitions for mapping are chosen manually. Moreover, only a partial diagram can be constructed in the program.
Thus, an urgent problem is constructing IS on spectral data on atoms to ensure, besides data sampling, sorting, and tabulating functions, construction of Grotrian diagrams with the necessary degree of detailing. We will solve this problem in the present paper.
Automatic construction of Grotrian diagrams. Until now a skilled specialist solved the problem of constructing a Grotrian diagram convenient for use. An important stage of creation is selection of levels and transitions that represent the properties of atoms best of all. Although such criteria as an intensity or wavelength are available for solving this problem, expert evaluation of the situation is of considerable importance. Another stage is layout of levels and translations on a diagram to ensure its best "readability". With that, besides the formalized criteria, author's opinion is also present. The situation becomes complicated because it is frequent practice that search for solution at the second stage leads to revision of results of the first one. Automatic construction requires a rigorous algorithm to ensure adequate quality of obtained diagrams.
To construct the algorithm, we chose the approach from  in which even and odd atomic states are separated, hence, the information density will be increased. Resonance transitions from the ground state to excited states and subsequent intensive transitions are represented as follows. The energy levels and the transitions between them are presented as a graph (the levels are vertices, and the transitions are edges) . A "graph - tree" (stem and branches) schematic was used. The stem is the ground state, and the parallel branches are possible transitions to excited states, which will decrease the lengths of segments and eliminate the crosses. According to [9, 10], the general view of the automatically constructed diagram is shown in Fig. 1. The first line presents electronic configurations of states, the second line - atomic cores, and the third line - all possible terms. Several
terms correspond to each configuration. Energy levels are plotted on the ordinate, and designations of terms are laid off on the abscissa.
We will consider the algorithm for selection of mapped transitions for initial construction of the diagram. It is important to present in it the resonance lines (transitions from the ground state) and lines of transitions from excited states. At that, the wavelength of the mapped transition should be taken into account. At first, we should present transitions with the wavelength from the visible and near-IR regions as the most useful ones for researchers. Problems arise when these requirements come in conflict. It was visually found that while mapping simultaneously more than 30 transition lines, the diagram becomes intricate, but the number of lines satisfying the initial criteria can be more than 100. In complex elements, the problem of selecting the mapped transitions is also closely related with their probable overlapping.
We will describe the used level selection algorithm.
1. For drawing, select resonance lines from the ground state with the greatest wavelength (no more than 20 lines).
2. From the whole set of transitions, select those with the greatest wavelength and intensity. From the same transitions, gather additionally some lines to reach 30. On average, the number per graph vertex is approximately the same.
3. Check layout of the lines on the diagram. If some transition overlaps other elements of the diagram, this transition is temporarily eliminated from consideration and the next element is selected from the list (see Item 2).
The next task is to layout the information on the diagram in such a manner that to ensure readability. The problem concerned with overlapping of mapped diagram elements is solved by different methods. Based on general considerations, it is possible to point out where a certain transition should be displaced to and how it should be mapped if the solution exists at all. However, if one does not imagine how the diagram will look as a whole, it is not easy to do this. If one transition line overlaps another line parallel to the first one (the distance between them is smaller than the height of figures denoting the wavelength), then several possibilities of layout are available. Firstly, a transition line can be moved to the right or to the left, segments presenting the levels can be extended if it is necessary. Secondly, a transition can be drawn in the form of two and more connected segments. While implementing the first possibility, one should take into account the presence of transitions from the left and right. If moving the line we occur on another transition, then it is necessary to implement the second possibility or eliminate the line from the diagram (see Item 3 of the level selection algorithm). This is the initial form of the diagram (see Fig. 1).
A user can construct a diagram with his own settings that represent the necessary data part more completely and accurately. This can be done using algorithm parametrization. For scaling and more accurate positioning, we can introduce a maximal and minimal level energy placed on the diagram.
The program written in the Java Language, which implements the foregoing algorithm, creates in its window a Grotrian diagram. Data necessary for constructing the diagram are contained in the XML document , the program receives the reference to it as a parameter. The document contains designations of electronic configurations and terms for horizontal scanning, breaks of the vertical energy scale, data on energy levels and ionization limits, and data on transitions. At the bottom of the diagram, there are input fields for setting the maximal and minimal energy, and also two fields for selecting transitions from a certain range. We can also construct a detailed partial diagram.
IS architecture maintaining dynamic construction of Grotrian diagrams. The described method for automatic construction of Grotrian diagrams creates prerequisites for organizing IS ensuring their dynamic construction by users' requests. This system should primarily implement possibilities that have already been tested on a number of such systems:
1) storage of massive information (hundreds of thousand records) on energy levels and atomic transitions of elements from the Periodic Table, and their ions;
2) effective organization of this information collection to ensure fast response to requests;
3) new data entry to IS;
4) tabulation of data on levels and spectra with selection tools, and sorting of selection.
In addition, the IS should ensure dynamic creation of a graphical data representation in the form of Grotrian diagrams by implementing the following possibilities:
1) the best choice of the number and composition of lines and transitions for default mapping in the canonical form;
2) user's setting of diagram properties;
3) selection of the necessary information from DB and dynamic ("on the fly") construction of a diagram picture with readability optimization.
The IS is based on a database management system (DBMS) that provides standard means for access to large volumes of information units of the same type, makes its possible to create general data access procedures, implement queries, etc.
The IS is constructed in a three-level client-server architecture.
The server level of the system is represented by an SQL server that ensures data storage and selection by SQL queries. The client level is standard web-browser software supporting the Java Language.
The main functionality of the system is concentrated on the intermediate level that ensures subject logic of the system, forms SQL queries, implements a web-gateway to the system, and gives interface to it. The base of the intermediate level is LEMMA application server designed at the Novosibirsk State University . This server uses actually its DB metamodel containing objective approach elements and mechanism maintaining sem-istructured data (XML fields), and makes it possible to construct complex user interfaces on the basis of methods of classes of objects defined in the conceptual data model. Each page of the user interface is called by http-query and initiates a certain method of a particular object, transferring the parameters to it. The called method according to user request organizes SQL query to DB. Based on the obtained data, the "on the fly" method generates an HTML/XML page to be transferred to the client.
Dynamic construction and mapping of Grotrian diagrams are implemented as follows. A query for diagram construction calls a method of class whose instances correspond to atoms and ions. This method generates a page and places in it a Java applet based on the described Java Program. The reference sent to the applet to a document containing information necessary for diagram drawing is a bar of call for a conjugate method (including the parameters) which is responsible for generating the required document with spectral data.
The intuitively obvious user interface based on the foregoing technologies ensures data receive according to the most frequently required queries, including:
- receiving tabulated information on levels of one or several elements;
- receiving tabulated information on transitions of one or several elements;
- receiving Grotrian diagrams on the given element and the set of parameters.
The base of the interface is presented by three pages, each of them is responsible for a certain type of request. The page "Levels" enables the user to make a detailed request for receiving information on energy levels of an atom or an ion, and presents results of this request. The form of request determines the choice of its parameters: the maximal and minimal energy, the configuration or term, energy units (eV cm-1), the list of mapped fields, and the height of output pages. These data are arranged in a table. Additional mechanisms ensure setting the representation (sorting in energy and configuration) on client's computer after receiving the data.
The page "Transitions" generates a query to receive the corresponding information. In the query parameters, it is possible to select elements, wavelength and variation (if the field is empty, all transitions are output), units (nanometers, angstroms), and permission to show complete information on the levels. Results can also be sorted in different parameters.
The page "Graphics" presents the form of selecting such Grotrian diagram parameters as a minimum and maximum intensity of displayed transitions, and minimum and maximum energy levels. The diagram itself is opened in a special window "Output diagram".
Experience of information system construction. An IS prototype "Electronic atom structure" implementing this function is presently constructed. The system is published in the Internet Network . For approbation, the system was filled in with the latest data on a beryllium atom  whose electronic structure is described by the LS-bond.
During the approbation, particular attention was given to graphical representation. The Grotrian diagram obtained default for the beryllium atom is shown in Fig. 1.
Possible settings: choice of the energy range of displayed levels and selection of transitions with a certain wavelength; they facilitate reading and understanding the information from the diagram. For instance, the choice of the range in energy allows one to clearly distinguish Rydberg and autoionization states. Using a partial diagram, one can show all known transition lines. It is possible to mark certain wavelengths by different colors, it is merely necessary to input the wavelength value and the range of marking.
Based on work with other diagrams, we found out that the used selection algorithm ensures right choice of mapped levels and adequate readability of diagrams for a separate group of atoms of alkaline and alkaline-earth elements. Other groups of atoms require additional testing.
We proposed a schematic for constructing an IS to store, process, and represent data on electronic structures of atoms, that is, the characteristics of energy levels (configuration, term, energy, and lifetime) and radiation transitions (the observed and calculated wavelength, probability of transition, and relative intensity). A special feature of the system is the possibility of dynamic visualizing the atomic structure via automatic construction of Grotrian diagrams from DB information. The IS is oriented to working via web-server Internet, thereby a researcher can gain the necessary data. The implemented system prototype allows constructing a graphical representation in the form of Grotrian diagrams. The system functions in the Internet Network  and is partially filled in with the latest data on atoms of alkaline elements and also on atoms of beryllium, calcium, magnesium, neon, and ytterbium.
The system is intended for specialists and students dealing with problems of atomic spectroscopy, plasma, quantum electronics, and astrophysics.
The authors are grateful to S.G.Rautian and D.A.Shapiro for fruitful discussions.
1. Ch.Moore, Atomic Energy Levels, NSRDS -NBS 35, Washington, vol. 1-3, 1971.
2. G.A.Odintsova and A.R.Striganov, Tables of Spectral Lines for Neutral and Ionized Atoms (in Russian), Energoizdat, Moscow, 1982.
3. S.G.Rautian and A.S.Yatsenko, UFN, vol. 169, no. 2, p. 217, 1999.
4. W.Grotrian, Graphische Darstellung der Spektren von Atomen und Ionen mit Ein, Zwei und Drei Valenzelektronen, Springer, Berlin, Bd. 2, 1928.
5. M.Yokozawa, M.Matsuzaki, T.Kamegaya, and M.Nakajima, Grotrian Charts of Neutral and Singly Ionized Rare Gases in Vacuum UV-region (NHK Laboratories, ser.183), NHK Laboratories Note, Tokyo, 1974.
6. Ch.Moore and P Merill, Partial Grotrian Diagrams of AstrophysicalInterest, NSRDS-NBS 23, Washington, 1968.
7. S.Baskin and J.Stoner, Atomic Energy Levels and Grotrian Diagrams, North Holland, Amsterdam, 1975-1982, vol. 1-4.
8. T.Shirai, J.Sugar, W. Wiese, et al., Spectral Data for Highly Ionized Atoms: Ti, V, Cr, Mn, Fe, Co, Ni, Cu, Kr, Mo, AIP, JPCRD, New York, 2000, Monograph no. 8.
9. A.S.Yatsenko, Grotrian Diagrams of Neural Atoms (in Russian), Novosibirsk, Nauka, 1993.
10. A.S.Yatsenko, Grotrian Diagrams of Single Ions (in Russian), Nauka, Novosibirsk, 1996.
11. A.Kramida and W.Martin, Journ. Phys. and Chem. Ref. Data, vol. 26, no. 5, p. 1185, 1997.
16. J.Seiko, SQL for Professionals. Programming (Russian transl.), Lori, Moscow, 2004.
17. http://plasma-gate.weizmann.ac.il/Pubs.html, (Yu.V .Ralchenko, Atomic Data and Database on the Internet, 1996, (Prepr., WIS-96/4/Jan-PH)).
19. A.S.Yatsenko, Graphical Representations of Spectral Data on Atoms and Molecules (in Russian), Novosibirsk, 2003, 20 p.
20. S.M.Ovchinnikov, XML: Documenting Language on Worldwide Web (in Russian), Maior, Moscow, 2001.
21. V.G.Kazakov, Investigation, Development, and Application of Courseware Using Multimedia Technologies in Higher Education (in Russian), NGU, Novosibirsk, 1999, 22 p.