/* * element.hpp * * Created on: Aug 3, 2009 * Author: heber */ #ifndef ELEMENT_HPP_ #define ELEMENT_HPP_ /*********************************************** includes ***********************************/ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include #include "defs.hpp" #include "types.hpp" /********************************************** declarations *******************************/ /** Chemical element. * Class incorporates data for a certain chemical element to be referenced from atom class. */ class element { enum {strfield_length=7}; public: double mass; //!< mass in g/mol double CovalentRadius; //!< covalent radius double VanDerWaalsRadius; //!< can-der-Waals radius int Z; //!< atomic number char period[strfield_length+1]; //!< period: n quantum number char group[strfield_length+1]; //!< group: l quantum number char block[strfield_length+1]; //!< block: l quantum number double Valence; //!< number of valence electrons for this element int NoValenceOrbitals; //!< number of valence orbitals, used for determining bond degree in molecule::CreateConnectmatrix() double HBondDistance[NDIM]; //!< distance in Angstrom of this element to hydrogen (for single, double and triple bonds) double HBondAngle[NDIM]; //!< typical angle for one, two, three bonded hydrogen (in degrees) element(); element(const element&); ~element(); element &operator=(const element&); // accessor functions atomicNumber_t getNumber() const; std::string &getSymbol(); const std::string &getSymbol() const; std::string &getName(); const std::string &getName() const; //> print element entries to screen bool Output(std::ostream * const out) const; bool Checkout(std::ostream * const out, const int No, const int NoOfAtoms) const; private: std::string name; //!< atom name, i.e. "Hydrogren" std::string symbol; //!< short form of the atom, i.e. "H" }; std::ostream &operator<<(std::ostream&,const element&); #endif /* ELEMENT_HPP_ */