| 1 | #ifndef PERTURBED_H_ | 
|---|
| 2 | #define PERTURBED_H_ | 
|---|
| 3 |  | 
|---|
| 4 | /** \file perturbed.h | 
|---|
| 5 | * Header file for \ref perturbed.c | 
|---|
| 6 | * | 
|---|
| 7 | * Contains declarations of the functions implemented in \ref perturbed.c | 
|---|
| 8 | * | 
|---|
| 9 | Project: ParallelCarParrinello | 
|---|
| 10 | \author Frederik Heber | 
|---|
| 11 | \date 2006 | 
|---|
| 12 |  | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 |  | 
|---|
| 16 | void MinimisePerturbed (struct Problem *P, int *Stop, int *SuperStop); | 
|---|
| 17 | void InitPerturbedEnergyCalculation(struct Problem *P, const int first); | 
|---|
| 18 | void UpdatePerturbedEnergyCalculation(struct Problem *P); | 
|---|
| 19 | void CalculatePerturbedEnergy(struct Problem *P, const int l, const int DoGradient, const int first); | 
|---|
| 20 | void CalculatePerturbationOperator_PxR(struct Problem *P, const fftw_complex *source, fftw_complex *dest, const int l, const int index_pxr); | 
|---|
| 21 | void CalculatePerturbationOperator_RxP(struct Problem *P, const fftw_complex *source, fftw_complex *dest, const int l, const int index_rxp); | 
|---|
| 22 | void CalculatePerturbationOperator_R(struct Problem *P, const fftw_complex *source, fftw_complex *dest, const fftw_complex *source2, const int index_r, const int wavenr); | 
|---|
| 23 | void CalculatePerturbationOperator_P(struct Problem *P, const fftw_complex *source, fftw_complex *dest, const int index_g); | 
|---|
| 24 | void FillCurrentDensity(struct Problem *P); | 
|---|
| 25 | void FillDeltaCurrentDensity(struct Problem *P); | 
|---|
| 26 | double Calculate1stPerturbedDerivative(struct Problem *P, const fftw_complex *source0, const fftw_complex *source, const fftw_complex *ConDir, const fftw_complex *Hc_grad, const fftw_complex *H1c_grad); | 
|---|
| 27 | double Calculate2ndPerturbedDerivative(struct Problem *P, const fftw_complex *source0, const fftw_complex *source, const fftw_complex *ConDir, const double sourceHsource, const double ConDirHConDir, const double ConDirConDir); | 
|---|
| 28 | void FindPerturbedMinimum(struct Problem *P); | 
|---|
| 29 | void CalculateOverlap(struct Problem *P, const int l, const enum PsiTypeTag state); | 
|---|
| 30 | int CheckOrbitalOverlap(struct Problem *P); | 
|---|
| 31 | void ApplyTotalHamiltonian(struct Problem *P, const fftw_complex *source, fftw_complex *dest, fftw_complex ***fnl, const double PsiFactor, const int first); | 
|---|
| 32 | void CalculateMagneticSusceptibility (struct Problem *P); | 
|---|
| 33 | void CalculateMagneticMoment(struct Problem *P); | 
|---|
| 34 | void CalculateChemicalShieldingByReciprocalCurrentDensity(struct Problem *P); | 
|---|
| 35 | void CalculateChemicalShieldingbyDESolver(struct Problem *P); | 
|---|
| 36 | void OutputOrbitalPositions(struct Problem *P, const enum PsiTypeTag type); | 
|---|
| 37 | void fft_Psi(struct Problem *P, const fftw_complex *Psi, fftw_real *PsiR, const int index, const int symmetry); | 
|---|
| 38 | inline int cross(const int i, const int j); | 
|---|
| 39 | inline int crossed(int i, int j); | 
|---|
| 40 | void AllocCurrentDensity(struct Density *Dens0); | 
|---|
| 41 | void DisAllocCurrentDensity(struct Density *Dens0); | 
|---|
| 42 | void PlotVectorPlane(struct Problem *P, int B_Index, int n_orth); | 
|---|
| 43 | void ReadSrcPerturbedPsis(struct Problem *P, enum PsiTypeTag type); | 
|---|
| 44 | inline double ShiftGaugeOrigin(struct Problem *P, double r[NDIM], const int index); | 
|---|
| 45 | inline double sawtooth(struct Lattice *Lat, double L[NDIM], const int index); | 
|---|
| 46 | inline void MinImageConv(struct Lattice *Lat, const double R[NDIM], const double r[NDIM], double *result); | 
|---|
| 47 | void test_fft_symmetry(struct Problem *P, const int l); | 
|---|
| 48 | void test_rxp(struct Problem *P); | 
|---|
| 49 | void TestSawtooth(struct Problem *P, const int index); | 
|---|
| 50 | void TestCurrent(struct Problem *P, const int index); | 
|---|
| 51 | void TestReciprocalCurrent(struct Problem *P, const fftw_complex *currentC, struct OneGData *GArray, int in); | 
|---|
| 52 |  | 
|---|
| 53 | #endif /*PERTURBED_H_*/ | 
|---|