(git:3add494)
force_env_utils Module Reference

Util force_env module. More...

Functions/Subroutines

subroutine, public force_env_shake (force_env, dt, shake_tol, log_unit, lagrange_mult, dump_lm, pos, vel, compold, reset)
 perform shake (enforcing of constraints) More...
 
subroutine, public force_env_rattle (force_env, dt, shake_tol, log_unit, lagrange_mult, dump_lm, vel, reset)
 perform rattle (enforcing of constraints on velocities) This routine can be easily adapted to performe rattle on whatever other vector different from forces.. More...
 
subroutine, public rescale_forces (force_env)
 Rescale forces if requested. More...
 
subroutine, public write_forces (particles, iw, label, ndigits, total_force, grand_total_force, zero_force_core_shell_atom)
 Write forces. More...
 
subroutine, public write_atener (iounit, particles, atener, label)
 Write the atomic coordinates, types, and energies. More...
 

Detailed Description

Util force_env module.

Author
Teodoro Laino [tlaino] - 02.2011

Function/Subroutine Documentation

◆ force_env_shake()

subroutine, public force_env_utils::force_env_shake ( type(force_env_type), pointer  force_env,
real(kind=dp), intent(in), optional  dt,
real(kind=dp), intent(in)  shake_tol,
integer, intent(in), optional  log_unit,
integer, intent(in), optional  lagrange_mult,
logical, intent(in), optional  dump_lm,
real(kind=dp), dimension(:, :), intent(inout), optional, target  pos,
real(kind=dp), dimension(:, :), intent(inout), optional, target  vel,
logical, intent(in), optional  compold,
logical, intent(in), optional  reset 
)

perform shake (enforcing of constraints)

Parameters
force_envthe force env to shake
dtthe dt for shake (if you are not interested in the velocities it can be any positive number)
shake_tolthe tolerance for shake
log_unitif >0 then some information on the shake is printed, defaults to -1
lagrange_mult...
dump_lm...
pos...
vel...
compold...
reset...
Author
fawzi

Definition at line 67 of file force_env_utils.F.

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

◆ force_env_rattle()

subroutine, public force_env_utils::force_env_rattle ( type(force_env_type), pointer  force_env,
real(kind=dp), intent(in), optional  dt,
real(kind=dp), intent(in)  shake_tol,
integer, intent(in), optional  log_unit,
integer, intent(in), optional  lagrange_mult,
logical, intent(in), optional  dump_lm,
real(kind=dp), dimension(:, :), intent(inout), optional, target  vel,
logical, intent(in), optional  reset 
)

perform rattle (enforcing of constraints on velocities) This routine can be easily adapted to performe rattle on whatever other vector different from forces..

Parameters
force_envthe force env to shake
dtthe dt for shake (if you are not interested in the velocities it can be any positive number)
shake_tolthe tolerance for shake
log_unitif >0 then some information on the shake is printed, defaults to -1
lagrange_mult...
dump_lm...
vel...
reset...
Author
tlaino

Definition at line 235 of file force_env_utils.F.

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

◆ rescale_forces()

subroutine, public force_env_utils::rescale_forces ( type(force_env_type), pointer  force_env)

Rescale forces if requested.

Parameters
force_envthe force env to shake
Author
tlaino

Definition at line 368 of file force_env_utils.F.

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

◆ write_forces()

subroutine, public force_env_utils::write_forces ( type(particle_list_type), pointer  particles,
integer, intent(in)  iw,
character(len=*), intent(in)  label,
integer, intent(in)  ndigits,
real(kind=dp), dimension(3), intent(out)  total_force,
real(kind=dp), dimension(3), intent(inout), optional  grand_total_force,
logical, intent(in), optional  zero_force_core_shell_atom 
)

Write forces.

Parameters
particles...
iw...
label...
ndigits...
total_force...
grand_total_force...
zero_force_core_shell_atom...
Author
MK (06.09.2010)

Definition at line 413 of file force_env_utils.F.

Here is the caller graph for this function:

◆ write_atener()

subroutine, public force_env_utils::write_atener ( integer, intent(in)  iounit,
type(particle_list_type), pointer  particles,
real(kind=dp), dimension(:), intent(in)  atener,
character(len=*), intent(in)  label 
)

Write the atomic coordinates, types, and energies.

Parameters
iounit...
particles...
atener...
label...
Date
05.06.2023
Author
JGH
Version
1.0

Definition at line 490 of file force_env_utils.F.

Here is the caller graph for this function: