(git:6a2e663)
qmmm_image_charge Module Reference

Routines for image charge calculation within QM/MM. More...

Functions/Subroutines

subroutine, public calculate_image_pot (v_hartree_rspace, rho_hartree_gspace, energy, qmmm_env, qs_env)
 determines coefficients by solving image_matrix*coeff=-pot_const by Gaussian elimination or in an iterative fashion and calculates image/metal potential with these coefficients More...
 
subroutine, public integrate_potential_devga_rspace (potential, coeff, forces, qmmm_env, qs_env)
 calculates the image forces on the MM atoms More...
 
subroutine, public conditional_calc_image_matrix (qs_env, qmmm_env)
 calculate image matrix T depending on constraints on image atoms in case coefficients are estimated not iteratively More...
 
subroutine, public add_image_pot_to_hartree_pot (v_hartree, v_metal, qs_env)
 Add potential of metal (image charge pot) to Hartree Potential. More...
 
subroutine, public print_image_coefficients (image_coeff, qs_env)
 Print image coefficients. More...
 

Detailed Description

Routines for image charge calculation within QM/MM.

History
12.2011 created
Author
Dorothea Golze

Function/Subroutine Documentation

◆ calculate_image_pot()

subroutine, public qmmm_image_charge::calculate_image_pot ( type(pw_r3d_rs_type), intent(in)  v_hartree_rspace,
type(pw_c1d_gs_type), intent(in)  rho_hartree_gspace,
type(qs_energy_type), pointer  energy,
type(qmmm_env_qm_type), pointer  qmmm_env,
type(qs_environment_type), pointer  qs_env 
)

determines coefficients by solving image_matrix*coeff=-pot_const by Gaussian elimination or in an iterative fashion and calculates image/metal potential with these coefficients

Parameters
v_hartree_rspaceHartree potential in real space
rho_hartree_gspaceKohn Sham density in reciprocal space
energystructure where energies are stored
qmmm_envqmmm environment
qs_envqs environment

Definition at line 94 of file qmmm_image_charge.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ integrate_potential_devga_rspace()

subroutine, public qmmm_image_charge::integrate_potential_devga_rspace ( type(pw_r3d_rs_type), intent(in)  potential,
real(kind=dp), dimension(:), pointer  coeff,
real(kind=dp), dimension(:, :), pointer  forces,
type(qmmm_env_qm_type), pointer  qmmm_env,
type(qs_environment_type), pointer  qs_env 
)

calculates the image forces on the MM atoms

Parameters
potentialany potential, in this case: Hartree potential
coeffexpansion coefficients of the image charge density, i.e. rho_metal=sum_a c_a*g_a
forcesstructure storing the force contribution of the image charges for the metal (MM) atoms
qmmm_envqmmm environment
qs_envqs environment

Definition at line 450 of file qmmm_image_charge.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conditional_calc_image_matrix()

subroutine, public qmmm_image_charge::conditional_calc_image_matrix ( type(qs_environment_type), pointer  qs_env,
type(qmmm_env_qm_type), pointer  qmmm_env 
)

calculate image matrix T depending on constraints on image atoms in case coefficients are estimated not iteratively

Parameters
qs_envqs environment
qmmm_envqmmm environment

Definition at line 573 of file qmmm_image_charge.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_image_pot_to_hartree_pot()

subroutine, public qmmm_image_charge::add_image_pot_to_hartree_pot ( type(pw_r3d_rs_type), intent(inout)  v_hartree,
type(pw_r3d_rs_type), intent(in)  v_metal,
type(qs_environment_type), pointer  qs_env 
)

Add potential of metal (image charge pot) to Hartree Potential.

Parameters
v_hartreeHartree potential (in real space)
v_metalpotential generated by rho_metal (in real space)
qs_envqs environment

Definition at line 925 of file qmmm_image_charge.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_image_coefficients()

subroutine, public qmmm_image_charge::print_image_coefficients ( real(kind=dp), dimension(:), pointer  image_coeff,
type(qs_environment_type), pointer  qs_env 
)

Print image coefficients.

Parameters
image_coeffexpansion coefficients of the image charge density
qs_envqs environment

Definition at line 1150 of file qmmm_image_charge.F.

Here is the call graph for this function:
Here is the caller graph for this function: