HPhi++  3.1.0
SingleEx.cpp File Reference

Functions to compute singly excited state. More...

#include "bitcalc.hpp"
#include "SingleEx.hpp"
#include "SingleExHubbard.hpp"

Go to the source code of this file.

Functions

int GetSingleExcitedState (struct BindStruct *X, int nstate, std::complex< double > **tmp_v0, std::complex< double > **tmp_v1, int iEx)
 Calculation of single excited state Target System: Hubbard, Kondo. More...
 

Detailed Description

Functions to compute singly excited state.

Definition in file SingleEx.cpp.

Function Documentation

◆ GetSingleExcitedState()

int GetSingleExcitedState ( struct BindStruct X,
int  nstate,
std::complex< double > **  tmp_v0,
std::complex< double > **  tmp_v1,
int  iEx 
)

Calculation of single excited state Target System: Hubbard, Kondo.

Returns
TRUE: Normally finished
FALSE: Abnormally finished
Author
Kazuyoshi Yoshimi
Version
1.2
Parameters
Xdefine list to get and put information of calcuation
[out]tmp_v0Result v0 = H v1
[in]tmp_v1v0 = H v1

Definition at line 30 of file SingleEx.cpp.

References BindStruct::Def, GetSingleExcitedStateHubbard(), GetSingleExcitedStateHubbardGC(), DefineList::iCalcModel, and DefineList::NSingleExcitationOperator.

Referenced by GetExcitedState().

36  {
37  int iret = 0;
38  //tmp_v0
39  if (X->Def.NSingleExcitationOperator == 0) return TRUE;
40 
41  switch (X->Def.iCalcModel) {
42  case HubbardGC:
43  iret = GetSingleExcitedStateHubbardGC(X, nstate, tmp_v0, tmp_v1, iEx);
44  break;
45 
46  case KondoGC:
47  case Hubbard:
48  case Kondo:
49  iret = GetSingleExcitedStateHubbard(X, nstate, tmp_v0, tmp_v1, iEx);
50  break;
51 
52  case Spin:
53  case SpinGC:
54  iret = FALSE;
55  break;
56 
57  default:
58  iret = FALSE;
59  break;
60  }/*switch (X->Def.iCalcModel)*/
61  return iret;
62 }/*int GetSingleExcitedState*/
struct DefineList Def
Definision of system (Hamiltonian) etc.
Definition: struct.hpp:395
int * NSingleExcitationOperator
Number of single excitaion operator for spectrum.
Definition: struct.hpp:183
int GetSingleExcitedStateHubbardGC(struct BindStruct *X, int nstate, std::complex< double > **tmp_v0, std::complex< double > **tmp_v1, int iEx)
Calculation of Single excited state for Hubbard Grand canonical system.
int GetSingleExcitedStateHubbard(struct BindStruct *X, int nstate, std::complex< double > **tmp_v0, std::complex< double > **tmp_v1, int iEx)
Calculation of Single excited state for Hubbard canonical system.
int iCalcModel
Switch for model. 0:Hubbard, 1:Spin, 2:Kondo, 3:HubbardGC, 4:SpinGC, 5:KondoGC, 6:HubbardNConserved.
Definition: struct.hpp:200