Octopus
xc_vdw_oct_m Module Reference

A module that takes care of xc contribution from vdW interactions. More...

Detailed Description

A module that takes care of xc contribution from vdW interactions.

Data Types

type  xc_vdw_t
 

Functions/Subroutines

subroutine xc_vdw_init (this, namespace, space, gr, xc, ions, x_id, c_id)
 
subroutine xc_vdw_end (this)
 
subroutine xc_vdw_calc (this, namespace, space, latt, atom, natoms, pos, gr, st, energy, vxc)
 

Function/Subroutine Documentation

◆ xc_vdw_init()

subroutine xc_vdw_oct_m::xc_vdw_init ( class(xc_vdw_t), intent(inout)  this,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(grid_t), intent(in)  gr,
type(xc_t), intent(inout)  xc,
type(ions_t), intent(in)  ions,
integer, intent(in)  x_id,
integer, intent(in)  c_id 
)
private

Definition at line 167 of file xc_vdw.F90.

◆ xc_vdw_end()

subroutine xc_vdw_oct_m::xc_vdw_end ( class(xc_vdw_t), intent(inout)  this)
private

Definition at line 308 of file xc_vdw.F90.

◆ xc_vdw_calc()

subroutine xc_vdw_oct_m::xc_vdw_calc ( class(xc_vdw_t), intent(inout)  this,
type(namespace_t), intent(in)  namespace,
type(space_t), intent(in)  space,
type(lattice_vectors_t), intent(in)  latt,
type(atom_t), dimension(:), intent(in)  atom,
integer, intent(in)  natoms,
real(real64), dimension(1:space%dim,1:natoms), intent(in)  pos,
type(grid_t), intent(in)  gr,
type(states_elec_t), intent(inout)  st,
real(real64), intent(out)  energy,
real(real64), dimension(:,:), intent(inout)  vxc 
)
private
Parameters
[in]lattCrystal lattice
[in]atomAtoms
[in]natomsNumber of atoms == size(atoms)
[in]posAtomic positions
[out]energyOn exit, the vdW energy
[in,out]vxcOn exit, the vdW potential has been added

Definition at line 322 of file xc_vdw.F90.