18 #include "HPhiTrans.hpp" 20 #include "wrapperMPI.hpp" 47 char sdt_err[D_FileNameMax];
52 strcpy(sdt_err,
"WarningOnTransfer.dat");
63 for (k = 0; k < cnt_trans; k++) {
68 sprintf(sdt_err,
"WarningOnTransfer.dat");
70 fprintf(fp_err,
"double conuntings in transfers: i=%d j=%d spni %d spnj %d \n",
97 std::complex<double> dir;
107 const double dt = time - time_c;
108 const double dt2 = time - (time_c + time_d);
109 const double td = time_c / 3.0;
115 VecPot = Avp * cos(omega * dt) * exp(-dt * dt / (2.0 * time_d * time_d));
116 }
else if (Mode == 1) {
117 VecPot = Avp * sin(omega * dt);
118 }
else if (Mode == 2) {
120 }
else if (Mode == 3) {
121 VecPot = Avp * exp(-time_d * dt);
122 }
else if (Mode == 4) {
125 }
else if (dt < time_d) {
126 VecPot = Avp * cos(omega * dt) * (dt / time_d);
128 VecPot = Avp * cos(omega * dt);
130 }
else if (Mode == 5) {
133 }
else if (time < time_c) {
134 VecPot = Avp * cos(omega * dt) * exp(-dt * dt / (2.0 * td * td));
135 }
else if (time < time_c + time_d) {
136 VecPot = Avp * cos(omega * dt);
138 VecPot = Avp * cos(omega * dt) * exp(-dt2 * dt2 / (2.0 * td * td));
147 if (ri_x - rj_x > 1) {
149 }
else if (ri_x - rj_x < -1) {
152 if (ri_y - rj_y > 1) {
154 }
else if (ri_y - rj_y < -1) {
157 dir = dirX * (ri_x - rj_x) + dirY * (ri_y - rj_y);
185 const double dt = time - time_c;
193 }
else if (dt < time_d) {
194 Bessel = j0(Avp * dt / time_d);
205 if (ri_x - rj_x > 1) {
207 }
else if (ri_x - rj_x < -1) {
210 if (ri_y - rj_y > 1) {
212 }
else if (ri_y - rj_y < -1) {
struct DefineList Def
Definision of system (Hamiltonian) etc.
std::complex< double > * EDParaGeneralTransfer
Value of general transfer integrals by a def file. malloc in setmem_def(). Data Format [DefineList::N...
int HPhiTrans(struct BindStruct *X)
Function of checking transfers not to count the same type of operators. .
std::complex< double > I(0.0, 1.0)
int ** EDGeneralTransfer
Index of transfer integrals for calculation. malloc in setmem_def(). Data Format [DefineList::NTransf...
int EDNTransfer
Number of transfer integrals for calculation.
int TransferForQuench(struct BindStruct *X, const double time)
Function of getting transfer for quench.
int TransferWithPeierls(struct BindStruct *X, const double time)
Function of getting transfer with peierls.
std::complex< double > * ParaGeneralTransfer
Value of general transfer integrals by a def file. malloc in setmem_def(). Data Format [DefineList::N...
int childfopenMPI(const char *_cPathChild, const char *_cmode, FILE **_fp)
Only the root process open file in output/ directory.