Integral value calculating device and method and function gradient calculating device and method

Abstract: The present invention is an integral value calculating device for calculating an integral value of a function, and to a function gradient calculating device for calculating the gradient of the graph for a function. It aims at easily obtaining a transport coefficient, etc. by easily designating an appropriate calculation range in analyzing the data outputted by a molecular dynamics simulator. In the integral value calculating device 1, a graph display unit 2 outputs a graph according to received data, for example, a graph of a time correlation function F(t) of the time differential W'(t) to the dynamics volume W(t) in the format applicable to an external unit, for example, a display unit. A calculation range input unit 3 designates an integral range for the function according to the position data externally inputted for the graph. An integral value calculating unit 4 calculates an integral value for a function F(t), for example, for the designated integral range. In the function gradient calculating device, two points on a graph in which the gradient should be calculated are designated according to the position data inputted for a graph displayed on the display unit, for example. Then, a function gradient calculating unit 8 calculates the gradient of the graph, for example, the graph for the mean square displacement G(t) of the dynamics volume W(t), between the two designated points.

Description: Background of the Invention Field of the Invention The present invention relates to an integral value calculating device and a function gradient calculating device for easily calculating a transport coefficient, etc. by indicating the graph for the data outputted by a molecular dynamics simulator prior to an analysis of the data so that the scope of a calculation can be easily specified. Molecular dynamics simulators have been developed as application technologies of super-computers, etc. capable of performing arithmetic operations for various advanced scientific technologies. These simulators figure out the properties, etc. of substances by simulating the behaviors of a molecule according to a molecular dynamics method after receiving the initial coordinates and an initial speed of an atom, an inter-atom potential function, the mass of an atom, the electric charge of an atom, etc. Before describing the prior art of a molecular dynamics simulator pertaining to the analysis of output data, the summary of a molecular dynamics method is briefly explained as follows. A molecular dynamics method is a computer simulation technology for analyzing the properties of multi-particle substances consisting of a number of particles by moving the particles according to the kinetic rules of the classical dynamics. The method itself originated in the old days, and a number of new technologies for the method have been developed since 1980, thus extending the scope of objects to be obtained by these technologies. This greatly depends on the development of the method of simulating a case under condition of fixed temperature and pressure while in the old days various experiments were carried out under condition of fixed energies and volume. In computational physics used in the development of new substances (materials), the non-empirical molecular orbital method is in the stage of practical use in developing a fine molecular material having a small number of electrons. In this field, calculating, composing, and property-measuring processes have been used in combination as a new style of developing molecules. However, the classical molecular dynamics method in which potential functions are used for interatomic force and intermolecular force acts as an important part in designing materials for an atomic and molecular multi-particles body consisting of hundreds, thousands, or possibly tens of thousands of atoms where it is hard to successfully apply electronics even with the capabilities of giga flops realized by the latest computers. Before the development of computer simulations, statistical mechanics had been used in analyzing according to micro data such as the correlation among atoms, etc. the structures and properties of a number of atomic and molecular groups. However, if the correlation among atoms is complicated to some extent, then exact solutions of basic equations in statistical mechanics cannot be obtained. Meanwhile, molecular dynamics realizes a simulation technology in which a multi-particles system Newton equation is analytically solved and the information similar to that obtained by statistical mechanics can be provided. Figure 1 shows input and output information according to the molecular dynamics method. Potential functions indicating the correlation among atoms and molecules, and physical environmental conditions such as temperatures and pressure, etc. are applied as the input information. Under these conditions, multi-particles system Newton equations are solved, and the resultant coordinates of the positions of atoms at predetermined points are statistically processed to provide thermodynamics properties (internal energies, specific heat, elastic constants, etc.) as the output information. If the coordinates of the position of an atom and its speed at each point are statistically processed, then dynamic properties (diffusion coefficients, shear viscosity, electric conductivity, thermal conductivity, etc.) and spectroscopic properties can be provided as the output information. In a simulation based on the above described molecular dynamics, a substance such as a liquid, for example, composed of the enormous number of molecules is processed by tracing the movement of some of the molecules through a computer simulation so as to obtain the macroscopic properties of the substance. Then, conducting a simulation under condition of fixed temperature and pressure, for example, enables the structural phase change, where the particle positions in a crystal and the form of the crystal are subject to changes, to be directly detected. Necessarily, the number of particles and the time length of analysis greatly depend on the computational capabilities of computer systems, and an important object of this simulation technology has been to efficiently obtain the macroscopic properties of substances using the smallest possible number of particle systems. Self-diffusion coefficient, shear viscosity, bulk viscosity, thermal conductivity, electric conductivity, etc. can be obtained as transport coefficients by analyzing the data outputted by a simulator based on the molecular dynamics method. At this time, an error may be bigger, or the calculation time may be prolonged depending on the range of applicable output data. Therefore, it is required that the calculation range should be appropriately informed. Conventionally, there are two calculation methods, that is, a method using a time correlation function and a method using a mean square displacement, when a transport coefficient is calculated using data obtained by the molecular dynamics method. As well-known as a linear application theory, there is the following correlation between the time differentiation W'(t) of a certain dynamics volume W(t) and the transport coefficient K of the volume transported by W(t). K = 0 ∞ 〈W'(t)W'(0)〉 dt W'(t) can be calculated by the molecular dynamics method, but time t is limited and the integral calculation is carried out for the limited range. Therefore, in the practical calculation, the transport coefficient K is approximated in the following equation. K ≒ 0 t 0 〈W'(t)W'(0)〉 dt The precision greatly depends on the integral range. The integral range generates the following graph. F(t) =〈[W(t)W'(0)]〉 (where 〈 〉 indicates and hereinafter refers to an average sample) The value is effective up to the time t 0 where the amplitude of the function F(t) has been converged sufficiently. This is the method of calculating a transport coefficient using a time correlation function. The transport coefficient K can also be obtained as follows. because the following equation can exist mathematically. In this case, the dynamics volume W(t) is calculated by the molecular dynamics method to draw a graph G(t) = 〈[W(t)-W(0)] 2 〉 , and the value of the gradient of the linear portion in the graph. This is the method of calculating a transport coefficient using a mean square displacement. Conventionally, when the range of data used for obtaining such a transport coefficient is designated, a trial-and-error test is carried out based on empirical knowledge, or an appropriate range is determined by manually drawing an approximate graph. Just for information, equations used in calculating a transport coefficient using data outputted by the calculation according to the molecular dynamics method are explained briefly as follows. As described above, there is the following correlation among a certain dynamics volume W(t), its time differentiation W'(t), and the transport coefficient K of the volume transported by W(t). The correlation among various transport coefficients K, dynamics volume W(t), and the time differentiation W'(t) is represented as follows. (1) Self-diffusion coefficient D: K = D W(t) = vec-r i (t) = (x i (t), y i (t), z i (t)) W'(t) = vec-v i (t) = (v ix (t), v iy (t), v iz (t)) where vec-r i (t) indicates a position vector of a particle i at the time t , and vec-v i (t) indicates a speed vector of a particle i at the time t . v ix (t), v iy (t), and v iz (t) indicate time differentiations of x i (t), y i (t), z i (t) respectively. (2) Shear viscosity η : K = Vk B Tη (where V indicates volume, T temperature, and k B Boltzmann's constant) W ( t ) = m Σ{ v ix ( t ) y i ( t ) + v iy ( t ) z i ( t ) + v iz ( t ) x i ( t ) + v ix ( t ) z i ( t ) + v iy ( t ) x i ( t ) + v iz ( t ) y i ( t )} W '( t ) = 2 m Σ{ v ix ( t ) v iy ( t ) + v iy ( t ) v iz ( t ) + v iz ( t ) v ix ( t )} + Σ{ F ix ( t ) y i (t ) + F iy (t' ) z i ( t ) + F iz ( t ) x i ( t ) + F ix ( t ) z i ( t ) + F iy ( t ) x i ( t ) + F iz ( t ) y i ( t )} where Σ indicates a sum of i=i through N when the number of particles is N. m indicates the mass of a particle, F ix (t), F iy (t), and F iz (t) indicate respectively x, y, and z components of the force applied to the particle i . (3) Bulk viscosity : W ( t ) = m Σ{ v ix ( t ) x i ( t ) + v iy ( t ) y i ( t ) + v iz ( t ) z i ( t )} W '( t ) = m Σ{ F ix ( t ) x i ( t ) + F iy ( t ) y i ( t ) + F iz ( t ) z i ( t ) + m Σ{ v ix ( t ) 2 + v iy ( t ) 2 + v iz ( t ) 2 } (where Σ indicates the sum of i=1 through N (the number of particles)) (4) Thermal conductivity λ: K = Vk B T 2 λ W(t) = Σ{x i (t) + y i (t) + z i (t)} × {(1/2)m(vec-v i (t)) 2 + (1/2) i (t)} W'(t) = Σ{v ix (t) + v iy (t) + v iz (t)} × {(1/2)m(vec-v i (t)) 2 +(1/2) i (t)} + (1/2)Σ[v ix (t) x i (t) (F ix (t) + F iy (t) + F iz (t)} + v iy (t) y i (t) {F ix (t) + F iy (t) + F iz (t)} + v iz (t) z i (t) {F ix (t) + F iy (t) + F iz (t)}] where Φ i (t) indicates the potential energy of a particle i at the time t . (Σ indicates the sum of i=1 through N (the number of particles)) (5) Electric conductivity σ : K = Vk B Tσ W(t) = ΣQ i vec-r i (t) W'(t) = ΣQ i vec-v i (t) whore Q i indicates the electric charge of the particle i . (Σ indicates the sum of i=1 through N (the number of particles)) According to the molecular dynamics method, the coordinates, speed, potential energy, etc. of each particle at each point are calculated, the results of which are used in calculating W(t) and W'(t) by the above mentioned equations. As described above, the integral range should be determined when a transport coefficient is calculated using a time correlation function. However, it is not efficient to calculate a transport coefficient by drawing the graph F(t) = 〈[W(t)W'(0)]〉 on paper, etc., reading the time t O where the amplitude of the function F(t) has been sufficiently converged, and applying the integral result to an executable program t O . When a transport coefficient is calculated using a mean square displacement, the graph for Function G(t) = 〈[W(t)-W(0)] 2 〉 should be drawn, the range of the linear portion be extracted, and then the gradient of the linear portion be read. Furthermore, the performance becomes more inefficient if the method of least square is adopted in calculating the gradient of the linear portion. If unknown data in time series obtained by a computer system are analyzed, not limited to the case where a transport coefficient is calculated, then the range of the calculation must be determined depending on the types of the data so as to obtain a necessary result. Conventionally, there are no guidelines for selecting the range of the calculation. Accordingly, it has to be selected by using empirical knowledge from a list of numerical character strings, or by manually drawing a graph. This often causes errors and requires considerable labor and time. US-A-4 794 554 discloses an electronic calculator having a graph display function on a liquid-crystal display screen, within a designated range, input from a keyboard. The electronic calculator can change the range using a predetermined point or range on the screen as the centre, thus enlarging or reducing the displayed graph to a desired magnification. However, there is no disclosure of applying this calculator to a transport coefficient calculation method. US-A-4 794 553 discloses an electronic calculator having a graph display function which has function keys for inputting functional formulae, a memory for storing an input functional formula, a range of input keys for inputting a range of a range of data for variables in the formula, a memory for storing the range of data, and a read-only memory (ROM) for storing a control program which sequentially calculates the values of the dependent variables for the independent variable with an ALU in accordance with the functional formula and the range data which displays the calculated values on a display component. US-A-5 067 102 discloses a calculator programmed for displaying in text book format a mathematical expression as it is entered. This format is the way it would appear if presented in a text book. As a key is pressed, the associated character or symbol appears on the screen. A cursor is provided which responds to currently entered objects for indicating where the next object entered will be displayed. Journal of Computational Chemistry, Summer 1983, USA, Vol. 4, no. 2, pages 187-217, 1SSN 0192-8651 Brooks BR et al 'CHARMM: a program for macromolecular energy, minimisation, and dynamics calculations' discloses a computer program which uses empirical energy functions to model macromolecular systems. The program can read or model build structures, energy minimize them by first- or second-derivative techniques, perform a normal mode or molecular dynamic simulation, and analyze the structural, equilibrium, and dynamic properties determined in these calculations. The present invention has been developed in view of the above described problems of the prior art, and aims at providing an integral value calculating method and a function gradient calculating method capable of easily designating the appropriate range of a calculation so that a transport coefficient, etc. can be easily calculated. According to a first aspect of the present invention, there is provided a transport coefficient calculating method of a computer for obtaining a transport coefficient using the output of a molecular dynamics simulator, comprising the steps of selecting a file of the computer containing the data outputted by said molecular dynamics simulator; selecting a transport coefficient analyzing method of the computer according to a time correlation function F(t), a dynamics volume W(t), and a time differentiation W'(t); inputting into the computer as calculation conditions a number of time series, a length of time series, a starting step, a step interval, and a number of steps including indicating a time delay of adjacent time series; calculating, by the computer, the value of the time correlation function F(t); displaying, by the computer, the graph of the time correlation function F(t); inputting into the computer, position data as a calculation range for a graph of the time correlation function F(t); and calculating, by the computer, a value of the transport coefficient according to the integral calculation for the time correlation function F(t) at the time corresponding to the inputted position. According to a second aspect of the present invention, there is provided a calculating method of a computer for calculating transport coefficients by using the output of a molecular dynamics simulator, comprising the steps of selecting a file of the computer containing the data output by said molecular dynamics simulator; selecting a transport coefficient analyzing method of the computer according to a mean square displacement G(t) of a dynamics volume W(t); inputting into the computer as calculation conditions a number of time series, a length of time series, a starting step, a step interval, and a number of steps indicating a time delay of adjacent time series; calculating, by the computer, the value of a mean square displacement G(t); displaying, by the computer, a graph of the mean square displacement G(t); inputting into the computer two position data as a calculation range for a gradient of the graph of the mean square displacement G(t); and calculating by the computer, a value of a transport coefficient according to the calculation of the gradient of the graph G(t) between the two time points corresponding to the inputted position. The present invention also embraces devices implementing the above methods of calculating transport coefficients. Reference is made, by way of example, to the accompanying drawings in which:- Figure 1 shows input and output information according to the molecular dynamics method; Figures 2A and 2B are block diagrams showing the configuration of first and second principles of the present invention; Figure 3 is a block diagram showing an embodiment of the first principle of the invention; Figure 4 is a block diagram showing the embodiment of Figure 3 applied to coefficient calculation; Figure 5 is a block diagram showing an embodiment of the second principle of the invention applied to transport coefficient calculation; Figure 6 is a block diagram showing the configuration of the computer system for realizing the present invention; Figures 7A to 7C show how a calculation range is designated in the present invention; Figure 8 is a flowchart for explaining the embodiment of the transport coefficient calculation; Figures 9A and 9B show examples of a condition input screen; Figures 10A and 10B show examples of a graph display screen; and Figure 11 is a flowchart for explaining an embodiment of the gradient calculation for a graph. Figures 2A and 2B are block diagrams showing the configurations of first and second principles of the present invention respectively. More particularly, Figure 2A shows an integral value calculating device 1 which comprises a graph display unit 2, a calculation range input unit 3, and an integral value calculating unit 4. The graph display unit 2 displays the graph for the function to be integrated on the screen of a display unit according to the data stored in a function data storage unit, for example. The calculation range input unit 3 designates the range of the function to be integrated in response to the user's designation, via a mouse, of two points in the graph on the screen of the display unit. The integral value calculating unit 4 integrates the function over the designated range and displays the result on the screen, for example. The integral value calculating device according to the first principle of the present invention is also used in calculating a transport coefficient using output data calculated by the molecular dynamics method. In this case, for example, the graph display unit 2 displays on the screen of a display unit the graph for F(t) according to the data outputted by a simulator based on the molecular dynamics method, where W'(t) indicates the time differentiation of the dynamics volume W(t), and F(t) indicates its time correlation function. If the calculation range input unit 3 designates two time values t 1 and t 2 as an integral range to calculate a transport coefficient in response to the user's designation through a mouse, then the transport coefficient calculating unit, for example, corresponding to the integral value calculating unit 4 calculates an integral value of a function F(t) for the designated integral range, and it displays the result as a transport coefficient on the screen of a display unit, for example. Figure 2B is the block diagram showing the principle of the function gradient calculating device according to the second principle of the present invention. In Figure 2B, a function gradient calculating device 5 comprises a graph display unit 6, a calculation range input unit 7, and a function gradient calculating unit 8. The graph display unit 6 displays the graph for the function to be processed in a gradient calculation on the screen of a display unit, for example. The calculation range input unit 7 designates two points for determining the gradient in response to the user's designation in the graph through a mouse, etc. on the screen of a display unit, for example. The function gradient calculating unit 8 calculates the gradient of the graph for the function containing the designated two points, and displays the calculation result on the screen of a display unit. The function gradient calculating device according to the second principle of the present invention is also used in calculating a transport coefficient using a mean square displacement obtained from the data outputted by the molecular dynamics method. At this time, the graph display unit 6 displays the mean square displacement G(t) of the dynamics volume W(t) on the screen according to the data outputted by a molecular dynamics simulator. The calculation range input unit 7 designates the calculation range to obtain a transport coefficient according to the positions in a graph of the two points designated through a mouse, for example. The transport coefficient calculating unit, for example, corresponding to the function gradient calculating unit 8 calculates the gradient of the graph for G(t) containing the designated two points, and displays the result as a transport coefficient of the dynamics volume W(t) on the screen of a display unit. Thus, according to the present invention, the graph for the data to be analyzed is displayed on a display unit. Based on the displayed graph, a user easily designates through a pen hit or a mouse an appropriate range for a calculation. Therefore, data can be analyzed within a short time with excellent precision. Especially, when a transport coefficient is calculated by using a time correlation function, the time t 0 where the amplitude has been sufficiently converged can be easily designated as an integral range according to the graph for the function F(t). Therefore, a precise result can be obtained. When a transport coefficient is calculated by using a mean square displacement, the calculation range of the linear portion can be designated according to the graph for the function G(t). Therefore, a precise transport coefficient can be easily calculated. A desirable result can be obtained by automatically calculating the gradient by the method of least square, for example. Figure 3 is the block diagram showing the configuration of the embodiment of the integral value calculating device according to the first principle of the present invention. In Figure 3, an integral value calculating device 10 comprises a CPU, a memory, etc.; a function data storage unit 11 for storing data to be processed by a computer; a graph display unit 12 displays function data on a display unit in the representation of a graph; a calculation range input unit 13 inputs an integral range; an integral value calculating unit 14 calculates an integral value; 15 is a display unit; a position input unit 16 inputs the position on the screen using a mouse or a write pen, etc.; a cursor 17 indicates the present position of an operation; and a result display area 18 displays the result display area of a calculated integral value. The graph display unit 12 displays the graph for the function determined according to the data stored in the function data storage unit 11 on the display unit 15. The calculation range input unit 13 designates an integral range by inputting the position to the position inputting unit 16 the position in the graph displayed on the display unit 15. The integral value calculating unit 14 calculates the integral value of the function indicated by the data stored in the function data-storage unit 11 for the integral range designated by the calculation range input unit 13, and it displays the result in the result display area 18 on the display unit 15. The steps of an integral calculation performed by the integral value calculating device are described below. In the first step, a data string of a function to be processed in an integral calculation is selected. The function data string can be commonly represented as {y(t 0 ), y(t 1 ),..., y(t n )}. In the second step, according to the selected function string the graph for the function is displayed on the screen of a display unit. In the third step, an integral method, that is, a trapezoidal rule, a Simpson method, etc. is selected. In the fourth step, a user inputs a start point and an end point of an integral calculation to a position input unit, for example, a mouse, by referring to the screen of a display unit. In the fifth step, the calculation for an integral value is actually carried out. For example, when the trapezoidal rule is used, the sample time t 1 larger, but the smallest possible value, than the start point of the integral calculation inputted in the fourth step is determined from the selected function string, and the sample time t m smaller, but the largest possible value, than the end point of the integral calculation is determined from the selected function string. Then, the integral value is calculated by the following equation according to the trapezoidal rule. S = 1/2{y(t 1 +1)+y(t l )} x (t l+1 -t l ) + 1/2{y(t 1+2 )+y(t l+1 )} x (t l+2 -t l+1 ) + ... + 1/2{y(t m )+y(t m-1 )} x (t m -t m-1 ) Thus, the integral value S calculated in the sixth step is displayed, and the process is terminated. Figure 4 is the block diagram showing the configuration of the embodiment (1) of the transport coefficient calculating device as an application sample of the first principle of the present invention. In Figure 4, a molecular dynamics simulator 20 simulates the behavior of a molecule according to the molecular dynamics; a transport coefficient calculating device 21 comprises a CPU, a memory, etc.; a graph display unit 22 displays a graph for obtaining a transport coefficient; a calculation range input unit 23 inputs an integral range value; a transport coefficient calculating unit 24 calculates a transport coefficient by calculating an integral value; 25 is a display unit; a position input unit 26 such as a mouse, a write pen, etc. inputs a position on the screen; a cursor 27 displays the present position of an operation on the screen; and a coefficient display area 28 displays the calculation result of the transport coefficient. The molecular dynamics simulator 20 simulates the behavior of a molecule according to the molecular dynamics in response to the input of the initial coordinates and an initial speed of an atom, an inter-atom potential function, the mass of an atom, the electric charge of an atom, etc. It outputs the coordinates, speed, and potential energies, etc. at each time point for each atom. The configuration itself of the molecular dynamics simulator 20 is not important in the summary of the present invention, and the explanation is omitted here. The graph display unit 22 displays on the X-Y plane on the screen of the display unit 25 according to the data outputted by the molecular dynamics simulator 20 the graph Y=F(t) , X=t , where W'(t) indicates the time differentiation of the dynamics volume W(t), that is, a time function; and F(t) indicates the time correlation function 〈[W'(t)W'(0)]〉. The calculation range input unit 23 designates an integral range to obtain a transport coefficient by inputting to the position input unit 26 the position in the graph displayed on the display unit 25. The transport coefficient calculating unit 24 calculates the integral value of F(t) for the integral range designated by the calculation range input unit 23, and displays the result as a transport coefficient on the coefficient display area. Figure 5 is the block diagram showing the configuration of the embodiment (2) of the transport coefficient calculating device as an application of the function gradient calculating device according to the second principle of the present invention. In Figure 5, a molecular dynamics simulator 30 simulates the behavior of a molecule according to the molecular dynamics; a transport coefficient calculating device 31 comprises a CPU, a memory, etc.; a graph display unit 32 displays a graph for obtaining a transport coefficient; a calculation range input unit 33 inputs an integral range value; a transport coefficient calculating unit 34 calculates a transport coefficient by calculating an integral value; 35 is a display unit; a position input unit 36 such as a mouse, a write pen, etc. inputs a position on the screen; a cursor 37 displays the present position of an operation on the screen; and a coefficient display area 38 displays the calculation result of the transport coefficient. Generally, in the analysis of experimental data, etc., it may be necessary to calculate the gradient of the portion where obtained data indicate a linear change. In the second principle of the present invention, the gradient of the function data is automatically calculated by the method of least square by displaying the graph on a display unit and inputting two points on the graph to the position input unit, and the result is displayed on the display unit. The unit shown in Figure 4 calculates a transport coefficient using a time correlation function, while the unit shown in Figure 5 calculates it by a mean square displacement. The graph display unit 32 displays on the X-Y plane on the screen of the display unit 15 according to the data outputted by the molecular dynamics simulator 30 the graph Y=G(t) , X=t , where W(t) indicates the dynamics volume W(t), that is, a time function; and G(t) indicates a mean square displacement 〈[W(t)-W(0)] 2 〉. The calculation range input unit 33 designates an integral range to obtain a transport coefficient by inputting to the position input unit 36 the position in the graph displayed on the display unit 35. The transport coefficient calculating unit 34 calculates the gradient {G(t 2 )-G(t 1 )}/(t 2 -t 1 ) of the graph for the function G(t) containing the two points designated by the calculation range input unit 33, and displays the result as the transport coefficient of the dynamics volume W(t) on the coefficient display area 38. The gradient of the graph is calculated by the method of least square, for example. Figure 6 is the block diagram showing the entire configuration of the computer system for realizing the integral value calculating device according to the first principle, or the function gradient calculating device according to the second principle of the present invention. As shown in Figure 6, the system comprises a central processing unit (CPU) 42 having an arithmetic operation unit 40 and a control unit 41, a main storage unit 43, an auxiliary storage unit 44 such as disks, an input unit 45 such as a mouse and a keyboard, and an output unit 46 such as a display unit. Although the configuration is common, it is explained below relative to the configuration of the integral value calculating device and the transport coefficient calculating device shown in Figures 3 through 5. In Figures 3 through 5, the function data storage unit 11 corresponds mainly to the main storage unit 43 shown in Figure 6, and a part of the function data are stored in the auxiliary storage unit 44. Various processing unit, that is, the graph display units 12, 22, and 32, the calculation range input units 13, 23, and 33, the integral value calculating unit 14, and the transport coefficient calculating units 24 and 34 are configured in the central processing unit 42. The necessary data or programs for the processes are read and used from the main storage unit 43 or the auxiliary storage unit 44. Figure 7 shows how to designate the calculation range for an embodiment of the present invention. When a transport coefficient is calculated using a time correlation function according to the data outputted by the molecular dynamics simulator, a numerical integration is required. The transport function K can be obtained by performing the integration 〈[W'(t)W'(0)]〉 where the time value varies from 0 to infinity. However, in the numerical integration, the integration cannot be performed to the infinity. Therefore, the result should be approximated by specifying the range as 0 through t 0 . The time correlation function F(t) = 〈[W'(t)W'(0)]〉 is usually represented as shown in Figure 7A. The integral range should be set to the point t 0 where the amplitude has sufficiently converged. Otherwise, a correct result cannot be obtained, and the result is insufficient between the range 0 through t 1 , for example. A convergence point can be detected apparently in the graph. If the integral range is reserved as too long, calculation errors, etc. may be caused undesirably. If the calculation data for the molecular dynamics method is insufficient for short of time, then the time correlation function F(t) is represented as shown in Figure 7B. Thus, when data are not sufficient for short of time, a transport coefficient K cannot be calculated. Therefore, a calculation is performed according to the molecular dynamics method again, and the resultant data should be added. Whether or not the calculated data are sufficient can be apparently determined at a graph. Thus, erroneous and redundant calculations can be omitted. The transport coefficient K can also be obtained by the following equation. However, in an arithmetic operation, a result cannot be obtained to the limiting value (t→∞). Therefore, using the limited value t , the following graph is drawn to obtain the transport coefficient K from the gradient. G(t) = 〈[W(t)-W(0)] 2 〉 The mean square displacement G(t) = 〈[W(t)- W(0)] 2 〉 is usually represented by the graph shown in Figure 7C. In this graph, since the removal distance of a particle within the range t=0-t 1 is shorter than a mean free path, no transport phenomena are generated. By contrast, since the removal distance of a particle within the range t=t 2 -t 3 is too long, the transport phenomena is hard to generate. Therefore, the gradient of the graph should be calculated in the range t 1 - t 2 . It is well-known that the method of least square results in excellent precision in calculating the gradient for the graph. The above described fact con be clarified by displaying graphs. Figure 8 is a flowchart of an embodiment of the transport coefficient calculation according to the present invention; Figure 9 shows an example of a conditional input screen in calculating a transport coefficient associated with the embodiment of the present invention; and Figure 10 shows an example of a graph display screen associated with an embodiment of the present invention. Embodiments of the present invention are explained for steps S50 - S56 shown in Figure 8 by referring to Figures 9 and 10. When the data outputted by the molecular dynamics simulator are analyzed, each of them is first instructed as to how the analysis is carried out. First, in S50, a file containing the data outputted by the simulator is selected by a mouse click from a file name list on the conditional input screen shown in Figure 9A according to the "File select" function. The file-name list can be scrolled by clicking the leftmost up and down arrows. In this example, the file "Li" is assumed to be selected. Next, in S51, a pull-down menu is opened by clicking an analysis button to designate an analyzing method. Here, selection menu includes "Transport coefficient (correlation function)", "Transport coefficient (Mean square displacement)", etc. If a transport coefficient is calculated using a time correlation function, then "Transport coefficient (correlation function)" is selected. If the calculation is carried out using a mean square displacement, then "Transport coefficient (Mean square displacement)" is selected. Next, in S52, the type of transport coefficient and the condition on the calculation of the transport coefficient are inputted on the input screen shown in Figure 9B. The types of transport coefficients are diffusion function, shear viscosity, bulk viscosity, thermal conductivity, electric conductivity, etc. The calculation conditions are listed as follows. Job comment: optional comment assigned to the present calculation Start step: designating a step number in an output file of a simulator where the calculation is to start. calculate interval: designating the step interval for a sampling Number of time series Time series shift step: designating the time delay between adjacent time series Time series length: designating the length of time series Although omitted in figures, various data such as the number of entire steps, time per one step, temperature, pressure, starting time ending time, etc. are automatically displayed on the screen according to the file of selected output data and the calculation conditions. The number of time series of time series data, starting step, step intervals, etc. are explained in detail. First, the time series data outputted by molecular dynamics simulators (N units each) have the following M variations. Assuming that a certain dynamics volume W(t) is calculated by the M types of time series data (there are a number calculating methods, and are not described here), the time series data of the dynamics volume W(t) are represented as follows. {W(t 1 ), W(t 2 ), ... , W(t N )} L pieces of data 1 through L are retrieved each being shifted by Id steps from the time series data above. where I indicates a starting step, J indicates a step interval, K indicates the length of time series, Id indicates the step corresponding to the time delay of each time series, and L indicates the number of time series. I through L are all natural numbers, and I + (L-1)Id + (K-1)J is smaller than N. These L pieces of time series data are time delayed by Id steps. In the stationary stochastic process, these L pieces of samples, for example, W(t I ), W(t I+Id ), ..., W(t I+(L-1)Id ) are considered to be different samples of the dynamics volume W(t) at the same time. The value is considered to be large enough so as to make W(t I ) and W(t I+Id ) statistically independent. A sampling process is carried out by the above method when a transport coefficient is calculated by using a time correlation function or mean square displacement. The time differential W'(t) of the dynamics volume W(t) is not calculated after obtaining W(t), but it is directly calculated using the above mentioned M types of simulator outputs. When the exec. button shown in Figure 9B is clicked after the input of conditions is completed in S52 shown in Figure 8, the calculation using a time correlation function or a mean square displacement is started, and the result is stored in a predetermined file. When the file containing the calculation result obtained by using a time correlation function or a mean square displacement is selected, and when the display button (not shown in figures) is clicked, the graph for the file selected in S53 is displayed as shown in Figure 10A, for example. The graph drawn according to a mean square displacement is displayed in this example, where R(t) indicates the coordinates of an atom at the time t , and is a kind of dynamics volume W(t). If a transport coefficient is obtained through the graph drawn according to a mean square displacement shown in Figure 10A, two points on the linear portion in the graph are inputted through a mouse, etc. after clicking the coefficient button (not shown in figures) in S55. The positions of the two points are indicated by x as shown in Figure 10A. If a transport coefficient is obtained by the graph drawn according to a time correlation function, one point in the graph is inputted to designate the integral range after the click of the coefficient button (not shown in figures). The value of a transport coefficient is calculated for the calculation range inputted in S56, and the result is displayed as shown in Figure 10B. When the gradient of a graph is calculated, the following method of least square obtains a transport coefficient with excellent precision. Between two points hit on the graph, the following equation exists. G(t) = at + b where the function G(t) indicates a linear function of t , and a and b are constants. The time between the two points varies sequentially from t 1 , t 2 , t i , ..., and t n . In the method of least square, the values a a and b are calculated such that they can generate the minimum value of the equation D=Σ∥W(t i )-G(t i )∥ 2 (where Σ indicates a sum with i-1 through N). D=Σ∥W(t i )-G(t i )∥ 2 = Σ∥W(t i )-(at i +b)∥ 2 =(Σt i 2 )a 2 +2(Σt i )ab+(Σl)b 2 -2(Σt i W(t i ))a-2(ΣW(t i ))b+ΣW(t i ) 2 To obtain the values of a an d b which minimize the value of D, the following simultaneous equations should be solved. D/a = 0, D/b = 0 That is, the following equations should be solved to obtain the values of a and b , where a indicates the target gradient. D/a = 2 (Σt i 2 ) a + 2 (Σt i ) b - 2 (Σt i W(t i )) = 0 D/b = 2 (Σt i ) a + 2 (Σ1) b - 2 (ΣW(t i )) b = 0 Figure 11 is the flowchart of the above process. First, in step S60, two points on the linear portion of the function G(t) shown as a graph are inputted by a mouse hit. Then, the discrete data t 1 , W(t 1 ), t 2 , W(t 2 ), ..., t n , W(t n ) between the two points hit in S61 are read from the file. According to the data read in S62, the coefficients in the simultaneous equations Σt i , Σt i 2 , Σt i W(t i ), ΣW(t i are calculated, and the following simultaneous equations are solved in S63 and the values of a and b are obtained. 2(Σt i 2 )a+2(Σt i )b-2(Σt i W(t i ))=0 2(Σt i )a+2(Σl)b-2(ΣW(t i ))b=0 In S64, a is obtained as the target gradient. As described above, the method of least square can be used to calculate the gradient of a graph. According to the present invention, a calculation range can be specified by referring to the corresponding graph with excellent precision. Especially, the data outputted by the molecular dynamics simulator can be analyzed for reasonable portions, and transport coefficients can be easily calculated. The present invention can be utilized for all industrial fields in which integral calculations and gradient calculations of a function are required, and in which a molecular dynamics simulator is used for developing and surveying various substances (materials).

Claims: A transport coefficient calculating method of a computer for obtaining a transport coefficient using the output of a molecular dynamics simulator (20), comprising the steps of: selecting a file of the computer containing the data outputted by said molecular dynamics simulator (20); selecting a transport coefficient analyzing method of the computer according to a time correlation function F(t), a dynamics volume W(t), and a time differentiation W'(t); inputting into the computer as calculation conditions a number of time series, a length of time series, a starting step, a step interval, and a number of steps indicating a time delay of adjacent time series; calculating, by the computer, the value of the time correlation function F(t); displaying, by the computer, the graph of the time correlation function F(t); inputting into the computer, position data as a calculation range for a graph of the time correlation function F(t); and calculating, by the computer, a value of the transport coefficient according to the integral calculation for the time correlation function F(t) at the time corresponding to the inputted position. An integral value calculating device (1,10,21) adapted to carry out each of the steps of the method according to claim 1 to calculate said transport coefficient, having: a computer, comprising: graph display means (2,12,22) for outputting a graph for a function according to received data; calculation range input means (3,13,23), communicating with said graph display means (2,12,22), for designating an integral range for said function according to position data externally designated on said graph; and integral value calculating means (4,14,24), communicating with said calculation range input means (3,13,23), for calculating the integral value of said function for said designated integral range; and an external unit (15,25) connected to said computer and receiving the graph and the integral range. The integral value calculating device according to claim 2, wherein said external unit (15,25) comprises display means for displaying the graph of said function according to the output of said graph display means (12,22), and said integral value calculating device comprises position input means (16,26) for inputting to said calculating range input means (13,23) the position data on the graph displayed on said display means (15,25), and comprises function data storage means (11,20) for storing said function data and outputting said function data to said graph display means (12,22). The integral value calculating device according to claim 2, wherein said external unit (15,25) comprises display means; said calculation range input means (13,23) designates an integral range for a function F(t) at time points corresponding to position data externally inputted for a graph of said function F(t); and said integral value calculating means (14,24) calculates the integral value of said function F(t) for said designated integral range, and a result is output as a transport coefficient when said graph display means (12,22) outputs a graph for the function F(t) indicating a time correlation function 〈(W'(t)W'0))〉, where 〈 〉 indicates a sample average, in a format applicable to said display means (15,25) where W'(t) indicates a time differentiation of a dynamic volume W(t) obtained according to data calculated based on a molecular dynamics method. The integral value calculating device according to claim 4, wherein the time corresponding to said externally inputted position data indicates a time when an amplitude of said function F(t) has sufficiently converged. A calculating method of a computer for calculating transport coefficients by using the output of a molecular dynamics simulator (30), comprising the steps of: selecting a file of the computer containing the data output by said molecular dynamics simulator (30); selecting a transport coefficient analyzing method of the computer according to a mean square displacement G(t) of a dynamics volume W(t); inputting into the computer as calculation conditions a number of time series, a length of time series, a starting step, a step interval, and a number of steps indicating a time delay of adjacent time series; calculating, by the computer, the value of a mean square displacement G(t); displaying, by the computer, a graph of the mean square displacement G(t); inputting into the computer two position data as a calculation range for a gradient of the graph of the mean square displacement G(t); and calculating, by the computer, a value of a transport coefficient according to the calculation of the gradient of the graph G(t) between the two time points corresponding to the inputted position. A function gradient calculating device (5) adapted to carry out each of the steps of the method according to claim 6 to calculate said transport coefficients, having: a computer (31), comprising: graph display means (6,32) for outputting a graph for a function according to received data in a first format; calculation range input means (7,33) for designating two points on the graph in which a gradient is to be calculated according to two position data externally designated and inputted for said graph; and function gradient calculating means (8,34) for calculating the gradient of the graph between said two designated points; and an external unit (35) coupled to said computer (31) and receiving the graph in the first format and the gradient. The function gradient calculating device according to claim 7, wherein said function gradient calculating means (34) is arranged to calculate a transport coefficient; said external unit (35) comprises a graph display unit which outputs in a format applicable to said display unit graph G(t), where a mean square displacement of a dynamics volume W(t) obtained according to data calculated based on a molecular dynamics method 〈(W(t)-W(0)) 2 〉 function gradient calculation range for the graph of G(t) at two time points corresponding to said two position data externally inputted for said graph G(t); and said function gradient calculating means (34) calculates a gradient ((G(t 1 )-G(t 2 ))/(t 1 -t 2 ) of the graph for the function G(t) between said two time points designated as a calculation range, and the calculation result is outputted as a transport coefficient of the dynamics volume W(t). The function gradient calculating device according to claim 8, wherein said two time points corresponding to said position data externally designated and inputted indicate approximately a constant gradient for said function G(t) to each other. The function gradient calculating device according to claim 8, wherein said calculating means (34) calculates the gradient of the graph for said function G(t) between said two designated time points according to a method of least squares.

Inventors: MIKAMI MASHUHIRO, NAMIKI TAKEFUMI, MIKAMI, MASHUHIRO, NAMIKI, TAKEFUMI, MIKAMI, MASHUHIRO, C/O FUJITSU LIMITED, NAMIKI, TAKEFUMI, C/O FUJITSU LIMITED
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1992
Main classification: G06F17
IPC codes: G06F17, G06F19