34#include "./base/base_uses.f90"
50 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'constraint_clv'
65 SUBROUTINE check_colv_int(molecule, particle_set, cell, max_sigma, pos, vel, rmat, veps)
69 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
70 REAL(kind=
dp),
INTENT(IN),
OPTIONAL :: pos(:, :), vel(:, :), rmat(:, :), &
74 REAL(kind=
dp) :: sigma
80 molecule_kind => molecule%molecule_kind
83 IF (.NOT.
ASSOCIATED(colv_list))
RETURN
84 cpassert(
PRESENT(pos) .NEQV.
PRESENT(vel))
85 DO iconst = 1,
SIZE(colv_list)
86 IF (colv_list(iconst)%restraint%active) cycle
87 IF (
PRESENT(pos))
THEN
89 pos=pos, fixd_list=fixd_list)
90 sigma =
diff_colvar(lcolv(iconst)%colvar, colv_list(iconst)%expected_value)
91 max_sigma = max(max_sigma, abs(sigma))
93 sigma = rattle_con_eval(lcolv(iconst)%colvar_old, vel, roll=
PRESENT(rmat), &
94 rmat=rmat, veps=veps, particles=particle_set) - &
95 colv_list(iconst)%target_velocity
96 max_sigma = max(max_sigma, rattle_colv_residual(sigma, colv_list(iconst)))
119 cell, imass, max_sigma)
123 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
124 REAL(kind=
dp),
INTENT(in) :: dt
125 INTEGER,
INTENT(IN) :: ishake
127 REAL(kind=
dp),
DIMENSION(:) :: imass
128 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
136 molecule_kind => molecule%molecule_kind
140 CALL shake_colv_low(fixd_list, colv_list, lcolv, &
141 particle_set, pos, vel, dt, ishake, cell, imass, max_sigma)
156 REAL(kind=
dp),
INTENT(in) :: dt
162 molecule_kind => molecule%molecule_kind
186 cell, imass, max_sigma)
190 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
191 REAL(kind=
dp),
INTENT(in) :: dt
192 INTEGER,
INTENT(IN) :: irattle
194 REAL(kind=
dp),
DIMENSION(:) :: imass
195 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
203 molecule_kind => molecule%molecule_kind
207 CALL rattle_colv_low(fixd_list, colv_list, lcolv, &
208 particle_set, vel, dt, irattle, cell, imass, max_sigma)
232 dt, ishake, cell, imass, max_sigma)
236 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
237 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN) :: r_shake, v_shake
238 REAL(kind=
dp),
INTENT(in) :: dt
239 INTEGER,
INTENT(in) :: ishake
241 REAL(kind=
dp),
DIMENSION(:) :: imass
242 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
250 molecule_kind => molecule%molecule_kind
254 CALL shake_roll_colv_low(fixd_list, colv_list, lcolv, &
255 particle_set, pos, vel, r_shake, v_shake, dt, ishake, cell, &
279 dt, irattle, veps, cell, imass, max_sigma)
283 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
284 REAL(kind=
dp),
INTENT(IN) :: r_rattle(:, :), dt
285 INTEGER,
INTENT(in) :: irattle
286 REAL(kind=
dp),
INTENT(IN) :: veps(:, :)
288 REAL(kind=
dp),
DIMENSION(:) :: imass
289 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
297 molecule_kind => molecule%molecule_kind
301 CALL rattle_roll_colv_low(fixd_list, colv_list, lcolv, &
302 particle_set, vel, r_rattle, dt, irattle, veps, cell, &
325 cell, imass, max_sigma)
329 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
330 REAL(kind=
dp),
INTENT(in) :: dt
331 INTEGER,
INTENT(IN) :: ishake
333 REAL(kind=
dp),
DIMENSION(:) :: imass
334 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
340 colv_list => gci%colv_list
341 fixd_list => gci%fixd_list
344 CALL shake_colv_low(fixd_list, colv_list, lcolv, &
345 particle_set, pos, vel, dt, ishake, cell, imass, max_sigma)
360 REAL(kind=
dp),
INTENT(in) :: dt
365 colv_list => gci%colv_list
388 cell, imass, max_sigma)
392 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
393 REAL(kind=
dp),
INTENT(in) :: dt
394 INTEGER,
INTENT(IN) :: irattle
396 REAL(kind=
dp),
DIMENSION(:) :: imass
397 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
403 colv_list => gci%colv_list
404 fixd_list => gci%fixd_list
407 CALL rattle_colv_low(fixd_list, colv_list, lcolv, &
408 particle_set, vel, dt, irattle, cell, imass, max_sigma)
432 dt, ishake, cell, imass, max_sigma)
436 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
437 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN) :: r_shake, v_shake
438 REAL(kind=
dp),
INTENT(in) :: dt
439 INTEGER,
INTENT(in) :: ishake
441 REAL(kind=
dp),
DIMENSION(:) :: imass
442 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
448 colv_list => gci%colv_list
449 fixd_list => gci%fixd_list
452 CALL shake_roll_colv_low(fixd_list, colv_list, lcolv, &
453 particle_set, pos, vel, r_shake, v_shake, dt, ishake, cell, &
477 dt, irattle, veps, cell, imass, max_sigma)
481 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
482 REAL(kind=
dp),
INTENT(IN) :: r_rattle(:, :), dt
483 INTEGER,
INTENT(in) :: irattle
484 REAL(kind=
dp),
INTENT(IN) :: veps(:, :)
486 REAL(kind=
dp),
DIMENSION(:) :: imass
487 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
493 colv_list => gci%colv_list
494 fixd_list => gci%fixd_list
497 CALL rattle_roll_colv_low(fixd_list, colv_list, lcolv, &
498 particle_set, vel, r_rattle, dt, irattle, veps, cell, &
522 SUBROUTINE shake_colv_low(fixd_list, colv_list, lcolv, &
523 particle_set, pos, vel, dt, ishake, cell, imass, max_sigma)
528 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
529 REAL(kind=
dp),
INTENT(in) :: dt
530 INTEGER,
INTENT(IN) :: ishake
532 REAL(kind=
dp),
DIMENSION(:) :: imass
533 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
536 REAL(kind=
dp) :: del_lam, dtby2, dtsqby2, fdotf_sum
538 dtsqby2 = dt*dt*.5_dp
540 IF (ishake == 1)
THEN
541 DO iconst = 1,
SIZE(colv_list)
542 IF (colv_list(iconst)%restraint%active) cycle
544 CALL update_con_colv(pos, dtsqby2, lcolv(iconst), &
545 lambda=lcolv(iconst)%lambda, &
548 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
549 lambda=lcolv(iconst)%lambda, &
553 DO iconst = 1,
SIZE(colv_list)
554 IF (colv_list(iconst)%restraint%active) cycle
557 pos=pos, fixd_list=fixd_list)
558 lcolv(iconst)%sigma =
diff_colvar(lcolv(iconst)%colvar, &
559 colv_list(iconst)%expected_value)
560 fdotf_sum = eval_jac_colvar(lcolv(iconst)%colvar, &
561 lcolv(iconst)%colvar_old, imass=imass)
562 del_lam = 2.0_dp*lcolv(iconst)%sigma/(dt*dt*fdotf_sum)
563 lcolv(iconst)%lambda = lcolv(iconst)%lambda + del_lam
566 CALL update_con_colv(pos, dtsqby2, lcolv(iconst), &
570 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
576 DO iconst = 1,
SIZE(colv_list)
577 IF (colv_list(iconst)%restraint%active) cycle
579 pos=pos, fixd_list=fixd_list)
580 lcolv(iconst)%sigma =
diff_colvar(lcolv(iconst)%colvar, &
581 colv_list(iconst)%expected_value)
582 max_sigma = max(abs(lcolv(iconst)%sigma), max_sigma)
584 END SUBROUTINE shake_colv_low
594 REAL(kind=
dp),
INTENT(in) :: dt
597 INTEGER :: irep, n_rep
598 LOGICAL :: do_update_colvar, explicit
599 REAL(kind=
dp) :: clv_target, limit, new_clv_target,
value
610 IF (
value /= 0.0_dp)
THEN
613 new_clv_target = clv_target +
value*dt
617 do_update_colvar = .true.
621 IF (
value > 0.0_dp)
THEN
622 IF (clv_target == limit)
THEN
623 do_update_colvar = .false.
624 ELSE IF (new_clv_target >= limit)
THEN
625 new_clv_target = limit
628 IF (clv_target == limit)
THEN
629 do_update_colvar = .false.
630 ELSE IF (new_clv_target <= limit)
THEN
631 new_clv_target = limit
635 IF (do_update_colvar)
THEN
654 REAL(kind=
dp),
INTENT(IN) :: dt
656 LOGICAL,
INTENT(IN),
OPTIONAL :: initialize
659 LOGICAL :: explicit, initial
660 REAL(kind=
dp) :: limit, next_target, old_target, speed
664 IF (
PRESENT(initialize)) initial = initialize
666 DO iconst = 1,
SIZE(colv_list)
667 colv_list(iconst)%target_velocity = 0.0_dp
668 IF (colv_list(iconst)%expected_value_growth_speed == 0.0_dp) cycle
669 old_target = colv_list(iconst)%expected_value
672 i_rep_section=colv_list(iconst)%inp_seq_num)
674 speed = colv_list(iconst)%expected_value_growth_speed
675 next_target = old_target + speed*dt
677 i_rep_section=colv_list(iconst)%inp_seq_num)
680 i_rep_section=colv_list(iconst)%inp_seq_num)
681 IF (speed > 0.0_dp) next_target = min(next_target, limit)
682 IF (speed < 0.0_dp) next_target = max(next_target, limit)
685 colv_list(iconst)%expected_value = next_target
687 colv_list(iconst)%target_velocity = (next_target - old_target)/dt
710 SUBROUTINE rattle_colv_low(fixd_list, colv_list, lcolv, &
711 particle_set, vel, dt, irattle, cell, imass, max_sigma)
717 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
718 REAL(kind=
dp),
INTENT(in) :: dt
719 INTEGER,
INTENT(IN) :: irattle
721 REAL(kind=
dp),
DIMENSION(:) :: imass
722 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
725 REAL(kind=
dp) :: del_lam, dtby2, fdotf_sum
728 IF (irattle == 1)
THEN
729 DO iconst = 1,
SIZE(colv_list)
730 IF (colv_list(iconst)%restraint%active) cycle
733 particles=particle_set, fixd_list=fixd_list)
735 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
736 lambda=lcolv(iconst)%lambda, &
740 DO iconst = 1,
SIZE(colv_list)
741 IF (colv_list(iconst)%restraint%active) cycle
742 lcolv(iconst)%sigma = rattle_con_eval(lcolv(iconst)%colvar_old, vel) - &
743 colv_list(iconst)%target_velocity
744 fdotf_sum = eval_jac_colvar(lcolv(iconst)%colvar_old, &
745 lcolv(iconst)%colvar_old, imass=imass)
746 del_lam = 2.0_dp*lcolv(iconst)%sigma/(dt*fdotf_sum)
747 lcolv(iconst)%lambda = lcolv(iconst)%lambda + del_lam
750 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
756 DO iconst = 1,
SIZE(colv_list)
757 IF (colv_list(iconst)%restraint%active) cycle
758 lcolv(iconst)%sigma = rattle_con_eval(lcolv(iconst)%colvar_old, vel) - &
759 colv_list(iconst)%target_velocity
760 max_sigma = max(rattle_colv_residual(lcolv(iconst)%sigma, colv_list(iconst)), max_sigma)
763 END SUBROUTINE rattle_colv_low
786 SUBROUTINE shake_roll_colv_low(fixd_list, colv_list, lcolv, &
787 particle_set, pos, vel, r_shake, v_shake, dt, ishake, cell, &
794 REAL(kind=
dp),
INTENT(INOUT) :: pos(:, :), vel(:, :)
795 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN) :: r_shake, v_shake
796 REAL(kind=
dp),
INTENT(in) :: dt
797 INTEGER,
INTENT(in) :: ishake
799 REAL(kind=
dp),
DIMENSION(:) :: imass
800 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
803 REAL(kind=
dp) :: del_lam, dtby2, dtsqby2, fdotf_sum
805 dtsqby2 = dt*dt*.5_dp
807 IF (ishake == 1)
THEN
808 DO iconst = 1,
SIZE(colv_list)
809 IF (colv_list(iconst)%restraint%active) cycle
811 CALL update_con_colv(pos, dtsqby2, lcolv(iconst), &
812 lambda=lcolv(iconst)%lambda, &
813 roll=.true., rmat=r_shake, imass=imass)
815 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
816 lambda=lcolv(iconst)%lambda, &
817 roll=.true., rmat=v_shake, imass=imass)
820 DO iconst = 1,
SIZE(colv_list)
821 IF (colv_list(iconst)%restraint%active) cycle
824 pos=pos, fixd_list=fixd_list)
825 lcolv(iconst)%sigma =
diff_colvar(lcolv(iconst)%colvar, &
826 colv_list(iconst)%expected_value)
827 fdotf_sum = eval_jac_colvar(lcolv(iconst)%colvar, &
828 lcolv(iconst)%colvar_old, roll=.true., rmat=r_shake, &
830 del_lam = 2.0_dp*lcolv(iconst)%sigma/(dt*dt*fdotf_sum)
831 lcolv(iconst)%lambda = lcolv(iconst)%lambda + del_lam
834 CALL update_con_colv(pos, dtsqby2, lcolv(iconst), &
836 roll=.true., rmat=r_shake, imass=imass)
838 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
840 roll=.true., rmat=v_shake, imass=imass)
844 DO iconst = 1,
SIZE(colv_list)
845 IF (colv_list(iconst)%restraint%active) cycle
847 pos=pos, fixd_list=fixd_list)
848 lcolv(iconst)%sigma =
diff_colvar(lcolv(iconst)%colvar, &
849 colv_list(iconst)%expected_value)
850 max_sigma = max(abs(lcolv(iconst)%sigma), max_sigma)
853 END SUBROUTINE shake_roll_colv_low
875 SUBROUTINE rattle_roll_colv_low(fixd_list, colv_list, lcolv, &
876 particle_set, vel, r_rattle, dt, irattle, veps, cell, &
883 REAL(kind=
dp),
INTENT(INOUT) :: vel(:, :)
884 REAL(kind=
dp),
INTENT(IN) :: r_rattle(:, :), dt
885 INTEGER,
INTENT(in) :: irattle
886 REAL(kind=
dp),
INTENT(IN) :: veps(:, :)
888 REAL(kind=
dp),
DIMENSION(:) :: imass
889 REAL(kind=
dp),
INTENT(INOUT) :: max_sigma
892 REAL(kind=
dp) :: del_lam, dtby2, fdotf_sum
895 IF (irattle == 1)
THEN
896 DO iconst = 1,
SIZE(colv_list)
897 IF (colv_list(iconst)%restraint%active) cycle
900 particles=particle_set, fixd_list=fixd_list)
902 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
903 lambda=lcolv(iconst)%lambda, &
907 DO iconst = 1,
SIZE(colv_list)
908 IF (colv_list(iconst)%restraint%active) cycle
909 lcolv(iconst)%sigma = rattle_con_eval(lcolv(iconst)%colvar_old, vel, &
910 roll=.true., veps=veps, rmat=r_rattle, particles=particle_set) - &
911 colv_list(iconst)%target_velocity
912 fdotf_sum = eval_jac_colvar(lcolv(iconst)%colvar_old, &
913 lcolv(iconst)%colvar_old, roll=.true., &
914 rmat=r_rattle, imass=imass)
915 del_lam = 2.0_dp*lcolv(iconst)%sigma/(dt*fdotf_sum)
916 lcolv(iconst)%lambda = lcolv(iconst)%lambda + del_lam
918 CALL update_con_colv(vel, dtby2, lcolv(iconst), &
920 roll=.true., rmat=r_rattle, imass=imass)
924 DO iconst = 1,
SIZE(colv_list)
925 IF (colv_list(iconst)%restraint%active) cycle
926 lcolv(iconst)%sigma = rattle_con_eval(lcolv(iconst)%colvar_old, vel, &
927 roll=.true., veps=veps, rmat=r_rattle, particles=particle_set) - &
928 colv_list(iconst)%target_velocity
929 max_sigma = max(rattle_colv_residual(lcolv(iconst)%sigma, colv_list(iconst)), max_sigma)
932 END SUBROUTINE rattle_roll_colv_low
940 PURE FUNCTION rattle_colv_residual(sigma, definition)
RESULT(residual)
941 REAL(kind=
dp),
INTENT(IN) :: sigma
943 REAL(kind=
dp) :: residual
945 residual = abs(sigma)
948 IF (definition%expected_value_growth_speed /= 0.0_dp)
THEN
949 residual = max(residual, abs(sigma/definition%expected_value_growth_speed))
951 END FUNCTION rattle_colv_residual
966 SUBROUTINE update_con_colv(wrk, fac, lcolv, lambda, roll, rmat, imass)
967 REAL(kind=
dp),
INTENT(INOUT) :: wrk(:, :)
968 REAL(kind=
dp),
INTENT(IN) ::
fac
970 REAL(kind=
dp),
INTENT(IN) :: lambda
971 LOGICAL,
INTENT(in),
OPTIONAL :: roll
972 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN), &
974 REAL(kind=
dp),
DIMENSION(:) :: imass
978 REAL(kind=
dp),
DIMENSION(3) :: f_roll
981 IF (
PRESENT(roll))
THEN
984 cpassert(
PRESENT(rmat))
987 DO iatm = 1,
SIZE(lcolv%colvar_old%i_atom)
988 ind = lcolv%colvar_old%i_atom(iatm)
992 f_roll = matmul(rmat, lcolv%colvar_old%dsdr(:, iatm))
994 f_roll = lcolv%colvar_old%dsdr(:, iatm)
996 wrk(:, ind) = wrk(:, ind) - imass(ind)*
fac*lambda*f_roll
998 END SUBROUTINE update_con_colv
1012 FUNCTION eval_jac_colvar(colvar, colvar_old, roll, rmat, imass)
RESULT(res)
1014 LOGICAL,
INTENT(IN),
OPTIONAL :: roll
1015 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN), &
1017 REAL(kind=
dp),
DIMENSION(:) :: imass
1018 REAL(kind=
dp) :: res
1022 REAL(kind=
dp),
DIMENSION(3) :: tmp1, tmp2, tmp3
1025 IF (
PRESENT(roll))
THEN
1028 cpassert(
PRESENT(rmat))
1034 DO i = 1,
SIZE(colvar%i_atom)
1035 iatom = colvar%i_atom(i)
1036 tmp1 = colvar%dsdr(1:3, i)
1037 tmp3 = colvar_old%dsdr(1:3, i)
1038 tmp2 = matmul(rmat, tmp3)
1039 res = res + dot_product(tmp1, tmp2)*imass(iatom)
1042 DO i = 1,
SIZE(colvar%i_atom)
1043 iatom = colvar%i_atom(i)
1044 tmp1 = colvar%dsdr(1:3, i)
1045 tmp2 = colvar_old%dsdr(1:3, i)
1046 res = res + dot_product(tmp1, tmp2)*imass(iatom)
1050 END FUNCTION eval_jac_colvar
1065 FUNCTION rattle_con_eval(colvar, vel, roll, veps, rmat, particles)
RESULT(res)
1067 REAL(kind=
dp),
INTENT(IN) :: vel(:, :)
1068 LOGICAL,
INTENT(IN),
OPTIONAL :: roll
1069 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN), &
1070 OPTIONAL :: veps, rmat
1072 POINTER :: particles
1073 REAL(kind=
dp) :: res
1075 INTEGER :: iatm, ind
1077 REAL(kind=
dp),
DIMENSION(3) :: f_roll, pos, v_roll
1080 IF (
PRESENT(roll))
THEN
1083 cpassert(
PRESENT(rmat))
1084 cpassert(
PRESENT(veps))
1085 cpassert(
PRESENT(particles))
1089 DO iatm = 1,
SIZE(colvar%i_atom)
1090 ind = colvar%i_atom(iatm)
1092 pos = particles(ind)%r
1093 f_roll = matmul(rmat, colvar%dsdr(:, iatm))
1094 v_roll = vel(:, ind) + matmul(veps, pos)
1096 f_roll = colvar%dsdr(:, iatm)
1097 v_roll = vel(:, ind)
1099 res = res + dot_product(f_roll, v_roll)
1102 END FUNCTION rattle_con_eval
static GRID_HOST_DEVICE double fac(const int i)
Factorial function, e.g. fac(5) = 5! = 120.
Handles all functions related to the CELL.
defines collective variables s({R}) and the derivative of this variable wrt R these can then be used ...
subroutine, public colvar_eval_mol_f(colvar, cell, particles, pos, fixd_list)
evaluates the derivatives (dsdr) given and due to the given colvar variables in a molecular environme...
Initialize the collective variables types.
real(kind=dp) function, public diff_colvar(colvar, b)
subtract b from the ss value of a colvar: general function for handling periodic/non-periodic colvar
Module that handles the COLLECTIVE constraints.
subroutine, public shake_colv_int(molecule, particle_set, pos, vel, dt, ishake, cell, imass, max_sigma)
Intramolecular subroutine shake_colv algorithm for collective variables constraints updates the multi...
subroutine, public shake_roll_colv_int(molecule, particle_set, pos, vel, r_shake, v_shake, dt, ishake, cell, imass, max_sigma)
Intramolecular subroutine shake algorithm (box allowed to change) for collective variables constraint...
subroutine, public shake_update_colv_ext(gci, dt, motion_section)
Intermolecular subroutine for updating the TARGET value for collective constraints.
subroutine, public rattle_roll_colv_ext(gci, particle_set, vel, r_rattle, dt, irattle, veps, cell, imass, max_sigma)
Intermolecular subroutine rattle algorithm (box allowed to change) for collective variables constrain...
subroutine, public shake_update_colv_targets(dt, motion_section)
Real Shake subroutine - Low Level - for updating the TARGET value.
subroutine, public shake_colv_ext(gci, particle_set, pos, vel, dt, ishake, cell, imass, max_sigma)
Intermolecular subroutine shake_colv algorithm for collective variables constraints updates the multi...
subroutine, public rattle_roll_colv_int(molecule, particle_set, vel, r_rattle, dt, irattle, veps, cell, imass, max_sigma)
Intramolecular subroutine rattle algorithm (box allowed to change) for collective variables constrain...
subroutine, public rattle_colv_int(molecule, particle_set, vel, dt, irattle, cell, imass, max_sigma)
Intramolecular subroutine rattle algorithm for collective variables constraints updates the multiplie...
subroutine, public rattle_colv_ext(gci, particle_set, vel, dt, irattle, cell, imass, max_sigma)
Intermolecular subroutine rattle algorithm for collective variables constraints updates the multiplie...
subroutine, public shake_update_colv_int(molecule, dt, motion_section)
Intramolecular subroutine for updating the TARGET value of collective constraints.
subroutine, public shake_update_colv_low(colv_list, dt, motion_section, initialize)
Cache the actual target rate, including a partially clamped interval.
subroutine, public shake_roll_colv_ext(gci, particle_set, pos, vel, r_shake, v_shake, dt, ishake, cell, imass, max_sigma)
Intermolecular subroutine shake algorithm (box allowed to change) for collective variables constraint...
subroutine, public check_colv_int(molecule, particle_set, cell, max_sigma, pos, vel, rmat, veps)
Evaluate position or velocity residuals of local collective variables.
Defines the basic variable types.
integer, parameter, public dp
Define the molecule kind structure types and the corresponding functionality.
subroutine, public get_molecule_kind(molecule_kind, atom_list, bond_list, bend_list, ub_list, impr_list, opbend_list, colv_list, fixd_list, g3x3_list, g4x6_list, vsite_list, torsion_list, shell_list, name, mass, charge, kind_number, natom, nbend, nbond, nub, nimpr, nopbend, nconstraint, nconstraint_fixd, nfixd, ncolv, ng3x3, ng4x6, nvsite, nfixd_restraint, ng3x3_restraint, ng4x6_restraint, nvsite_restraint, nrestraints, nmolecule, nsgf, nshell, ntorsion, molecule_list, nelectron, nelectron_alpha, nelectron_beta, bond_kind_set, bend_kind_set, ub_kind_set, impr_kind_set, opbend_kind_set, torsion_kind_set, molname_generated)
Get informations about a molecule kind.
Define the data structure for the molecule information.
subroutine, public get_molecule(molecule, molecule_kind, lmi, lci, lg3x3, lg4x6, lcolv, first_atom, last_atom, first_shell, last_shell)
Get components from a molecule data set.
Define the data structure for the particle information.
Type defining parameters related to the simulation cell.
parameters for a collective variable