public function wavevector_squared_from_energy(energy_) result(k_)
returns the squared wavevector, \(k_{a}^{2}\),
given the energy of a given state, \(E_{a}\);
calls etot() function; atomic units in the whole function
\( k_{a} = \sqrt(2 \mu (E_{tot} - E_{a}) \)
since it uses reduced_mass and total_energy(), the function checks
if units are already converted
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
function wavevector_squared_from_energy(energy_)result(k_)!! returns the squared wavevector, \\(k_{a}^{2}\\),!! given the energy of a given state, \\(E_{a}\\);!! calls etot() function; atomic units in the whole function!! \\( k_{a} = \sqrt(2 \mu (E_{tot} - E_{a}) \\)!! since it uses reduced_mass and total_energy(), the function checks!! if units are already converted!---------------------------------------------------------------------!real(dp),intent(in)::energy_!! energy of a given state, \\( E_{a} \\), in a.u.real(dp)::k_!! wavevector, \\(k_{a}\\), in a.u.!---------------------------------------------------------------------!if(units_converted)thenk_=2*reduced_mass*(total_energy()-energy_)else call write_error("wavevector_squared_from_energy called "//&"but units are not converted yet")endif!---------------------------------------------------------------------!end function wavevector_squared_from_energy