mqc_method_hf Module

Implements the Hartree-Fock quantum chemistry method Provides energy and gradient calculations using a basic SCF procedure.


Uses

  • module~~mqc_method_hf~~UsesGraph module~mqc_method_hf mqc_method_hf module~mqc_method_base mqc_method_base module~mqc_method_hf->module~mqc_method_base module~mqc_physical_fragment mqc_physical_fragment module~mqc_method_hf->module~mqc_physical_fragment module~mqc_result_types mqc_result_types module~mqc_method_hf->module~mqc_result_types pic_types pic_types module~mqc_method_hf->pic_types module~mqc_method_base->module~mqc_physical_fragment module~mqc_method_base->module~mqc_result_types module~mqc_method_base->pic_types module~mqc_physical_fragment->pic_types module~mqc_cgto mqc_cgto module~mqc_physical_fragment->module~mqc_cgto module~mqc_elements mqc_elements module~mqc_physical_fragment->module~mqc_elements module~mqc_error mqc_error module~mqc_physical_fragment->module~mqc_error module~mqc_geometry mqc_geometry module~mqc_physical_fragment->module~mqc_geometry module~mqc_physical_constants mqc_physical_constants module~mqc_physical_fragment->module~mqc_physical_constants module~mqc_xyz_reader mqc_xyz_reader module~mqc_physical_fragment->module~mqc_xyz_reader module~mqc_result_types->pic_types module~mqc_result_types->module~mqc_error pic_mpi_lib pic_mpi_lib module~mqc_result_types->pic_mpi_lib module~mqc_cgto->pic_types module~mqc_elements->pic_types pic_ascii pic_ascii module~mqc_elements->pic_ascii module~mqc_geometry->pic_types module~mqc_physical_constants->pic_types module~mqc_xyz_reader->pic_types module~mqc_xyz_reader->module~mqc_error module~mqc_xyz_reader->module~mqc_geometry

Used by

  • module~~mqc_method_hf~~UsedByGraph module~mqc_method_hf mqc_method_hf module~mqc_method_factory mqc_method_factory module~mqc_method_factory->module~mqc_method_hf module~mqc_mbe_fragment_distribution_scheme mqc_mbe_fragment_distribution_scheme module~mqc_mbe_fragment_distribution_scheme->module~mqc_method_factory proc~hessian_coordinator hessian_coordinator proc~hessian_coordinator->module~mqc_method_factory proc~hessian_worker hessian_worker proc~hessian_worker->module~mqc_method_factory module~mpi_fragment_work_smod mpi_fragment_work_smod module~mpi_fragment_work_smod->module~mqc_mbe_fragment_distribution_scheme module~mqc_driver mqc_driver module~mqc_driver->module~mqc_mbe_fragment_distribution_scheme module~mqc_gmbe_fragment_distribution_scheme mqc_gmbe_fragment_distribution_scheme module~mqc_gmbe_fragment_distribution_scheme->module~mqc_mbe_fragment_distribution_scheme module~mqc_hessian_distribution_scheme mqc_hessian_distribution_scheme module~mqc_hessian_distribution_scheme->module~mqc_mbe_fragment_distribution_scheme module~mqc_serial_fragment_processor mqc_serial_fragment_processor module~mqc_serial_fragment_processor->module~mqc_mbe_fragment_distribution_scheme module~mqc_unfragmented_workflow mqc_unfragmented_workflow module~mqc_unfragmented_workflow->module~mqc_mbe_fragment_distribution_scheme proc~gmbe_run_distributed gmbe_context_t%gmbe_run_distributed proc~gmbe_run_distributed->module~mqc_mbe_fragment_distribution_scheme proc~gmbe_run_distributed->module~mqc_gmbe_fragment_distribution_scheme proc~mbe_run_distributed mbe_context_t%mbe_run_distributed proc~mbe_run_distributed->module~mqc_mbe_fragment_distribution_scheme proc~mbe_run_serial mbe_context_t%mbe_run_serial proc~mbe_run_serial->module~mqc_mbe_fragment_distribution_scheme proc~compute_energy_and_forces compute_energy_and_forces proc~compute_energy_and_forces->module~mqc_driver proc~gmbe_run_serial gmbe_context_t%gmbe_run_serial proc~gmbe_run_serial->module~mqc_gmbe_fragment_distribution_scheme program~main main program~main->module~mqc_driver

Derived Types

type, public, extends(qc_method_t) ::  hf_method_t

Hartree-Fock method implementation

Components

Type Visibility Attributes Name Initial
type(hf_options_t), public :: options

Type-Bound Procedures

procedure, public :: calc_energy => hf_calc_energy
procedure, public :: calc_gradient => hf_calc_gradient
procedure, public :: calc_hessian => null_hessian

Placeholder for Hessian calculation

type, public ::  hf_options_t

Hartree-Fock calculation options

Components

Type Visibility Attributes Name Initial
character(len=32), public :: basis_set = 'sto-3g'

Basis set name

real(kind=dp), public :: conv_tol = 1.0e-8_dp

Energy convergence threshold

real(kind=dp), public :: density_tol = 1.0e-6_dp

Density matrix convergence threshold

integer, public :: diis_size = 8

Number of Fock matrices for DIIS

integer, public :: max_iter = 100

Maximum SCF iterations

logical, public :: spherical = .true.

Use spherical (true) or Cartesian (false) basis

logical, public :: use_diis = .true.

Use DIIS acceleration

logical, public :: verbose = .false.

Print SCF iterations


Subroutines

private subroutine hf_calc_energy(this, fragment, result)

Calculate electronic energy using Hartree-Fock method

Arguments

Type IntentOptional Attributes Name
class(hf_method_t), intent(in) :: this
type(physical_fragment_t), intent(in) :: fragment
type(calculation_result_t), intent(out) :: result

private subroutine hf_calc_gradient(this, fragment, result)

Calculate energy gradient using Hartree-Fock method

Arguments

Type IntentOptional Attributes Name
class(hf_method_t), intent(in) :: this
type(physical_fragment_t), intent(in) :: fragment
type(calculation_result_t), intent(out) :: result

private subroutine null_hessian(this, fragment, result)

Placeholder for Hessian calculation

Arguments

Type IntentOptional Attributes Name
class(hf_method_t), intent(in) :: this
type(physical_fragment_t), intent(in) :: fragment
type(calculation_result_t), intent(out) :: result