Octopus
propagation_ops_elec_oct_m Module Reference

Data Types

type  propagation_ops_elec_t
 
type  sinvf_operator_t
 Operator S^{-1}F for a local function f(r) and its ultrasoft augmentation, F = f + sum_ij |beta_i> F_ij <beta_j|, with F_ij = \int f(r) Q_ij(r) dr. More...
 

Functions/Subroutines

subroutine, public propagation_ops_elec_update_hamiltonian (namespace, space, st, mesh, hm, ext_partners, time)
 
subroutine, public propagation_ops_elec_move_ions (wo, gr, hm, st, namespace, space, ions_dyn, ions, ext_partners, mc, time, dt, save_pos)
 
subroutine, public propagation_ops_elec_propagate_ions_and_cell (gr, hm, st, namespace, space, ions_dyn, ions, mc, time, dt_ions)
 
subroutine, public propagation_ops_elec_restore_ions (wo, ions_dyn, ions)
 
subroutine, public propagation_ops_elec_propagate_gauge_field (wo, gfield, dt, time, save_gf)
 
subroutine, public propagation_ops_elec_restore_gauge_field (wo, namespace, space, hm, mesh, ext_partners)
 
subroutine, public propagation_ops_elec_exp_apply (te, namespace, st, mesh, hm, dt, op)
 
subroutine, public propagation_ops_elec_fuse_density_exp_apply (te, namespace, st, gr, hm, dt, dt2, op, st_td)
 Apply \( \e^{-i dt H} \) to all states, and accumulate the density in the same pass. More...
 
subroutine, public propagation_ops_do_pack (st, hm, ib, ik, copy)
 
subroutine, public propagation_ops_do_unpack (st, hm, ib, ik)
 
subroutine, public propagation_ops_finish_unpack (st, hm, ib, ik)
 
subroutine, public propagation_ops_elec_interpolate_get (hm, vks_old)
 
subroutine calculate_mxll_dipole_field (hm, mesh, st)
 
subroutine, public propagation_ops_elec_kick_generalized_overlap (namespace, space, gr, st, hm)
 Delta kick with a generalized (ultrasoft) overlap. More...
 
subroutine sinvf_operator_apply (this, psib, hpsib)
 Apply S^{-1}F, F = f + sum_ij |beta_i> F_ij <beta_j|. More...
 

Function/Subroutine Documentation

◆ propagation_ops_elec_update_hamiltonian()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_update_hamiltonian ( type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(states_elec_t), intent(inout)  st,
class(mesh_t), intent(in)  mesh,
type(hamiltonian_elec_t), intent(inout)  hm,
type(partner_list_t), intent(in)  ext_partners,
real(real64), intent(in)  time 
)

Definition at line 170 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_move_ions()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_move_ions ( class(propagation_ops_elec_t), intent(inout)  wo,
type(grid_t), intent(inout)  gr,
type(hamiltonian_elec_t), intent(inout)  hm,
type(states_elec_t), intent(inout)  st,
type(namespace_t), intent(in)  namespace,
type(electron_space_t), intent(in)  space,
type(ion_dynamics_t), intent(inout)  ions_dyn,
type(ions_t), intent(inout)  ions,
type(partner_list_t), intent(in)  ext_partners,
type(multicomm_t), intent(inout)  mc,
real(real64), intent(in)  time,
real(real64), intent(in)  dt,
logical, intent(in), optional  save_pos 
)
Parameters
[in,out]mcindex and domain communicators

Definition at line 195 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_propagate_ions_and_cell()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_propagate_ions_and_cell ( type(grid_t), intent(inout)  gr,
type(hamiltonian_elec_t), intent(inout)  hm,
type(states_elec_t), intent(inout)  st,
type(namespace_t), intent(in)  namespace,
type(electron_space_t), intent(in)  space,
type(ion_dynamics_t), intent(inout)  ions_dyn,
type(ions_t), intent(inout)  ions,
type(multicomm_t), intent(inout)  mc,
real(real64), intent(in)  time,
real(real64), intent(in)  dt_ions 
)
Parameters
[in,out]mcindex and domain communicators

Definition at line 236 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_restore_ions()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_restore_ions ( class(propagation_ops_elec_t), intent(inout)  wo,
type(ion_dynamics_t), intent(inout)  ions_dyn,
type(ions_t), intent(inout)  ions 
)

Definition at line 264 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_propagate_gauge_field()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_propagate_gauge_field ( class(propagation_ops_elec_t), intent(inout)  wo,
type(gauge_field_t), intent(inout)  gfield,
real(real64), intent(in)  dt,
real(real64), intent(in)  time,
logical, intent(in), optional  save_gf 
)

