20#include "./base/base_uses.f90"
24 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'fist_efield_types'
28 LOGICAL :: apply_field = .false.
29 LOGICAL :: displacement = .false.
30 REAL(kind=
dp) :: strength = 0.0_dp
31 REAL(kind=
dp),
DIMENSION(3) :: polarisation = 0.0_dp
32 REAL(kind=
dp),
DIMENSION(3) :: dfilter = 0.0_dp
56 TYPE(
cell_type),
OPTIONAL,
POINTER :: cell
58 REAL(kind=
dp),
DIMENSION(:),
POINTER :: pp
61 IF (.NOT.
ASSOCIATED(efield))
ALLOCATE (efield)
66 IF (efield%apply_field)
THEN
68 efield%polarisation(1:3) = pp(1:3)
69 IF (
PRESENT(cell))
THEN
73 efield%dfilter(1:3) = pp(1:3)
74 IF (
PRESENT(cell))
THEN
Handles all functions related to the CELL.
subroutine, public cell_transform_input_cartesian(cell, vector)
Transform a Cartesian real-space vector from the user input cell frame into CP2K's canonical internal...
subroutine, public read_efield_section(input_section, efield, cell)
Read input section PERIODIC_EFIELD.
Defines the basic variable types.
integer, parameter, public dp
Type defining parameters related to the simulation cell.