ia_bond_m Module

This module contains routines to evaluate bond potentials and their derivative.

The following styles are available:


Uses

  • module~~ia_bond_m~~UsesGraph module~ia_bond_m ia_bond_m module~strings_m strings_m module~ia_bond_m->module~strings_m module~constants_m constants_m module~ia_bond_m->module~constants_m module~logger_m logger_m module~ia_bond_m->module~logger_m module~strings_m->module~constants_m iso_fortran_env iso_fortran_env module~constants_m->iso_fortran_env module~logger_m->iso_fortran_env module~timestamp_m timestamp_m module~logger_m->module~timestamp_m

Used by

  • module~~ia_bond_m~~UsedByGraph module~ia_bond_m ia_bond_m module~interaction_m interaction_m module~interaction_m->module~ia_bond_m module~bd_solver_m bd_solver_m module~bd_solver_m->module~interaction_m module~setup_m setup_m module~setup_m->module~interaction_m module~setup_m->module~bd_solver_m program~main main program~main->module~setup_m

Contents


Subroutines

public subroutine ia_bond_setup(num_bond_types, bond_styles, bond_params)

Sets up parameters for bond potentials

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: num_bond_types

Number of bond types

integer, intent(in), dimension(:):: bond_styles

Styles for each type

real(kind=rp), intent(inout), dimension(:,:):: bond_params

Parameters for each type, depending on style

public subroutine ia_get_bond_force(rij_mag, sty, params, enrg, frc, ierr)

Calculates the energy & its derivative due to a bond.

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: rij_mag

Distance between bonded atoms

integer, intent(in) :: sty

Style of the bond

real(kind=rp), intent(in), dimension(:):: params

Parameters for bonded interaction

real(kind=rp), intent(out) :: enrg

Bond energy

real(kind=rp), intent(out) :: frc

Derivative of the potential. This is the magnitude of the force due to this potential.

integer, intent(out) :: ierr

Error flag

private subroutine bond_harm_set(params, k, r0)

Setter for harmonic bond interaction.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(inout), dimension(:):: params
real(kind=rp), intent(in), optional :: k
real(kind=rp), intent(in), optional :: r0

private subroutine bond_harm(r, params, enrg, frc)

Calculates energy & its derivative for harmonic bond. See bond_harm_set.

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: r
real(kind=rp), intent(in), dimension(:):: params
real(kind=rp), intent(out) :: enrg
real(kind=rp), intent(out) :: frc

private subroutine bond_fene_set(params, k, rmax, r0)

Setter for FENE bond.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(inout), dimension(:):: params
real(kind=rp), intent(in), optional :: k
real(kind=rp), intent(in), optional :: rmax
real(kind=rp), intent(in), optional :: r0

private subroutine bond_fene(r, params, enrg, frc, ierr)

Calculates energy & its derivative for FENE bond. See bond_fene_set.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: r
real(kind=rp), intent(in), dimension(:):: params
real(kind=rp), intent(out) :: enrg
real(kind=rp), intent(out) :: frc
integer, intent(out) :: ierr

private subroutine bond_kg_set(params, k, rmax, eps, sigma)

Setter for FENE bond interaction.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(inout), dimension(:):: params
real(kind=rp), intent(in), optional :: k
real(kind=rp), intent(in), optional :: rmax
real(kind=rp), intent(in), optional :: eps
real(kind=rp), intent(in), optional :: sigma

private subroutine bond_kg(r, params, enrg, frc, ierr)

Calculates energy & its derivative for Kremer-Grest bond. See bond_kg_set.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: r
real(kind=rp), intent(in), dimension(:):: params
real(kind=rp), intent(out) :: enrg
real(kind=rp), intent(out) :: frc
integer, intent(out) :: ierr

private subroutine bond_ms_set(params, lp, rmax)

Setter for Marko-Siggia bond.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(inout), dimension(:):: params
real(kind=rp), intent(in), optional :: lp
real(kind=rp), intent(in), optional :: rmax

private subroutine bond_ms(r, params, enrg, frc, ierr)

Evaluates the potential & its derivative for Marko-Siggia bond. See bond_ms_set.

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in) :: r
real(kind=rp), intent(in), dimension(:):: params
real(kind=rp), intent(out) :: enrg
real(kind=rp), intent(out) :: frc
integer, intent(out) :: ierr