Definition at line 284 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_restore_gauge_field()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_restore_gauge_field ( class(propagation_ops_elec_t), intent(inout)  wo,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(hamiltonian_elec_t), intent(inout)  hm,
class(mesh_t), intent(in)  mesh,
type(partner_list_t), intent(in)  ext_partners 
)

Definition at line 312 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_exp_apply()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_exp_apply ( type(exponential_t), intent(inout)  te,
type(namespace_t), intent(in)  namespace,
type(states_elec_t), intent(inout)  st,
class(mesh_t), intent(in)  mesh,
type(hamiltonian_elec_t), intent(inout)  hm,
real(real64), intent(in)  dt,
class(operator_t), intent(in), optional, target  op 
)
Parameters
[in]opoperator to be applied in the exponential

Definition at line 341 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_fuse_density_exp_apply()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_fuse_density_exp_apply ( type(exponential_t), intent(inout)  te,
type(namespace_t), intent(in)  namespace,
type(states_elec_t), intent(inout)  st,
type(grid_t), intent(in)  gr,
type(hamiltonian_elec_t), intent(inout)  hm,
real(real64), intent(in)  dt,
real(real64), intent(in), optional  dt2,
class(operator_t), intent(in), optional, target  op,
type(states_elec_t), intent(inout), optional, target  st_td 
)

Apply \( \e^{-i dt H} \) to all states, and accumulate the density in the same pass.

With dt only, the states are propagated a half time-step: stpsib <- exp(-i dt H) stpsib. The density of stpsib is written to strho.

With dt and dt2, the states are simultaneously propagated half and full time-steps: stpsib <- exp(-i dt H) stpsib. zpsib_dt <- exp(-i dt2 H) stpsib

If st_td is present, zpsib_dt points to st_tdpsib, so the dt2-propagated states are also returned. Otherwise zpsib_dt is a local buffer that is discarded.

If dt2 is passed, the density is always computed for the full time step. If st_td is present, the density is returned in st_tdrho, otherwise it is returned in strho.

Parameters
[in]opoperator to be applied in the exponential
[in,out]st_tdOptional full-time states, required for the

Definition at line 416 of file propagation_ops_elec.F90.

◆ propagation_ops_do_pack()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_do_pack ( type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(inout)  hm,
integer, intent(in)  ib,
integer, intent(in)  ik,
logical, intent(in), optional  copy 
)

Definition at line 548 of file propagation_ops_elec.F90.

◆ propagation_ops_do_unpack()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_do_unpack ( type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(inout)  hm,
integer, intent(in)  ib,
integer, intent(in)  ik 
)

Definition at line 571 of file propagation_ops_elec.F90.

◆ propagation_ops_finish_unpack()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_finish_unpack ( type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(inout)  hm,
integer, intent(in)  ib,
integer, intent(in)  ik 
)

Definition at line 587 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_interpolate_get()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_interpolate_get ( type(hamiltonian_elec_t), intent(inout)  hm,
type(potential_interpolation_t), intent(inout)  vks_old 
)

Definition at line 603 of file propagation_ops_elec.F90.

◆ calculate_mxll_dipole_field()

subroutine propagation_ops_elec_oct_m::calculate_mxll_dipole_field ( type(hamiltonian_elec_t), intent(inout), target  hm,
class(mesh_t), intent(in)  mesh,
type(states_elec_t), intent(in)  st 
)
private

Definition at line 616 of file propagation_ops_elec.F90.

◆ propagation_ops_elec_kick_generalized_overlap()

subroutine, public propagation_ops_elec_oct_m::propagation_ops_elec_kick_generalized_overlap ( type(namespace_t), intent(in), target  namespace,
class(space_t), intent(in)  space,
type(grid_t), intent(in), target  gr,
type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(inout), target  hm 
)

Delta kick with a generalized (ultrasoft) overlap.

The kick potential -k f(r) delta(t) enters i S dpsi/dt = (H - k delta(t) F) psi together with its augmentation part, F = f + sum_ij |beta_i> F_ij <beta_j| with F_ij = \int f Q_ij, so that psi(0+) = exp(i k S^{-1}F) psi(0-). S^{-1}F is self-adjoint in the S inner product, hence the kick conserves <psi|S|psi>, and F is the operator measured by the multipoles of the augmented density. The plain exp(i k f) psi of kick_apply does neither.

Definition at line 688 of file propagation_ops_elec.F90.

◆ sinvf_operator_apply()

subroutine propagation_ops_elec_oct_m::sinvf_operator_apply ( class(sinvf_operator_t), intent(in)  this,
class(batch_t), intent(inout)  psib,
class(batch_t), intent(inout)  hpsib 
)
private

Apply S^{-1}F, F = f + sum_ij |beta_i> F_ij <beta_j|.

Definition at line 777 of file propagation_ops_elec.F90.