SlideShare a Scribd company logo
Libxc
a library of exchange and correlation functionals
Miguel A. L. Marques
1LPMCN, Universit´e Claude Bernard Lyon 1 and CNRS, France
2European Theoretical Spectroscopy Facility
March 2009 – ABINIT Workshop
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Why the need for libxc?
The xc functional is at the heart of DFT
There are many approximations for the xc (probably of the
order of 150–200)
Most computer codes only include a very limited quantity
of functionals, typically around 10–15
Chemist and Physicists do not use the same functionals!
Difficult to reproduce older calculations with older
functionals
Difficult to reproduce calculations performed with other
codes
Difficult to perform calculations with the newest functionals
M. A. L. Marques Libxc
Kohn-Sham equations
The main equations of DFT are the Kohn-Sham equations:
−
1
2
2
+ vext(r) + vH(r) + vxc(r) ϕi(r) = iϕi(r)
where the exchange-correlation potential is defined as
vxc(r) =
δExc
δn(r)
In any practical application of the theory, we have to use an
approximation to Exc, or vxc(r).
M. A. L. Marques Libxc
Kohn-Sham equations
The main equations of DFT are the Kohn-Sham equations:
−
1
2
2
+ vext(r) + vH(r) + vxc(r) ϕi(r) = iϕi(r)
where the exchange-correlation potential is defined as
vxc(r) =
δExc
δn(r)
In any practical application of the theory, we have to use an
approximation to Exc, or vxc(r).
M. A. L. Marques Libxc
Jacob’s ladder
Local density approximation:
ELDA
xc (r) = ELDA
xc [n] n=n(r)
Generalized gradient approximation:
EGGA
xc (r) = EGGA
xc [n, n] n=n(r)
Meta-generalized gradient approximation:
EmGGA
xc (r) = EmGGA
xc [n, n, τ] n=n(r),τ=τ(r)
And more: orbital functionals, hybrid functionals, hyper-GGAs,
etc.
M. A. L. Marques Libxc
Jacob’s ladder
Local density approximation:
ELDA
xc (r) = ELDA
xc [n] n=n(r)
Generalized gradient approximation:
EGGA
xc (r) = EGGA
xc [n, n] n=n(r)
Meta-generalized gradient approximation:
EmGGA
xc (r) = EmGGA
xc [n, n, τ] n=n(r),τ=τ(r)
And more: orbital functionals, hybrid functionals, hyper-GGAs,
etc.
M. A. L. Marques Libxc
Jacob’s ladder
Local density approximation:
ELDA
xc (r) = ELDA
xc [n] n=n(r)
Generalized gradient approximation:
EGGA
xc (r) = EGGA
xc [n, n] n=n(r)
Meta-generalized gradient approximation:
EmGGA
xc (r) = EmGGA
xc [n, n, τ] n=n(r),τ=τ(r)
And more: orbital functionals, hybrid functionals, hyper-GGAs,
etc.
M. A. L. Marques Libxc
Jacob’s ladder
Local density approximation:
ELDA
xc (r) = ELDA
xc [n] n=n(r)
Generalized gradient approximation:
EGGA
xc (r) = EGGA
xc [n, n] n=n(r)
Meta-generalized gradient approximation:
EmGGA
xc (r) = EmGGA
xc [n, n, τ] n=n(r),τ=τ(r)
And more: orbital functionals, hybrid functionals, hyper-GGAs,
etc.
M. A. L. Marques Libxc
What do we need? - I
The energy is usually written as:
Exc = d3
r exc(r) = d3
r n(r) xc(r)
The potential in the LDA is:
vLDA
xc (r) =
d
dn
eLDA
xc (n)
n=n(r)
In the GGA:
vGGA
xc (r) =
∂
∂n
eLDA
xc (n, n)
n=n(r)
−
∂
∂( n)
eLDA
xc (n, n)
n=n(r)
M. A. L. Marques Libxc
What do we need? - II
For response properties we also need higher derivatives of exc
1st-order response (polarizabilities, phonon frequencies,
etc.):
fLDA
xc (r) =
d2
d2n
eLDA
xc (n)
n=n(r)
2st-order response (hyperpolarizabilities, etc.):
kLDA
xc (r) =
d3
d3n
eLDA
xc (n)
n=n(r)
And let’s not forget spin...
M. A. L. Marques Libxc
What do we need? - II
For response properties we also need higher derivatives of exc
1st-order response (polarizabilities, phonon frequencies,
etc.):
fLDA
xc (r) =
d2
d2n
eLDA
xc (n)
n=n(r)
2st-order response (hyperpolarizabilities, etc.):
kLDA
xc (r) =
d3
d3n
eLDA
xc (n)
n=n(r)
And let’s not forget spin...
M. A. L. Marques Libxc
An example: Perdew & Wang 91 (an LDA)
Perdew and Wang parametrized the correlation energy per unit
particle:
ec(rs, ζ) = ec(rs, 0) + αc(rs)
f(ζ)
f (0)
(1 − ζ4
) + [ec(rs, 1) − ec(rs, 0)]f(ζ)ζ4
The function f(ζ) is
f(ζ) =
[1 + ζ]4/3
+ [1 − ζ]4/3
− 2
24/3 − 2
,
while its second derivative f (0) = 1.709921. The functions ec(rs, 0),
ec(rs, 1), and −αc(rs) are all parametrized by the function
g = −2A(1 + α1rs) log 1 +
1
2A(β1r
1/2
s + β2rs + β3r
3/2
s + β4r2
s )
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
Libxc
Written in C from scratch
Bindings both in C and in Fortran
Lesser GNU general public license (v. 3.0)
Automatic testing of the functionals
Contains at the moment 19 LDA functionals, 55 GGA
functionals, 24 hybrids, and 7 mGGAs
Contains functionals for 1D, 2D, and 3D calculations
Returns εxc, vxc, fxc, and kxc
Quite mature: included in octopus, APE, GPAW, ABINIT,
and in the GW code of Murilo Tiago
M. A. L. Marques Libxc
What is working!
εxc vxc fxc kxc
LDA OK OK OK OK
GGA OK OK PARTIAL NO
HYB GGA OK OK PARTIAL NO
mGGA TEST TEST NO NO
M. A. L. Marques Libxc
An example in C
switch ( x c f a m i l y f r o m i d ( xc . f u n c t i o n a l ) )
{
case XC FAMILY LDA :
i f ( xc . f u n c t i o n a l == XC LDA X)
x c l d a x i n i t (& lda func , xc . nspin , 3 , 0 ) ;
else
x c l d a i n i t (& lda func , xc . functional , xc . nspin ) ;
xc lda vxc (& lda func , xc . rho , &xc . zk , xc . vrho ) ;
xc lda end (& lda func ) ;
break ;
case XC FAMILY GGA :
x c g g a i n i t (& gga func , xc . functional , xc . nspin ) ;
xc gga vxc (& gga func , xc . rho , xc . sigma , &xc . zk , xc . vrho , xc . vsigma
xc gga end (& gga func ) ;
break ;
default :
f p r i n t f ( stderr , "Functional ’%d’ not foundn" , xc . f u n c t i o n a l ) ;
e x i t ( 1 ) ;
}
M. A. L. Marques Libxc
Another example in Fortran
program l x c t e s t
use l i b x c
i m p l i c i t none
real (8) : : rho , e c , v c
TYPE( xc func ) : : xc c func
TYPE( x c i n f o ) : : x c c i n f o
CALL x c f 9 0 l d a i n i t ( xc c func , xc c info , &
XC LDA C VWN, XC UNPOLARIZED)
CALL xc f90 lda vxc ( xc c func , rho , e c , v c )
CALL xc f90 lda end ( xc c func )
end program l x c t e s t
M. A. L. Marques Libxc
The info structure
typedef s t r u c t {
i n t number ; /∗ i n d e n t i f i e r number ∗/
i n t kind ; /∗ XC EXCHANGE or XC CORRELATION ∗/
char ∗name; /∗ name of the functional , e . g . ”PBE” ∗/
i n t family ; /∗ type of the functional , e . g . XC FAMILY GGA ∗/
char ∗ refs ; /∗ references ∗/
i n t provides ; /∗ e . g . XC PROVIDES EXC | XC PROVIDES VXC ∗/
. . .
} x c f u n c i n f o t y p e ;
This is an example on how you can use it:
xc gga type b88 ;
x c g g a i n i t (&b88 , XC GGA X B88 , XC UNPOLARIZED ) ;
p r i n t f ("The functional ’%s’ is defined in the reference(s):n%s" ,
b88 . info−>name, b88 . info−>refs ) ;
xc gga end (&b88 ) ;
M. A. L. Marques Libxc
The future
More functionals!
More derivatives!
More codes using it!
M. A. L. Marques Libxc
The future
More functionals!
More derivatives!
More codes using it!
M. A. L. Marques Libxc
The future
More functionals!
More derivatives!
More codes using it!
M. A. L. Marques Libxc
Where to find us!
http://www.tddft.org/programs/octopus/wiki/
index.php/Libxc
Comput. Phys. Commun. 151, 60–78 (2003)
Phys. Stat. Sol. B 243, 2465–2488 (2006)
M. A. L. Marques Libxc

More Related Content

What's hot (20)

PDF
vasp-gpu on Balena: Usage and Some Benchmarks
Jonathan Skelton
 
PDF
Phonons & Phonopy: Pro Tips (2014)
Jonathan Skelton
 
PDF
Mathematics Colloquium, UCSC
dongwook159
 
PDF
AMS 250 - High-Performance, Massively Parallel Computing with FLASH
dongwook159
 
PDF
A Power Efficient Architecture for 2-D Discrete Wavelet Transform
Rahul Jain
 
PDF
Phonons & Phonopy: Pro Tips (2015)
Jonathan Skelton
 
PDF
First Place Memocode'14 Design Contest Entry
Kevin Townsend
 
PDF
S4495-plasma-turbulence-sims-gyrokinetic-tokamak-solver
Praveen Narayanan
 
PDF
Advances in the Solution of Navier-Stokes Eqs. in GPGPU Hardware. Modelling F...
Storti Mario
 
PDF
1147 smith[1]
Clifford Stone
 
PDF
射頻電子實驗手冊 [實驗6] 阻抗匹配模擬
Simen Li
 
PDF
Introduction to DFT Part 2
Mariana M. Odashima
 
PDF
Multiband Transceivers - [Chapter 1]
Simen Li
 
PDF
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Matt Moores
 
PDF
RF Module Design - [Chapter 1] From Basics to RF Transceivers
Simen Li
 
PDF
discrete-hmm
Md Pavel Mahmud
 
PDF
Customization of LES turbulence model in OpenFOAM
mmer547
 
PDF
Agilent ADS 模擬手冊 [實習1] 基本操作與射頻放大器設計
Simen Li
 
PDF
Agilent ADS 模擬手冊 [實習2] 放大器設計
Simen Li
 
PDF
Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
Pooyan Jamshidi
 
vasp-gpu on Balena: Usage and Some Benchmarks
Jonathan Skelton
 
Phonons & Phonopy: Pro Tips (2014)
Jonathan Skelton
 
Mathematics Colloquium, UCSC
dongwook159
 
AMS 250 - High-Performance, Massively Parallel Computing with FLASH
dongwook159
 
A Power Efficient Architecture for 2-D Discrete Wavelet Transform
Rahul Jain
 
Phonons & Phonopy: Pro Tips (2015)
Jonathan Skelton
 
First Place Memocode'14 Design Contest Entry
Kevin Townsend
 
S4495-plasma-turbulence-sims-gyrokinetic-tokamak-solver
Praveen Narayanan
 
Advances in the Solution of Navier-Stokes Eqs. in GPGPU Hardware. Modelling F...
Storti Mario
 
1147 smith[1]
Clifford Stone
 
射頻電子實驗手冊 [實驗6] 阻抗匹配模擬
Simen Li
 
Introduction to DFT Part 2
Mariana M. Odashima
 
Multiband Transceivers - [Chapter 1]
Simen Li
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Matt Moores
 
RF Module Design - [Chapter 1] From Basics to RF Transceivers
Simen Li
 
discrete-hmm
Md Pavel Mahmud
 
Customization of LES turbulence model in OpenFOAM
mmer547
 
Agilent ADS 模擬手冊 [實習1] 基本操作與射頻放大器設計
Simen Li
 
Agilent ADS 模擬手冊 [實習2] 放大器設計
Simen Li
 
Learning LWF Chain Graphs: A Markov Blanket Discovery Approach
Pooyan Jamshidi
 

Viewers also liked (8)

PDF
Introduction to Electron Correlation
Albert DeFusco
 
PDF
Mottphysics 2talk
ABDERRAHMANE REGGAD
 
PDF
Mottphysics 1talk
ABDERRAHMANE REGGAD
 
PDF
Quick and Dirty Introduction to Mott Insulators
ABDERRAHMANE REGGAD
 
PPTX
Presentation bi2 s3+son
ABDERRAHMANE REGGAD
 
PDF
Anderson localization, wave diffusion and the effect of nonlinearity in disor...
ABDERRAHMANE REGGAD
 
PPT
INTERMETALLICS
N.Prakasan
 
PDF
Mott insulators
ABDERRAHMANE REGGAD
 
Introduction to Electron Correlation
Albert DeFusco
 
Mottphysics 2talk
ABDERRAHMANE REGGAD
 
Mottphysics 1talk
ABDERRAHMANE REGGAD
 
Quick and Dirty Introduction to Mott Insulators
ABDERRAHMANE REGGAD
 
Presentation bi2 s3+son
ABDERRAHMANE REGGAD
 
Anderson localization, wave diffusion and the effect of nonlinearity in disor...
ABDERRAHMANE REGGAD
 
INTERMETALLICS
N.Prakasan
 
Mott insulators
ABDERRAHMANE REGGAD
 
Ad

Similar to Libxc a library of exchange and correlation functionals (20)

PPTX
Dft presentation
Saibalendu Sarkar
 
PDF
SCF methods, basis sets, and integrals part III
AkefAfaneh2
 
PPT
computationalchemistry_12-6.ppt
sami97008
 
PPT
Trent_to lto other gausisi ndnsdn talk.ppt
normanthomas11
 
PPTX
Gdc2012 frames, sparsity and global illumination
Manchor Ko
 
PPTX
Digital signal processing parti cularly filter design ppt
SUMITDATTA23
 
PPT
Computational Chemistry: A DFT crash course
ssuserc04644
 
PDF
Benchmark Calculations of Atomic Data for Modelling Applications
AstroAtom
 
PDF
QE-SSP - Lecture 1: Introduction to DFT with QE
Nguyen Tuan Hung
 
PDF
Basics of Quantum and Computational Chemistry
Girinath Pillai
 
PPTX
Quantum Chemistry II
baoilleach
 
PDF
Drugs and Electrons
David Thompson
 
PDF
Applications of Computational Quantum Chemistry
University of Kerbala, Faculty of Science, Department of Chemistry
 
PDF
Smart Metrics for High Performance Material Design
aimsnist
 
PDF
Smart Metrics for High Performance Material Design
KAMAL CHOUDHARY
 
PDF
Differential Characters 1st Edition Christian Br Christian Becker Auth
hiekenursun
 
PPTX
Advantages and applications of computational chemistry
manikanthaTumarada
 
PDF
The Spectra And Dynamics Of Diatomic Molecules 2nd Edition Helene Lefebvrebrion
fldtldrlnc8496
 
PDF
Engineering Physics_M. R. Srinivasan
LAKSHMITHARUN PONNAM
 
Dft presentation
Saibalendu Sarkar
 
SCF methods, basis sets, and integrals part III
AkefAfaneh2
 
computationalchemistry_12-6.ppt
sami97008
 
Trent_to lto other gausisi ndnsdn talk.ppt
normanthomas11
 
Gdc2012 frames, sparsity and global illumination
Manchor Ko
 
Digital signal processing parti cularly filter design ppt
SUMITDATTA23
 
Computational Chemistry: A DFT crash course
ssuserc04644
 
Benchmark Calculations of Atomic Data for Modelling Applications
AstroAtom
 
QE-SSP - Lecture 1: Introduction to DFT with QE
Nguyen Tuan Hung
 
Basics of Quantum and Computational Chemistry
Girinath Pillai
 
Quantum Chemistry II
baoilleach
 
Drugs and Electrons
David Thompson
 
Applications of Computational Quantum Chemistry
University of Kerbala, Faculty of Science, Department of Chemistry
 
Smart Metrics for High Performance Material Design
aimsnist
 
Smart Metrics for High Performance Material Design
KAMAL CHOUDHARY
 
Differential Characters 1st Edition Christian Br Christian Becker Auth
hiekenursun
 
Advantages and applications of computational chemistry
manikanthaTumarada
 
The Spectra And Dynamics Of Diatomic Molecules 2nd Edition Helene Lefebvrebrion
fldtldrlnc8496
 
Engineering Physics_M. R. Srinivasan
LAKSHMITHARUN PONNAM
 
Ad

More from ABDERRAHMANE REGGAD (20)

PPTX
Presentation de mon mémoire de magister
ABDERRAHMANE REGGAD
 
PPTX
Présentation de thèse de doctorat
ABDERRAHMANE REGGAD
 
PPT
Introduction to the phenomenology of HiTc superconductors.
ABDERRAHMANE REGGAD
 
PPT
Strongly Interacting Atoms in Optical Lattices
ABDERRAHMANE REGGAD
 
PPT
The metal-insulator transition of VO2 revisited
ABDERRAHMANE REGGAD
 
PPT
Mean field Green function solution of the two-band Hubbard model in cuprates
ABDERRAHMANE REGGAD
 
PPT
Hidden Symmetries and Their Consequences in the Hubbard Model of t2g Electrons
ABDERRAHMANE REGGAD
 
PDF
Electronic structure of strongly correlated materials Part III V.Anisimov
ABDERRAHMANE REGGAD
 
PDF
Electronic structure of strongly correlated materials Part II V.Anisimov
ABDERRAHMANE REGGAD
 
PDF
Electronic structure of strongly correlated materials
ABDERRAHMANE REGGAD
 
PDF
ELECTRONIC STRUCTURE OF STRONGLY CORRELATED SYSTEMS
ABDERRAHMANE REGGAD
 
PDF
Strongly correlated electrons: LDA+U in practice
ABDERRAHMANE REGGAD
 
PDF
Density Functional and Dynamical Mean-Field Theory (DFT+DMFT) method and its ...
ABDERRAHMANE REGGAD
 
PPT
Theoretical picture: magnetic impurities, Zener model, mean-field theory
ABDERRAHMANE REGGAD
 
PPT
Magnetic semiconductors: classes of materials, basic properties, central ques...
ABDERRAHMANE REGGAD
 
PPT
Diluted Magnetic Semiconductors
ABDERRAHMANE REGGAD
 
PPT
Room Temperature Superconductivity: Dream or Reality?
ABDERRAHMANE REGGAD
 
PPTX
Phase Transitions in VO2 – Nikita Butakov
ABDERRAHMANE REGGAD
 
PPTX
Electrical transport and magnetic interactions in 3d and 5d transition metal ...
ABDERRAHMANE REGGAD
 
PDF
Mott metal insulator transitions satej soman, robert tang-kong
ABDERRAHMANE REGGAD
 
Presentation de mon mémoire de magister
ABDERRAHMANE REGGAD
 
Présentation de thèse de doctorat
ABDERRAHMANE REGGAD
 
Introduction to the phenomenology of HiTc superconductors.
ABDERRAHMANE REGGAD
 
Strongly Interacting Atoms in Optical Lattices
ABDERRAHMANE REGGAD
 
The metal-insulator transition of VO2 revisited
ABDERRAHMANE REGGAD
 
Mean field Green function solution of the two-band Hubbard model in cuprates
ABDERRAHMANE REGGAD
 
Hidden Symmetries and Their Consequences in the Hubbard Model of t2g Electrons
ABDERRAHMANE REGGAD
 
Electronic structure of strongly correlated materials Part III V.Anisimov
ABDERRAHMANE REGGAD
 
Electronic structure of strongly correlated materials Part II V.Anisimov
ABDERRAHMANE REGGAD
 
Electronic structure of strongly correlated materials
ABDERRAHMANE REGGAD
 
ELECTRONIC STRUCTURE OF STRONGLY CORRELATED SYSTEMS
ABDERRAHMANE REGGAD
 
Strongly correlated electrons: LDA+U in practice
ABDERRAHMANE REGGAD
 
Density Functional and Dynamical Mean-Field Theory (DFT+DMFT) method and its ...
ABDERRAHMANE REGGAD
 
Theoretical picture: magnetic impurities, Zener model, mean-field theory
ABDERRAHMANE REGGAD
 
Magnetic semiconductors: classes of materials, basic properties, central ques...
ABDERRAHMANE REGGAD
 
Diluted Magnetic Semiconductors
ABDERRAHMANE REGGAD
 
Room Temperature Superconductivity: Dream or Reality?
ABDERRAHMANE REGGAD
 
Phase Transitions in VO2 – Nikita Butakov
ABDERRAHMANE REGGAD
 
Electrical transport and magnetic interactions in 3d and 5d transition metal ...
ABDERRAHMANE REGGAD
 
Mott metal insulator transitions satej soman, robert tang-kong
ABDERRAHMANE REGGAD
 

Recently uploaded (20)

PPTX
Diuretic Medicinal Chemistry II Unit II.pptx
Dhanashri Dupade
 
PPTX
Akshay tunneling .pptx_20250331_165945_0000.pptx
akshaythaker18
 
PDF
Introduction of Animal Behaviour full notes.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PPTX
Lamarckism is one of the earliest theories of evolution, proposed before Darw...
Laxman Khatal
 
PPTX
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
PPTX
Envenomation AND ANIMAL BITES DETAILS.pptx
HARISH543351
 
PPT
Cell cycle,cell cycle checkpoint and control
DrMukeshRameshPimpli
 
PDF
Refractory solid condensation detected in an embedded protoplanetary disk
Sérgio Sacani
 
PDF
RODENT PEST MANAGEMENT-converted-compressed.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PDF
A young gas giant and hidden substructures in a protoplanetary disk
Sérgio Sacani
 
PDF
Polarized Multiwavelength Emission from Pulsar Wind—Accretion Disk Interactio...
Sérgio Sacani
 
PPTX
Qualification of DISSOLUTION TEST APPARATUS.pptx
shrutipandit17
 
DOCX
Analytical methods in CleaningValidation.docx
Markus Janssen
 
PPTX
Anatomy and physiology of digestive system.pptx
Ashwini I Chuncha
 
PDF
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
PDF
The Kardashev Scale From Planetary to Cosmic Civilizations
Saikat Basu
 
PDF
GK_GS One Liner For Competitive Exam.pdf
abhi01nm
 
PPTX
MODULE 2 Effects of Lifestyle in the Function of Respiratory and Circulator...
judithgracemangunday
 
PPTX
Gene Therapy. Introduction, history and types of Gene therapy
Ashwini I Chuncha
 
PPTX
Scale up-1 bioreactors ppt. .
pandeysmriti129
 
Diuretic Medicinal Chemistry II Unit II.pptx
Dhanashri Dupade
 
Akshay tunneling .pptx_20250331_165945_0000.pptx
akshaythaker18
 
Introduction of Animal Behaviour full notes.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Lamarckism is one of the earliest theories of evolution, proposed before Darw...
Laxman Khatal
 
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
Envenomation AND ANIMAL BITES DETAILS.pptx
HARISH543351
 
Cell cycle,cell cycle checkpoint and control
DrMukeshRameshPimpli
 
Refractory solid condensation detected in an embedded protoplanetary disk
Sérgio Sacani
 
RODENT PEST MANAGEMENT-converted-compressed.pdf
S.B.P.G. COLLEGE BARAGAON VARANASI
 
A young gas giant and hidden substructures in a protoplanetary disk
Sérgio Sacani
 
Polarized Multiwavelength Emission from Pulsar Wind—Accretion Disk Interactio...
Sérgio Sacani
 
Qualification of DISSOLUTION TEST APPARATUS.pptx
shrutipandit17
 
Analytical methods in CleaningValidation.docx
Markus Janssen
 
Anatomy and physiology of digestive system.pptx
Ashwini I Chuncha
 
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
The Kardashev Scale From Planetary to Cosmic Civilizations
Saikat Basu
 
GK_GS One Liner For Competitive Exam.pdf
abhi01nm
 
MODULE 2 Effects of Lifestyle in the Function of Respiratory and Circulator...
judithgracemangunday
 
Gene Therapy. Introduction, history and types of Gene therapy
Ashwini I Chuncha
 
Scale up-1 bioreactors ppt. .
pandeysmriti129
 

Libxc a library of exchange and correlation functionals

  • 1. Libxc a library of exchange and correlation functionals Miguel A. L. Marques 1LPMCN, Universit´e Claude Bernard Lyon 1 and CNRS, France 2European Theoretical Spectroscopy Facility March 2009 – ABINIT Workshop M. A. L. Marques Libxc
  • 2. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 3. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 4. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 5. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 6. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 7. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 8. Why the need for libxc? The xc functional is at the heart of DFT There are many approximations for the xc (probably of the order of 150–200) Most computer codes only include a very limited quantity of functionals, typically around 10–15 Chemist and Physicists do not use the same functionals! Difficult to reproduce older calculations with older functionals Difficult to reproduce calculations performed with other codes Difficult to perform calculations with the newest functionals M. A. L. Marques Libxc
  • 9. Kohn-Sham equations The main equations of DFT are the Kohn-Sham equations: − 1 2 2 + vext(r) + vH(r) + vxc(r) ϕi(r) = iϕi(r) where the exchange-correlation potential is defined as vxc(r) = δExc δn(r) In any practical application of the theory, we have to use an approximation to Exc, or vxc(r). M. A. L. Marques Libxc
  • 10. Kohn-Sham equations The main equations of DFT are the Kohn-Sham equations: − 1 2 2 + vext(r) + vH(r) + vxc(r) ϕi(r) = iϕi(r) where the exchange-correlation potential is defined as vxc(r) = δExc δn(r) In any practical application of the theory, we have to use an approximation to Exc, or vxc(r). M. A. L. Marques Libxc
  • 11. Jacob’s ladder Local density approximation: ELDA xc (r) = ELDA xc [n] n=n(r) Generalized gradient approximation: EGGA xc (r) = EGGA xc [n, n] n=n(r) Meta-generalized gradient approximation: EmGGA xc (r) = EmGGA xc [n, n, τ] n=n(r),τ=τ(r) And more: orbital functionals, hybrid functionals, hyper-GGAs, etc. M. A. L. Marques Libxc
  • 12. Jacob’s ladder Local density approximation: ELDA xc (r) = ELDA xc [n] n=n(r) Generalized gradient approximation: EGGA xc (r) = EGGA xc [n, n] n=n(r) Meta-generalized gradient approximation: EmGGA xc (r) = EmGGA xc [n, n, τ] n=n(r),τ=τ(r) And more: orbital functionals, hybrid functionals, hyper-GGAs, etc. M. A. L. Marques Libxc
  • 13. Jacob’s ladder Local density approximation: ELDA xc (r) = ELDA xc [n] n=n(r) Generalized gradient approximation: EGGA xc (r) = EGGA xc [n, n] n=n(r) Meta-generalized gradient approximation: EmGGA xc (r) = EmGGA xc [n, n, τ] n=n(r),τ=τ(r) And more: orbital functionals, hybrid functionals, hyper-GGAs, etc. M. A. L. Marques Libxc
  • 14. Jacob’s ladder Local density approximation: ELDA xc (r) = ELDA xc [n] n=n(r) Generalized gradient approximation: EGGA xc (r) = EGGA xc [n, n] n=n(r) Meta-generalized gradient approximation: EmGGA xc (r) = EmGGA xc [n, n, τ] n=n(r),τ=τ(r) And more: orbital functionals, hybrid functionals, hyper-GGAs, etc. M. A. L. Marques Libxc
  • 15. What do we need? - I The energy is usually written as: Exc = d3 r exc(r) = d3 r n(r) xc(r) The potential in the LDA is: vLDA xc (r) = d dn eLDA xc (n) n=n(r) In the GGA: vGGA xc (r) = ∂ ∂n eLDA xc (n, n) n=n(r) − ∂ ∂( n) eLDA xc (n, n) n=n(r) M. A. L. Marques Libxc
  • 16. What do we need? - II For response properties we also need higher derivatives of exc 1st-order response (polarizabilities, phonon frequencies, etc.): fLDA xc (r) = d2 d2n eLDA xc (n) n=n(r) 2st-order response (hyperpolarizabilities, etc.): kLDA xc (r) = d3 d3n eLDA xc (n) n=n(r) And let’s not forget spin... M. A. L. Marques Libxc
  • 17. What do we need? - II For response properties we also need higher derivatives of exc 1st-order response (polarizabilities, phonon frequencies, etc.): fLDA xc (r) = d2 d2n eLDA xc (n) n=n(r) 2st-order response (hyperpolarizabilities, etc.): kLDA xc (r) = d3 d3n eLDA xc (n) n=n(r) And let’s not forget spin... M. A. L. Marques Libxc
  • 18. An example: Perdew & Wang 91 (an LDA) Perdew and Wang parametrized the correlation energy per unit particle: ec(rs, ζ) = ec(rs, 0) + αc(rs) f(ζ) f (0) (1 − ζ4 ) + [ec(rs, 1) − ec(rs, 0)]f(ζ)ζ4 The function f(ζ) is f(ζ) = [1 + ζ]4/3 + [1 − ζ]4/3 − 2 24/3 − 2 , while its second derivative f (0) = 1.709921. The functions ec(rs, 0), ec(rs, 1), and −αc(rs) are all parametrized by the function g = −2A(1 + α1rs) log 1 + 1 2A(β1r 1/2 s + β2rs + β3r 3/2 s + β4r2 s ) M. A. L. Marques Libxc
  • 19. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 20. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 21. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 22. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 23. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 24. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 25. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 26. Libxc Written in C from scratch Bindings both in C and in Fortran Lesser GNU general public license (v. 3.0) Automatic testing of the functionals Contains at the moment 19 LDA functionals, 55 GGA functionals, 24 hybrids, and 7 mGGAs Contains functionals for 1D, 2D, and 3D calculations Returns εxc, vxc, fxc, and kxc Quite mature: included in octopus, APE, GPAW, ABINIT, and in the GW code of Murilo Tiago M. A. L. Marques Libxc
  • 27. What is working! εxc vxc fxc kxc LDA OK OK OK OK GGA OK OK PARTIAL NO HYB GGA OK OK PARTIAL NO mGGA TEST TEST NO NO M. A. L. Marques Libxc
  • 28. An example in C switch ( x c f a m i l y f r o m i d ( xc . f u n c t i o n a l ) ) { case XC FAMILY LDA : i f ( xc . f u n c t i o n a l == XC LDA X) x c l d a x i n i t (& lda func , xc . nspin , 3 , 0 ) ; else x c l d a i n i t (& lda func , xc . functional , xc . nspin ) ; xc lda vxc (& lda func , xc . rho , &xc . zk , xc . vrho ) ; xc lda end (& lda func ) ; break ; case XC FAMILY GGA : x c g g a i n i t (& gga func , xc . functional , xc . nspin ) ; xc gga vxc (& gga func , xc . rho , xc . sigma , &xc . zk , xc . vrho , xc . vsigma xc gga end (& gga func ) ; break ; default : f p r i n t f ( stderr , "Functional ’%d’ not foundn" , xc . f u n c t i o n a l ) ; e x i t ( 1 ) ; } M. A. L. Marques Libxc
  • 29. Another example in Fortran program l x c t e s t use l i b x c i m p l i c i t none real (8) : : rho , e c , v c TYPE( xc func ) : : xc c func TYPE( x c i n f o ) : : x c c i n f o CALL x c f 9 0 l d a i n i t ( xc c func , xc c info , & XC LDA C VWN, XC UNPOLARIZED) CALL xc f90 lda vxc ( xc c func , rho , e c , v c ) CALL xc f90 lda end ( xc c func ) end program l x c t e s t M. A. L. Marques Libxc
  • 30. The info structure typedef s t r u c t { i n t number ; /∗ i n d e n t i f i e r number ∗/ i n t kind ; /∗ XC EXCHANGE or XC CORRELATION ∗/ char ∗name; /∗ name of the functional , e . g . ”PBE” ∗/ i n t family ; /∗ type of the functional , e . g . XC FAMILY GGA ∗/ char ∗ refs ; /∗ references ∗/ i n t provides ; /∗ e . g . XC PROVIDES EXC | XC PROVIDES VXC ∗/ . . . } x c f u n c i n f o t y p e ; This is an example on how you can use it: xc gga type b88 ; x c g g a i n i t (&b88 , XC GGA X B88 , XC UNPOLARIZED ) ; p r i n t f ("The functional ’%s’ is defined in the reference(s):n%s" , b88 . info−>name, b88 . info−>refs ) ; xc gga end (&b88 ) ; M. A. L. Marques Libxc
  • 31. The future More functionals! More derivatives! More codes using it! M. A. L. Marques Libxc
  • 32. The future More functionals! More derivatives! More codes using it! M. A. L. Marques Libxc
  • 33. The future More functionals! More derivatives! More codes using it! M. A. L. Marques Libxc
  • 34. Where to find us! http://www.tddft.org/programs/octopus/wiki/ index.php/Libxc Comput. Phys. Commun. 151, 60–78 (2003) Phys. Stat. Sol. B 243, 2465–2488 (2006) M. A. L. Marques Libxc