|
2 | 2 | /*
|
3 | 3 | * PCMSolver, an API for the Polarizable Continuum Model
|
4 | 4 | * Copyright (C) 2013-2015 Roberto Di Remigio, Luca Frediani and contributors
|
5 |
| - * |
| 5 | + * |
6 | 6 | * This file is part of PCMSolver.
|
7 |
| - * |
| 7 | + * |
8 | 8 | * PCMSolver is free software: you can redistribute it and/or modify
|
9 | 9 | * it under the terms of the GNU Lesser General Public License as published by
|
10 | 10 | * the Free Software Foundation, either version 3 of the License, or
|
11 | 11 | * (at your option) any later version.
|
12 |
| - * |
| 12 | + * |
13 | 13 | * PCMSolver is distributed in the hope that it will be useful,
|
14 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 | 16 | * GNU Lesser General Public License for more details.
|
17 |
| - * |
| 17 | + * |
18 | 18 | * You should have received a copy of the GNU Lesser General Public License
|
19 | 19 | * along with PCMSolver. If not, see <http://www.gnu.org/licenses/>.
|
20 |
| - * |
| 20 | + * |
21 | 21 | * For information on the complete list of contributors to the
|
22 | 22 | * PCMSolver API, see: <http://pcmsolver.readthedocs.org/>
|
23 | 23 | */
|
|
33 | 33 | #include "Config.hpp"
|
34 | 34 |
|
35 | 35 | /*! \file Solvent.hpp
|
36 |
| - * \class Solvent |
37 |
| - * \brief Class describing a solvent. |
| 36 | + * \struct Solvent |
| 37 | + * \brief POD describing a solvent. |
38 | 38 | * \author Roberto Di Remigio
|
39 |
| - * \date 2011 |
| 39 | + * \date 2011, 2016 |
40 | 40 | *
|
41 | 41 | * A Solvent object contains all the solvent-related experimental data
|
42 | 42 | * needed to set up the Green's functions and the non-electrostatic
|
43 | 43 | * terms calculations.
|
44 | 44 | */
|
45 | 45 |
|
46 |
| -class Solvent |
| 46 | +struct Solvent |
47 | 47 | {
|
48 |
| -public: |
49 |
| - /*! \brief typedef for the map between solvent name and Solvent object. |
50 |
| - */ |
51 |
| - typedef std::map<std::string, Solvent> SolventMap; |
| 48 | + Solvent() {} |
| 49 | + Solvent(const std::string & n, double es, double ed, double r) |
| 50 | + : name(n), epsStatic(es), epsDynamic(ed), probeRadius(r) {} |
| 51 | + /*! Solvent name */ |
| 52 | + std::string name; |
| 53 | + /*! Static permittivity, in AU*/ |
| 54 | + double epsStatic; |
| 55 | + /*! Optical permittivity, in AU */ |
| 56 | + double epsDynamic; |
| 57 | + /*! Radius of the spherical probe mimicking the solvent, in Angstrom */ |
| 58 | + double probeRadius; |
| 59 | + friend std::ostream & operator<<(std::ostream & os, Solvent & solvent); |
| 60 | +}; |
52 | 61 |
|
53 |
| - Solvent() {} |
54 |
| - Solvent(const std::string & name, double epsStatic, double epsDynamic, |
55 |
| - double radius ) |
56 |
| - : name_(name), epsStatic_(epsStatic), epsDynamic_(epsDynamic), |
57 |
| - probeRadius_(radius) {} |
58 |
| - ~Solvent() {} |
59 | 62 |
|
60 |
| - std::string name() const { return name_; } |
61 |
| - double epsStatic() const { return epsStatic_; } |
62 |
| - double epsDynamic() const { return epsDynamic_; } |
63 |
| - // The built-in probe radii are in Angstrom |
64 |
| - double probeRadius() const { return probeRadius_; } |
65 |
| - void probeRadius(double radius) { probeRadius_ = radius; } |
| 63 | +/*! \brief typedef for the map between solvent name and Solvent object. */ |
| 64 | +typedef std::map<std::string, Solvent> SolventMap; |
66 | 65 |
|
67 |
| - /*! \brief Returns the map between solvent names and Solvent objects. |
68 |
| - * |
69 |
| - * This map contains solvent data taken from the DALTON2011 internal |
70 |
| - * implementation of the Polarizable Continuum Model. |
71 |
| - */ |
72 |
| - static SolventMap & initSolventMap(); |
73 |
| - friend std::ostream & operator<<(std::ostream & os, Solvent & solvent) { |
74 |
| - return solvent.printSolvent(os); |
75 |
| - } |
76 |
| -private: |
77 |
| - std::string name_; |
78 |
| - double epsStatic_; |
79 |
| - double epsDynamic_; |
80 |
| - double probeRadius_; |
81 |
| - std::ostream & printSolvent(std::ostream & os); |
82 |
| -}; |
| 66 | +/*! \brief Returns the map between solvent names and Solvent objects. |
| 67 | + * |
| 68 | + * This map contains solvent data taken from the DALTON2011 internal |
| 69 | + * implementation of the Polarizable Continuum Model. |
| 70 | + */ |
| 71 | +SolventMap & solvents(); |
83 | 72 |
|
84 | 73 | #endif // SOLVENT_HPP
|
0 commit comments