開発者のためのインターフェースが用意されています。 Kohn-Shamハミルトニアン、重なり行列、密度行列を利用したい場合には、これらのデータを次のステップで利用可能です。
入力ファイルにキーワード「HS.fileout」を含めます。
HS.fileout on # on|off, default=off
計算が正常終了すると、上記のデータがファイル名「*.scfout」に出力されます(「*」は入力ファイルで指定された系の名前「System.Name」)。
ディレクトリ「source」内で、次のコマンドを実行します。
% make analysis_example
コンパイルが正常終了すると、ディレクトリ「work」内に実行ファイル「analysis_example」が生成されます。
ディレクトリ「work」に移動して、次のようにしてプログラムを実行します。
% ./analysis_example *.scfout
もしくは
% ./analysis_example *.scfout > HS.out
ハミルトニアン、重なり行列、密度行列の要素が「HS.out」に書き出されます。
ファイル「analysis_example」には、これらのデータについての詳しい説明があります。その一部を以下に示します。
******************************************************************
You can utilize a filename.scfout which is generated by the SCF
calculation of OpenMX by the following procedure:
1. Define your main routine as follows:
int main(int argc, char *argv[])
2. Include a header file, "read_scfout.h", in your main routine
(if you want, also in other routines) as follows:
#include "read_scfout.h"
3. Call a function, read_scfout(), in the main routine as follows:
read_scfout(argv);
******************************************************************