Skip to content

Commit b497bbd

Browse files
committed
add description of ham.dat
1 parent fa3977b commit b497bbd

File tree

2 files changed

+166
-26
lines changed

2 files changed

+166
-26
lines changed

doc/en/chap04_en.tex

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,6 +3597,73 @@ \subsubsection{Parameters}
35973597

35983598
\end{itemize}
35993599

3600+
\newpage
3601+
\subsection{ham.dat}
3602+
\label{Subsec:ham}
3603+
(For the FullDiag method) When \verb$OutputHam=1$ in the \verb$CalcMod$ file, the Hamiltonian calculated by $\HPhi$ is outputted by the MatrixMarket format. The recalculation by using this file can be down when \verb$InputHam=1$ in the \verb$CalcMod$ file.
3604+
An example of the file format is as follows.\\
3605+
3606+
\begin{minipage}{12.5cm}
3607+
\begin{screen}
3608+
\begin{verbatim}
3609+
%%%%MatrixMarket matrix coordinate complex hermitian
3610+
28 28 56
3611+
1 1 1.000000 0.000000
3612+
2 1 0.500000 0.000000
3613+
3 2 0.500000 0.000000
3614+
4 3 0.500000 0.000000
3615+
5 4 0.500000 0.000000
3616+
6 5 0.500000 0.000000
3617+
7 6 0.500000 0.000000
3618+
7 7 1.000000 0.000000
3619+
3620+
\end{verbatim}
3621+
\end{screen}
3622+
\end{minipage}
3623+
3624+
\subsubsection{File name}
3625+
\begin{itemize}
3626+
\item \#\#\_ham.dat
3627+
\end{itemize}
3628+
\#\# indicates [string02] in a ModPara file.
3629+
3630+
\subsubsection{File format}
3631+
\begin{itemize}
3632+
\item Line 1: Header
3633+
\item Line 2: $[$int01$]$~~$[$int02$]$~~$[$int03$]$
3634+
\item Lines3-:$[$int04$]$~~$[$int05$]$~~$[$double01$]$~~$[$double02$]$
3635+
\end{itemize}
3636+
3637+
\subsubsection{Parameters}
3638+
\begin{itemize}
3639+
3640+
\item $[$int01$]$
3641+
3642+
{\bf Type :} Int
3643+
3644+
{\bf Description :} Number of rows of Hamiltonian.
3645+
3646+
\item $[$int02$]$
3647+
3648+
{\bf Type :} Int
3649+
3650+
{\bf Description :} Number of columns of Hamiltonian.
3651+
3652+
\item $[$int03$]$
3653+
3654+
{\bf Type :} Int
3655+
3656+
{\bf Description :} Number of nonzero elements of Hamiltonian.
3657+
3658+
\item $[$double01$]$, $[$double02$]$
3659+
3660+
{\bf Type :} Double
3661+
3662+
{\bf Description :} The value of Hamiltonian; $[$double01$]$ and $[$double02$]$ represent real and imaginary part of the Hamiltonian, respectively.
3663+
3664+
\end{itemize}
3665+
3666+
36003667
\newpage
36013668
\subsection{cisajs.dat}
36023669
\label{Subsec:cgcisajs}

doc/jp/chap04_jp.tex

Lines changed: 99 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,63 +3556,136 @@ \subsubsection{パラメータ}
35563556

35573557

35583558
\newpage
3559-
\subsection{cisajs.dat}
3560-
\label{Subsec:cgcisajs}
3561-
OneBodyGで指定された一体グリーン関数$\langle c_{i\sigma_1}^{\dagger}c_{j\sigma_2}\rangle$の計算結果を出力します。以下にファイル例を記載します。
3559+
\subsection{phys.dat}
3560+
\label{Subsec:phys}
3561+
(FullDiagでのみ出力)全対角法で計算したエネルギーと物理量を出力します。エネルギーの低い基底エネルギーから順に出力されます。以下にファイル例を記載します。\\
3562+
\begin{minipage}{12.5cm}
3563+
\begin{screen}
3564+
\begin{verbatim}
3565+
<H> <N> <Sz> <S2> <D>
3566+
-4.814170 0.000000 0.000000 -0.000000 0.590568
3567+
-3.796850 0.000000 0.000000 1.333333 0.423804
3568+
3569+
14.489622 0.000000 0.000000 0.000000 2.550240
3570+
14.852520 0.000000 0.000000 0.000000 2.329157
3571+
\end{verbatim}
3572+
\end{screen}
3573+
\end{minipage}
3574+
3575+
\subsubsection{ファイル名}
3576+
\begin{itemize}
3577+
\item {カノニカル:} \#\#\_phys\_Nup\_\$\$Ndown\%\%.dat
3578+
\item {グランドカノニカル:} \#\#\_phys.dat
3579+
\end{itemize}
3580+
\#\#はModParaファイル内の[string02]で指定されるヘッダ、\$\$はNup、\%\%はNdownを表します。
3581+
3582+
\subsubsection{ファイル形式}
3583+
1行目はヘッダで、2行目以降は以下のファイル形式で記載されます。
3584+
\begin{itemize}
3585+
\item $[$double01$]$ $[$double02$]$ $[$double03$]$ $[$double04$]$ $[$double05$]$
3586+
\end{itemize}
3587+
\subsubsection{パラメータ}
3588+
\begin{itemize}
3589+
3590+
\item $[$double01$]$
3591+
3592+
{\bf 形式 :} double型
3593+
3594+
{\bf 説明 :} エネルギーの期待値$\langle H\rangle$
3595+
3596+
\item $[$double02$]$
3597+
3598+
{\bf 形式 :} double型
3599+
3600+
{\bf 説明 :} 粒子数の期待値$\langle \hat{n}\rangle$
3601+
3602+
\item $[$double03$]$
3603+
3604+
{\bf 形式 :} double型
3605+
3606+
{\bf 説明 :} スピンのz成分の期待値$\langle S_z\rangle$
3607+
3608+
\item $[$double04$]$
3609+
3610+
{\bf 形式 :} double型
3611+
3612+
{\bf 説明 :} スピンの2乗の期待値$\langle {\bm S}^2\rangle$
3613+
3614+
\item $[$double05$]$
3615+
3616+
{\bf 形式 :} double型
3617+
3618+
{\bf 説明 :} ダブロン
3619+
$\frac{1}{N_s} \sum_{i}\langle n_{i\uparrow}n_{i\downarrow}\rangle$ (ただし$N_s$はサイト数)。
3620+
3621+
3622+
\end{itemize}
3623+
3624+
3625+
\newpage
3626+
\subsection{ham.dat}
3627+
\label{Subsec:ham}
3628+
(FullDiagでのみ出力) \verb$CalcMod$ファイルで\verb$OutputHam=1$の場合に、HΦ内部で計算されたハミルトニアンをMatrixMarket形式で出力します。\verb$CalcMod$ファイルで\verb$InputHam=1$とすると、定義ファイル一式と本ファイルを読み込み、再計算することができます。以下にファイル例を記載します。
35623629

