Sourcefiles/helperfunctions.cpp
/**
 * @fn double calculateCurrentTemperaturEV(Atoms &atoms)
 * @brief calculates the Temperatur, when the energy is given in eV
 * @param atoms
 * @return
 */
@fn double calculateCurrentTemperaturEV(Atoms &atoms)
@brief calculates the Temperatur, when the energy is given in eV
@param atoms
@return
@fn double calculateCurrentTemperaturEV ( Atoms &atoms ) @brief calculates the Temperatur when the energy is given in eV @param atoms @return
double calculateCurrentTemperaturEV(Atoms &atoms) {
    double totalKineticEnergy = calculateKineticEnergy(atoms);
    double temperatur = 2./3. * (totalKineticEnergy/boltzmannElectronVolt) /atoms.nb_atoms();
    if(temperatur == 0) {
        temperatur = 1e-5; 
    }
    return temperatur;
}
double calculateCurrentTemperaturEV ( Atoms & atoms ) { double totalKineticEnergy = calculateKineticEnergy ( atoms ) ; double temperatur = 2. / 3. * ( totalKineticEnergy / boltzmannElectronVolt ) / atoms . nb_atoms ( ) ; if ( temperatur == 0 ) { temperatur = 1e-5 ; } return temperatur ; }
@fn double calculateCurrentTemperaturEV(Atoms &atoms)
 @brief calculates the Temperatur, when the energy is given in eV
 @param atoms
 @return
@fn double calculateCurrentTemperaturEV ( Atoms &atoms ) @brief calculates the Temperatur when the energy is given in eV @param atoms @return
//set it to a minimal temperatur so it does not crash