HΦ  3.2.0
SingleEx.c File Reference

Functions to compute singly excited state. More...

#include "bitcalc.h"
#include "SingleEx.h"
#include "SingleExHubbard.h"
+ Include dependency graph for SingleEx.c:

Go to the source code of this file.

Functions

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

Detailed Description

Functions to compute singly excited state.

Definition in file SingleEx.c.

Function Documentation

◆ GetSingleExcitedState()

int GetSingleExcitedState ( struct BindStruct X,
double complex *  tmp_v0,
double complex *  tmp_v1 
)

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.c.

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

Referenced by GetExcitedState().

34  {
35  int iret = 0;
36  //tmp_v0
37  if (X->Def.NSingleExcitationOperator == 0) return TRUE;
38 
39  switch (X->Def.iCalcModel) {
40  case HubbardGC:
41  iret = GetSingleExcitedStateHubbardGC(X, tmp_v0, tmp_v1);
42  break;
43 
44  case KondoGC:
45  case Hubbard:
46  case Kondo:
47  iret = GetSingleExcitedStateHubbard(X, tmp_v0, tmp_v1);
48  break;
49 
50  case Spin:
51  case SpinGC:
52  iret = FALSE;
53  break;
54 
55  default:
56  iret = FALSE;
57  break;
58  }/*switch (X->Def.iCalcModel)*/
59  return iret;
60 }/*int GetSingleExcitedState*/
unsigned int NSingleExcitationOperator
Number of single excitaion operator for spectrum.
Definition: struct.h:182
struct DefineList Def
Definision of system (Hamiltonian) etc.
Definition: struct.h:410
#define TRUE
Definition: global.h:26
int GetSingleExcitedStateHubbardGC(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of Single excited state for Hubbard Grand canonical system.
#define FALSE
Definition: global.h:25
int GetSingleExcitedStateHubbard(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
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.h:198
+ Here is the call graph for this function:
+ Here is the caller graph for this function: