ergo
fun-pz81.c File Reference

Partially automatically generated PZ81 functional. More...

#include <math.h>
#include <stddef.h>
#include "functionals.h"

Macros

#define _XOPEN_SOURCE   600
 
#define _XOPEN_SOURCE_EXTENDED   1
 
#define __CVERSION__
 

Functions

static int pz81_read (const char *conf_line)
 
static real pz81_energy (const FunDensProp *dp)
 
static void pz81_first (FunFirstFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81_second (FunSecondFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81_third (FunThirdFuncDrv *ds, real factor, const FunDensProp *dp)
 
static real pz81a_energy (const FunDensProp *dp)
 
static void pz81a_first (FunFirstFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81a_second (FunSecondFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81a_third (FunThirdFuncDrv *ds, real factor, const FunDensProp *dp)
 
static real pz81b_energy (const FunDensProp *dp)
 
static void pz81b_first (FunFirstFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81b_second (FunSecondFuncDrv *ds, real factor, const FunDensProp *dp)
 
static void pz81b_third (FunThirdFuncDrv *ds, real factor, const FunDensProp *dp)
 

Variables

Functional PZ81Functional
 
static const real Au = 0.0311
 
static const real Bu = -0.048
 
static const real Ap = 0.01555
 
static const real Bp = -0.0269
 
static const real gu = -0.1423
 
static const real b1u = 1.0529
 
static const real b2u = 0.3334
 
static const real Cu = 0.0020
 
static const real Du = -0.0116
 
static const real gp = -0.0843
 
static const real b1p = 1.3981
 
static const real b2p = 0.2611
 
static const real Cp = 0.0007
 
static const real Dp = -0.0048
 

Detailed Description

Partially automatically generated PZ81 functional.

Reference: J.P. Perdew and A. Zunger, Phys. Rev. B, 23, 5048 (1981). Implemented and tested by: Pawel Salek.

Macro Definition Documentation

#define __CVERSION__
#define _XOPEN_SOURCE   600
#define _XOPEN_SOURCE_EXTENDED   1

Function Documentation

static real pz81_energy ( const FunDensProp dp)
static
static void pz81_first ( FunFirstFuncDrv ds,
real  factor,
const FunDensProp dp 
)
static
static int pz81_read ( const char *  conf_line)
static

References fun_set_hf_weight.

static void pz81_second ( FunSecondFuncDrv ds,
real  factor,
const FunDensProp dp 
)
static
static void pz81_third ( FunThirdFuncDrv ds,
real  factor,
const FunDensProp dp 
)
static
static real pz81a_energy ( const FunDensProp dp)
static

References b1p, b1u, b2p, b2u, gp, gu, POW, FunDensProp_::rhoa, and FunDensProp_::rhob.

Referenced by pz81_energy().

static void pz81a_first ( FunFirstFuncDrv ds,
real  factor,
const FunDensProp dp 
)
static
static real pz81b_energy ( const FunDensProp dp)
static

References Ap, Au, Bp, Bu, Cp, Cu, Dp, Du, LOG, POW, FunDensProp_::rhoa, and FunDensProp_::rhob.

Referenced by pz81_energy().

static void pz81b_first ( FunFirstFuncDrv ds,
real  factor,
const FunDensProp dp 
)
static

Variable Documentation

const real Ap = 0.01555
static
const real Au = 0.0311
static
const real b1p = 1.3981
static
const real b1u = 1.0529
static
const real b2p = 0.2611
static
const real b2u = 0.3334
static
const real Bp = -0.0269
static
const real Bu = -0.048
static
const real Cp = 0.0007
static
const real Cu = 0.0020
static
const real Dp = -0.0048
static
const real Du = -0.0116
static
const real gp = -0.0843
static
Functional PZ81Functional
Initial value:
= {
"PZ81",
NULL,
}
static void pz81_first(FunFirstFuncDrv *ds, real factor, const FunDensProp *dp)
Definition: fun-pz81.c:617
static real pz81_energy(const FunDensProp *dp)
Definition: fun-pz81.c:607
static int pz81_read(const char *conf_line)
Definition: fun-pz81.c:78
static void pz81_third(FunThirdFuncDrv *ds, real factor, const FunDensProp *dp)
Definition: fun-pz81.c:637
int fun_false(void)
Definition: functionals.c:154
static void pz81_second(FunSecondFuncDrv *ds, real factor, const FunDensProp *dp)
Definition: fun-pz81.c:627

Referenced by bp86_read().