|
HΦ
3.1.0
|
Calculate spectrum function for the TPQ state.
Note: This method is trial and cannot be used in the release mode.
More...
#include "CalcSpectrumByTPQ.h"#include "Lanczos_EigenValue.h"#include "FileIO.h"#include "wrapperMPI.h"#include "vec12.h"#include "mfmemory.h"Go to the source code of this file.
Functions | |
| int | ReadTPQData (struct EDMainCalStruct *X, double *ene, double *temp, double *specificHeat) |
| Read TPQ data at "X->Bind.Large.itr" step in SS_rand file. More... | |
| int | GetCalcSpectrumTPQ (double complex dcomega, double dtemp, double dspecificheat, double ene, double *tmp_E, int Nsite, int idim_max, double complex *dc_tmpSpec) |
| Calculate spectrum function from the TPQ state. More... | |
| int | CalcSpectrumByTPQ (struct EDMainCalStruct *X, double complex *tmp_v1, double dnorm, int Nomega, double complex *dcSpectrum, double complex *dcomega) |
| A main function to calculate spectrum by TPQ (Note: This method is trial) More... | |
Calculate spectrum function for the TPQ state.
Note: This method is trial and cannot be used in the release mode.
Definition in file CalcSpectrumByTPQ.c.
| int CalcSpectrumByTPQ | ( | struct EDMainCalStruct * | X, |
| double complex * | tmp_v1, | ||
| double | dnorm, | ||
| int | Nomega, | ||
| double complex * | dcSpectrum, | ||
| double complex * | dcomega | ||
| ) |
A main function to calculate spectrum by TPQ (Note: This method is trial)
| X | [in,out] CalcStruct list for getting and pushing calculation information |
| tmp_v1 | [in] Normalized excited state. |
| dnorm | [in] Norm of the excited state before normalization. |
| Nomega | [in] Total number of frequencies. |
| dcSpectrum | [out] Calculated spectrum. |
| dcomega | [in] Target frequencies. |
| 0 | normally finished |
| -1 | unnormally finished |
Definition at line 131 of file CalcSpectrumByTPQ.c.
References alpha, beta, EDMainCalStruct::Bind, c_CalcSpectrumFromTridiagonalEnd, c_CalcSpectrumFromTridiagonalStart, c_GetTridiagonalEnd, c_GetTridiagonalStart, c_InputSpectrumRecalcvecEnd, c_InputSpectrumRecalcvecStart, c_OutputSpectrumRecalcvecEnd, c_OutputSpectrumRecalcvecStart, DefineList::CDataFileHead, cFileNameOutputRestartVec, cFileNameTimeKeep, BindStruct::Check, childfopenALL(), D_FileNameMax, BindStruct::Def, exitMPI(), FALSE, GetCalcSpectrumTPQ(), CheckList::idim_max, DefineList::iFlgCalcSpec, Lanczos_GetTridiagonalMatrixComponents(), DefineList::Lanczos_max, DefineList::Lanczos_restart, myrank, DefineList::Nsite, DefineList::nvec, OutputTMComponents(), ReadTMComponents(), ReadTPQData(), stdoutMPI, TimeKeeper(), TRUE, v0, v1, vec12(), and X.
Referenced by CalcSpectrum().
| int GetCalcSpectrumTPQ | ( | double complex | dcomega, |
| double | dtemp, | ||
| double | dspecificheat, | ||
| double | ene, | ||
| double * | tmp_E, | ||
| int | Nsite, | ||
| int | idim_max, | ||
| double complex * | dc_tmpSpec | ||
| ) |
Calculate spectrum function from the TPQ state.
| dcomega | [in] Target frequencies. |
| dtemp | [in] Temperature corresponding to the target TPQ state. |
| dspecificheat | [in] Specific heat. |
| ene | [in] Energy for the target TPQ state. |
| tmp_E | [in] Energies included in the excited TPQ state obtained by the continued fraction expansions. |
| Nsite | [in] Total number of sites. |
| idim_max | [in] Dimension of the Hilbert space. |
| dc_tmpSpec | [out] Calculated spectrum. |
| FALSE | fail to calculate spectrum. |
| TRUE | sucsceed to calculate spectrum. |
Definition at line 93 of file CalcSpectrumByTPQ.c.
References FALSE, TRUE, and vec.
Referenced by CalcSpectrumByTPQ().
| int ReadTPQData | ( | struct EDMainCalStruct * | X, |
| double * | ene, | ||
| double * | temp, | ||
| double * | specificHeat | ||
| ) |
Read TPQ data at "X->Bind.Large.itr" step in SS_rand file.
| [in] | X | CalcStruct list for getting and pushing calculation information |
| [out] | ene | energy |
| [out] | temp | temperature |
| [out] | specificHeat | specific heat |
| TRUE | succeed to read data |
| FALSE | fail to read data |
Definition at line 41 of file CalcSpectrumByTPQ.c.
Referenced by CalcSpectrumByTPQ().