📄 rcewriteup
字号:
PROGRAM RCE MOD 20 LEAST-SQUARES FITTING OF ATOMIC ENERGY LEVELS Robert D. Cowan Los Alamos National Laboratory February 1978 (revised August l986, January 1991, and August 1993) CONTENTS I. Introduction 2 II. Source Programs 2 III. Input (TAPE2E) 3 IV. Input (INE20) 4 V. Dimensions 8 VI. Running RCG and RCE (single parity) 8 VII. Output 8 VIII. Running RCN, RCN2, RCG, and RCE (single parity) 9 IX. Formats for ELEMID and CONFIG 10 X. Units 10 XI. Rerunning RCE or RCG (output file PARVALS) 11 XII. Running both parities together 11 XIII. RCE output files LEVELS1, LEVELS2, and LEVELS3 12 XIV. Notes regarding convergence problems 13 XV. Notes regarding Tables I and II 15 I. Introduction RCE is a FORTRAN 77 program for CRAY-1 or CYBER 205 orsimilar computers. Similarly to RCN, RCN2, and RCG, it has beenadapted to run also on VAXs, SUNs, IBM RISCs, and MacintoshCentris computers, and should be easily adaptable also to Apollos,Hewlett-Packards, PCs, etc. The basic purpose of RCE is to adjust the values of varioustheoretical parameters so as to produce computed atomic energylevels in the best possible (least-squares-wise) agreement withexperimentally known level values. Levels whose energies are notknown experimentally can be omitted from consideration. Any ofthe parameters can be held fixed at specified values, or groups ofparameters can be forced to vary in such a way that the ratios ofthe values within a group remain fixed relative to each other. The fitting process is carried out by an automatic iterativeprocedure until the parameter values no longer change from oneiteration cycle to the next (by more than 0.03), or for aspecified maximum number of cycles. The iteration can be carriedout in any one of the seven angular-momentum coupling schemesavailable in program RCG; final eigenvectors are printed in thisrepresentation, and also in either the LS or JJ representation(see Sec. VII). The basic theory involved is discussed in R. D. Cowan, TheTheory of Atomic Structure and Spectra (University of CaliforniaPress, Berkeley, 1981), especially Sections 16-3 to 16-5,hereinafter referred to as TASS. II. Source Programs The program assumes that the coefficient matrices for eachvalue of J and for each parameter are contained in a binary inputfile TAPE2E, precomputed by program RCG. The experimental levels(term values) T, together with (optional) estimated parametervalues and various control information must be provided as a BCDinput file INE20 (read internally as unit 10); this file can,except for the experimental level values, be obtained in basicform as output from RCG (a file named OUTGINE--short forOUTrcgINrce). The following brief discussion of the function of eachsubroutine provides a rough outline of the basic calculationalprocedure. MAIN Handles all input (including, for each J, transfer ofthe [LS-JJ or other] transformation matrix from TAPE2 to TAPE5,and transfer of coefficient matrices from TAPE2 to TAPE4). Italso handles the iteration control and most output. EIGEN Called by MAIN. Reads coefficient matrices fromTAPE4, calculates the energy matrix (for each J) for currentvalues of the parameters, and calls subroutine TRED2 todiagonalize the energy matrix and thereby obtain computed energylevels ORDER Called by EIGEN (and also by MAIN) to arrange thecomputed eigenvalues and vectors in the order of largesteigenvector component (i.e., so as to make the eigenvector matrixsuch that the eigenvector components of largest magnitude tend tolie on the diagonal); vectors not having clearly dominantcomponents are arranged so that the corresponding eigenvalues liein the same numerical order as do the remaining energy levels. [Atest number CRIT can be chosen to be zero, so that no vector willbe considered to have a dominant component. Then all eigenvalueswill be correlated with experimental level values in numericalorder.] CALCX Called by MAIN to modify the parameter values X so asto improve the agreement between eigenvalues (W) and energy levels (T). LSS Linear system solver called by CALCX. TRED2/TQL2 Suite of matrix-diagonalization programs. WR Program to compact a two-dimensional array (dimensionsIA x IA) containing a matrix of size IM (IM.LE.IA) into a one-dimensional array of size IM*IM or IM*(IM+1)/2. RD Program to accomplish the inverse of WR. CLOCK Program to obtain CPU time in minutes (forinformation only). This program contains sections appropriate fora CRAY, VAX or Macintosh, SUN, or IBM RISC; a section appropriateto another type of computer can be added, or the output timesimply set to zero. OUT8 Writes on TAPE8 (external file name LEVELS1) a summaryof the final results: experimental level, eigenvalue, Lande g-value, dominant configuration, and the percentage composition ofthe level (three largest components if an input constant CRIT1 iszero, or a unique component plus the two largest remainingcomponents if CRIT1 is greater than zero) in each of two couplingrepresentations. Levels are arranged in the order of increasing Jvalue, and for given J in order of increasing energy. SORT8TO7 and SORT Sort the information on TAPE8 in theorder of increasing eigenvalues, and write it on the OUTPUT fileand on a file TAPE7 (external file name LEVELS2). Also, sort theinformation on TAPE7 in the order of dominant configuration, andwrite it on a file TAPE12 (external file name LEVELS3). SORT2/ORDERI Sort numbers in one table in numericallyincreasing order, and similarly rearrange numbers in other tables. III. Input (TAPE2E) Details of the TAPE2E binary file will not be given here,but can be deduced from subroutine RCEINP of program RCG, wherethis file is written, or from RCE MAIN, where the file is read.Briefly, this file contains (for each of one or more "CSETS"--i. e., for each of one or more sets of electron configurationsof interest): (1) A record including a serial number for the CSET, thenumber of values of J, the total number of parameters, the numberof configurations, and the number of parameters for eachconfiguration and for each pair of interacting configurations. For each J-value: (2) The value of J, the matrix size, the transformationmatrix from the primary to the secondary coupling representation,the serial number of the configuration for each matrix row, andbrief basis-state labels in both of the representations. (3) The energy-coefficient matrix for each parameter, andthe Lande g-value matrix, all in the primary representation. IV. Input (INE20) The input file INE20 (internally read as unit 10) mustcontain the following information. [Input items (2) through (10)may be repeated as many times as desired.] (1) NOCYPR, NOCYCR, NOCYCE, I216, IW6 (Format 5I5). The least-squares iteration will proceed for at most NOCYCEcycles, output being printed every NOCYPR cycles, with inputlevels being reordered (into the same numerical order as thecomputed eigenvalues) every NOCYCR cycles. [If NOCYCR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -