Description of a domain: the at_domain module

Quick access

Types:domain
Variables:angstroem_units, atomic_units, domain_abc, domain_alpha, domain_beta, domain_cell, domain_gamma, domain_units, double_precision_enum, free_bc, nanometer_units, periodic_bc
Routines:bc_periodic_dims(), change_domain_bc(), closest_r(), distance(), domain_geocode(), domain_merge_to_dict(), domain_new(), domain_null(), domain_periodic_dims(), domain_set_from_dict(), domain_volume(), dotp_gd(), dotp_gu(), geocode_to_bc(), geocode_to_bc_enum(), rxyz_ortho(), square_gd(), square_gu(), units_enum_from_str()

Needed modules

Types

  • type at_domain/domain
    Type fields:
    • % abc (3,3) [real] :: <matrix of the normalized translation vectors direction
    • % acell (3) [real] :: lengths of the primitive vectors abc
    • % angrad (3) [real] :: <angles between the dimensions in radians (alpha_bc,beta_ac,gamma_bc)
    • % bc (3) [integer] :: < boundary conditions on each direction
    • % detgd [real] :: <determinant of the covariant matrix
    • % gd (3,3) [real] :: <covariant metric needed for non-orthorhombic operations
    • % gu (3,3) [real] :: <controvariant metric needed for non-orthorhombic operations
    • % orthorhombic [logical] :: <true if the cell is orthorhombic
    • % uabc (3,3) [real] :: <matrix of the normalized translation vectors direction
    • % units [integer]

Variables

  • at_domain/angstroem_units [f_enumerator,public/parameter/optional/default=f_enumerator(‘angstroem’,angstroem,null())]
  • at_domain/atomic_units [f_enumerator,public/parameter/optional/default=f_enumerator(‘atomic’,bohr,null())]
  • at_domain/domain_abc [character(len=*),public/parameter/optional/default=’abc’]
  • at_domain/domain_alpha [character(len=*),public/parameter/optional/default=’alpha’]
  • at_domain/domain_beta [character(len=*),public/parameter/optional/default=’beta’]
  • at_domain/domain_cell [character(len=*),public/parameter/optional/default=’cell’]
  • at_domain/domain_gamma [character(len=*),public/parameter/optional/default=’gamma’]
  • at_domain/domain_units [character(len=*),public/parameter/optional/default=’units’]
  • at_domain/double_precision_enum [f_enumerator,public/optional/default=f_enumerator(‘double precision’,487,null())]
  • at_domain/free_bc [f_enumerator,public/parameter/optional/default=f_enumerator(‘free_bc’,free,null())]
  • at_domain/nanometer_units [f_enumerator,public/parameter/optional/default=f_enumerator(‘nanometer’,nanometer,null())]
  • at_domain/periodic_bc [f_enumerator,public/parameter/optional/default=f_enumerator(‘periodic_bc’,periodic,null())]

Subroutines and functions

interface at_domain/dotp_gu(dom, v1, v2, v1_add, v2_add)
Parameters:
  • dom [domain, in]
  • v1 (3) [real, in]
  • v2 (3) [real, in]
  • v1_add [real] :: <intent in, cannot be declared as such
  • v2_add [real] :: <intent in, cannot be declared as such
interface at_domain/square_gu(dom, v, v_add)
Parameters:
  • dom [domain, in]
  • v (3) [real, in]
  • v_add [real]
interface at_domain/dotp_gd(dom, v1, v2, v1_add, v2_add)
Parameters:
  • dom [domain, in]
  • v1 (3) [real, in]
  • v2 (3) [real, in]
  • v1_add [real] :: <intent in, cannot be declared as such
  • v2_add [real] :: <intent in, cannot be declared as such
interface at_domain/square_gd(dom, v, v_add)
Parameters:
  • dom [domain, in]
  • v (3) [real, in]
  • v_add [real]
function at_domain/domain_null()
Return:dom [domain]
Called from:bind_domain_null()
function at_domain/domain_new(units, bc[, abc, alpha_bc, beta_ac, gamma_ab, acell])
Parameters:
  • units [f_enumerator, in]
  • bc (3) [f_enumerator, in] :: boundary conditions of the system
Options:
  • abc (3,3) [real, in,]
  • alpha_bc [real, in,]
  • beta_ac [real, in,]
  • gamma_ab [real, in,]
  • acell (3) [real, in,]
Return:

dom [domain]

Use :

f_utils

Called from:

bind_domain_new(), domain_set_from_dict()

Call to:

domain_geocode()

function at_domain/change_domain_bc(dom_in, geocode)
Parameters:
  • dom_in [domain, in]
  • geocode [character(len=1), in]
Return:

dom [domain]

Called from:

bind_change_domain_bc()

function at_domain/units_enum_from_str(str)
Parameters:str [character(len=*), in]
Return:units [f_enumerator]
Called from:bind_units_enum_from_str(), domain_set_from_dict()
subroutine at_domain/domain_set_from_dict(dict, dom)
Parameters:
  • dict [dictionary, pointer]
  • dom [domain, out]
Use :

yaml_output, f_utils

Called from:

bind_domain_set_from_dict()

Call to:

units_enum_from_str(), domain_new()

subroutine at_domain/domain_merge_to_dict(dict, dom)
Parameters:
  • dict [dictionary, pointer]
  • dom [domain, in]
Use :

numerics (bohr_ang())

Called from:

bind_domain_merge_to_dict()

function at_domain/geocode_to_bc_enum(geocode)
Parameters:geocode [character(len=1), in]
Return:bc (3) [f_enumerator]
Use :dictionaries (f_err_throw())
function at_domain/geocode_to_bc(geocode)
Parameters:geocode [character(len=1), in]
Return:bc (3) [integer]
Use :dictionaries (f_err_throw())
Called from:bind_geocode_to_bc()
function at_domain/domain_geocode(dom)
Parameters:dom [domain, in]
Return:dom_geocode [character(len=1)]
Called from:dump_field(), bind_domain_geocode(), domain_new()
function at_domain/domain_volume(acell, dom)
Parameters:
  • acell (3) [real, in]
  • dom [domain, in]
Return:

cell_volume [real]

Use :

wrapper_linalg (det_3x3())

Called from:

bind_domain_volume()

function at_domain/bc_periodic_dims(bc)
Parameters:bc (3) [integer, in]
Return:peri (3) [logical]
function at_domain/domain_periodic_dims(dom)
Parameters:dom [domain, in]
Return:peri (3) [logical]
Called from:mp_gaussian_density()
function at_domain/square_gd(dom, v)
Parameters:
  • dom [domain, in]
  • v (3) [real, in]
Return:

square_gd [real]

Called from:

bind_square_gd(), bind_square_gd_add()

function at_domain/dotp_gu(dom, v1, v2)
Parameters:
  • dom [domain, in]
  • v1 (3) [real, in]
  • v2 (3) [real, in]
Return:

dotp_gu [real]

Called from:

bind_dotp_gu(), bind_dotp_gu_add2(), bind_dotp_gu_add1()

function at_domain/dotp_gd(dom, v1, v2)
Parameters:
  • dom [domain, in]
  • v1 (3) [real, in]
  • v2 (3) [real, in]
Return:

dotp_gd [real]

Called from:

bind_dotp_gd(), bind_dotp_gd_add2(), bind_dotp_gd_add1(), bind_dotp_gd_add12()

function at_domain/rxyz_ortho(dom, rxyz)
Parameters:
  • dom [domain, in]
  • rxyz (3) [real, in]
Return:

rxyz_ortho (3) [real]

Called from:

bind_rxyz_ortho(), vector_multipoles()

function at_domain/distance(dom, r, c)
Parameters:
  • dom [domain, in]
  • r (3) [real, in]
  • c (3) [real, in]
Return:

d [real]

Use :

dictionaries (f_err_throw())

Called from:

bind_distance()

function at_domain/closest_r(dom, v, center)
Parameters:
  • dom [domain, in]
  • v (3) [real, in]
  • center (3) [real, in]
Return:

r (3) [real]

Called from:

bind_closest_r(), vector_multipoles()