mctc_ncoord_erf Module

Coordination number implementation with single error function



Derived Types

type, public, extends(ncoord_type) ::  erf_ncoord_type

Coordination number evaluator

Components

Type Visibility Attributes Name Initial
real(kind=wp), public :: cut = -1.0_wp

Cutoff for the maximum coordination number (negative value, no cutoff)

real(kind=wp), public :: cutoff

Radial cutoff for the coordination number

real(kind=wp), public :: directed_factor

Factor determining whether the CN is evaluated with direction if +1 the CN contribution is added equally to both partners if -1 (i.e. with the EN-dep.) it is added to one and subtracted from the other

real(kind=wp), public :: kcn

Steepness of counting function

Type-Bound Procedures

procedure, public :: add_coordination_number_derivs

Add CN derivative of an arbitrary function

procedure, public :: add_coordination_number_derivs_list

Add CN derivative of an arbitrary function using the CSR list

procedure, public :: add_coordination_number_hessian

Add dE/dCN contracted with the Cartesian CN Hessian

procedure, public :: add_coordination_number_hessian_list

Add dE/dCN contracted with the Cartesian CN Hessian using the CSR list

generic, public :: get_cn => get_cn_checked, get_cn_legacy

Obtains lattice information and calls get_coordination number

procedure, public :: get_coordination_number

Decides whether the energy or gradient is calculated

procedure, public :: get_en_factor

Evaluates pairwise electronegativity factor

procedure, public :: ncoord

Evaluates the CN from the specific counting function

procedure, public :: ncoord_count

Evaluates the error counting function

procedure, public :: ncoord_d

Evaluates derivative of the CN from the specific counting function

procedure, public :: ncoord_d2count

Evaluates the second derivative of the error counting function

procedure, public :: ncoord_dcount

Evaluates the derivative of the error counting function


Subroutines

public subroutine init_erf_ncoord(self, mol, norm_exp, rcov)

Set the covalent radii and the distance normalization of an erf-type coordination number and build the pair tables derived from them. The radii and exponent are only accessible through this routine, which keeps them consistent with the tables.

Arguments

Type IntentOptional Attributes Name
class(erf_ncoord_type), intent(inout) :: self

Coordination number container

type(structure_type), intent(in) :: mol

Molecular structure data

real(kind=wp), intent(in) :: norm_exp

Exponent of the distance normalization

real(kind=wp), intent(in), optional :: rcov(:)

Covalent radii, absent selects the default covalent radii

public subroutine new_erf_ncoord(self, mol, kcn, cutoff, rcov, cut, norm_exp)

Arguments

Type IntentOptional Attributes Name
type(erf_ncoord_type), intent(out) :: self

Coordination number container

type(structure_type), intent(in) :: mol

Molecular structure data

real(kind=wp), intent(in), optional :: kcn

Steepness of counting function

real(kind=wp), intent(in), optional :: cutoff

Real space cutoff

real(kind=wp), intent(in), optional :: rcov(:)

Covalent radii

real(kind=wp), intent(in), optional :: cut

Cutoff for the maximum coordination number

real(kind=wp), intent(in), optional :: norm_exp

Exponent of the distance normalization