35633630
\begin{minipage}{12.5cm}
35643631
\begin{screen}
35653632
\begin{verbatim}
3566-
0 0 0 0 0.4452776740 0.0000000000
3567-
0 1 0 1 0.4452776740 0.0000000000
3568-
1 0 1 0 0.5000000000 0.0000000000
3569-
1 1 1 1 0.5000000000 0.0000000000
3570-
2 0 2 0 0.4452776740 0.0000000000
3571-
2 1 2 1 0.4452776740 0.0000000000
3572-
3 0 3 0 0.5000000000 0.0000000000
3573-
3 1 3 1 0.5000000000 0.0000000000
3633+
%%%%MatrixMarket matrix coordinate complex hermitian
3634+
28 28 56
3635+
1 1 1.000000 0.000000
3636+
2 1 0.500000 0.000000
3637+
3 2 0.500000 0.000000
3638+
4 3 0.500000 0.000000
3639+
5 4 0.500000 0.000000
3640+
6 5 0.500000 0.000000
3641+
7 6 0.500000 0.000000
3642+
7 7 1.000000 0.000000
35743643
35753644
\end{verbatim}
35763645
\end{screen}
35773646
\end{minipage}
35783647

35793648
\subsubsection{ファイル名}
35803649
\begin{itemize}
3581-
\item{Lanczos法:} \#\#\_cisajs.dat
3582-
\item{TPQ法:} \#\#\_cisajs\_set??step\%\%.dat
3583-
\item{全対角化法、LOBCG法:} \#\#\_cisajs\_eigen{\&\&}.dat
3584-
\end{itemize}
3585-
\#\#はModParaファイル内の[string02]で指定されるヘッダ、??はTPQ法計算時のrunの番号、\%\%はTPQ法でのステップ数、\&\&は固有値の番号を表します。
3650+
\item \#\#\_ham.dat
3651+
\end{itemize}
3652+
\#\#はModParaファイル内の[string02]で指定されるヘッダを表します。
35863653

35873654

35883655
\subsubsection{ファイル形式}
35893656
\begin{itemize}
3590-
\item $[$int01$]$~~$[$int02$]$~~$[$int03$]$~~$[$int04$]$~~$[$double01$]$~~$[$double02$]$
3657+
\item 1行:ヘッダ
3658+
\item 2行:$[$int01$]$~~$[$int02$]$~~$[$int03$]$
3659+
\item 3行-:$[$int04$]$~~$[$int05$]$~~$[$double01$]$~~$[$double02$]$
35913660
\end{itemize}
35923661
\subsubsection{パラメータ}
35933662
\begin{itemize}
35943663

3595-
\item $[$int01$]$, $[$int03$]$
3664+
\item $[$int01$]$
35963665

35973666
{\bf 形式 :} int型
35983667

3599-
{\bf 説明 :} サイト番号を指定する整数。$[$int01$]$$i$サイト、$[$int03$]$$j$サイトを表します
3668+
{\bf 説明 :} Hamiltonianの行数
36003669

3601-
\item $[$int02$]$, $[$int04$]$
3670+
\item $[$int02$]$
36023671

36033672
{\bf 形式 :} int型
36043673

3605-
{\bf 説明 :} スピンを指定する整数。$[$int02$]$$\sigma_1$$[$int03$]$$\sigma_2$に対応します。\\
3606-
0: アップスピン\\
3607-
1: ダウンスピン\\
3608-
を表します。
3674+
{\bf 説明 :} Hamiltonianの列数。
3675+
3676+
\item $[$int03$]$
3677+
3678+
{\bf 形式 :} int型
3679+
3680+
{\bf 説明 :} Hamiltonianの非零の要素数。
36093681

36103682
\item $[$double01$]$, $[$double02$]$
36113683

36123684
{\bf 形式 :} double型
36133685

3614-
{\bf 説明 :} $\langle c_{i\sigma_1}^{\dagger}c_{j\sigma_2}\rangle$の値を表します。\\
3615-
$[$double01$]$が実部、$[$double02$]$が虚部を表します。\\
3686+
{\bf 説明 :} Hamiltonianの値を表します。\\
3687+
$[$double01$]$が実部、$[$double02$]$が虚部を表します。
3688+
36163689
\end{itemize}
36173690

36183691
\newpage

0 commit comments

Comments
 (0)