source: molecuilder/src/defs.hpp@ 01e6c5

Last change on this file since 01e6c5 was 3b470f, checked in by Frederik Heber <heber@…>, 16 years ago

Merge branch 'Thermostat'

Conflicts:

.gitignore
Makefile.am
molecuilder/src/analyzer.cpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/molecules.cpp
molecuilder/src/molecules.hpp

  • config::SaveMPQC() has different call parameters
  • analyzer and joiner had conflicts due to Chi and ChiPAS values
  • molecule::VerletForceIntegration() is slightly different too, but Thermostat supposedly is old version
  • Property mode set to 100755
File size: 4.9 KB
Line 
1/** \file defs.hpp
2 *
3 * Constant definitons and enumerations.
4 *
5 */
6
7#ifndef DEFS_HPP_
8#define DEFS_HPP_
9
10using namespace std;
11
12#define MYEPSILON 1e-13 //!< machine epsilon precision
13#define NDIM 3 //!< number of spatial dimensions
14#define MAX_ELEMENTS 128 //!< maximum number of elements for certain lookup tables
15#define AtomicLengthToAngstroem 0.52917721 //!< conversion factor from atomic length/bohrradius to angstroem
16#define BONDTHRESHOLD 0.5 //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii
17#define AtomicEnergyToKelvin 315774.67 //!< conversion factor from atomic energy to kelvin via boltzmann factor
18#define KelvinToAtomicTemperature 3.1668152e-06 //!< conversion factor for Kelvin to atomic temperature (Hartree over k_B)
19#define KelvinToeV 8.6173422e-05 //!< conversion factor for Kelvin to Ht (k_B * T = energy), thus Boltzmann constant in eV/K
20#define AtomicMassUnitsToeV 931494088. //!< conversion factor for atomic weight in units to mass in eV
21#define AtomicMassUnitsToHt 34480864. //!< conversion factor for atomic weight in units to mass in Ht (protonmass/electronmass * electron_mass_in_Ht
22#define ElectronMass_Ht 18778.865 //!< electron mass in Ht
23#define ElectronMass_eV 510998.903 //!< electron mass in eV
24#define Units2Electronmass (AtomicMassUnitsToeV/ElectronMass_eV) //!< atomic mass unit in eV/ electron mass in eV = 1 822.88863
25#define Atomictime2Femtoseconds 0.024188843 //!< Atomictime in fs
26
27#define VERSIONSTRING "v1.0"
28
29#define LocalPath "./"
30
31//enum BondOrderScheme { NoScheme, BottomUp, TopDown, ANOVA, Combined }; //!< Fragmentation scheme used in BOSS
32
33enum EdgeType { Undetermined, TreeEdge, BackEdge }; //!< edge type in a graph after Depth-First-Search analysis.
34
35enum Shading { white, lightgray, darkgray, black }; //!< color in Breadth-First-Search analysis
36
37//enum CutCyclicBond { KeepBond, SaturateBond }; //!< Saturation scheme either atom- or bondwise
38
39// Specifting whether a value in the parameter file must be specified or is optional
40enum necessity { optional, //!< parameter is optional, if not given sensible value is chosen
41 critical //!< parameter must be given or programme won't initiate
42 };
43
44// Specifying the status of the on command line given config file
45enum ConfigStatus { absent, empty, present };
46
47// Specifying the cast type to be read of a parameter, see ParseForParameter()
48enum value_type { string_type, double_type, int_type, row_int, row_double, grid, lower_trigrid, upper_trigrid};
49
50// maximum length of any char array
51#define MAXSTRINGSIZE 255
52
53// various standard filenames
54#define DEFAULTCONFIG "main_pcp_linux" //!< default filename of config file
55#define CONVEXENVELOPE "ConvexEnvelope.dat" //!< default filename of convex envelope tecplot data file
56#define KEYSETFILE "KeySets.dat" //!< default filename of BOSSANOVA key sets file
57#define ADJACENCYFILE "Adjacency.dat" //!< default filename of BOSSANOVA adjacancy file
58#define TEFACTORSFILE "TE-Factors.dat" //!< default filename of BOSSANOVA total energy factors file
59#define FORCESFILE "Forces-Factors.dat" //!< default filename of BOSSANOVA force factors file
60#define HCORRECTIONSUFFIX "Hcorrection.dat" //!< default filename of BOSSANOVA H correction file (unwanted saturation interaction)
61#define FITCONSTANTSUFFIX "FitConstant.dat" //!< suffix of default filename of BOSSANOVA fit constants file (unwanted saturation interaction)
62#define SHIELDINGSUFFIX "sigma_all.csv" //!< default filename of BOSSANOVA shieldings file
63#define SHIELDINGPASSUFFIX "sigma_all_PAS.csv" //!< default filename of BOSSANOVA shieldings PAS file
64#define ORDERATSITEFILE "OrderAtSite.dat" //!< default filename of BOSSANOVA Bond Order at each atom file
65#define ENERGYPERFRAGMENT "EnergyPerFragment" //!< default filename of BOSSANOVA Energy contribution Per Fragment file
66#define FRAGMENTPREFIX "BondFragment" //!< default filename prefix of BOSSANOVA fragment config and directories
67#define STANDARDCONFIG "unknown.conf" //!< default filename of standard config file
68#define STANDARDELEMENTSDB "elements.db" //!< default filename of elements data base with masses, Z, VanDerWaals radii, ...
69#define STANDARDVALENCEDB "valence.db" //!< default filename of valence number per element database
70#define STANDARDORBITALDB "orbitals.db" //!< default filename of orbitals per element database
71#define STANDARDHBONDDISTANCEDB "Hbonddistance.db" //!< default filename of typial bond distance to hydrogen database
72#define STANDARDHBONDANGLEDB "Hbondangle.db" //!< default filename of typial bond angle to hydrogen database
73
74// some values
75#define SOLVENTDENSITY_A 0.6022142
76#define SOLVENTDENSITY_a0 0.089238936
77
78
79#define UPDATECOUNT 10 //!< update ten sites per BOSSANOVA interval
80
81#endif /*DEFS_HPP_*/
Note: See TracBrowser for help on using the repository browser.