JDFTx  1.2.0
CoulombPeriodic.h
1 /*-------------------------------------------------------------------
2 Copyright 2012 Ravishankar Sundararaman
3 
4 This file is part of JDFTx.
5 
6 JDFTx is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 JDFTx is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with JDFTx. If not, see <http://www.gnu.org/licenses/>.
18 -------------------------------------------------------------------*/
19 
20 #ifndef JDFTX_CORE_COULOMBPERIODIC_H
21 #define JDFTX_CORE_COULOMBPERIODIC_H
22 
23 #include <core/Coulomb.h>
24 
26 class CoulombPeriodic : public Coulomb
27 {
28 public:
29  CoulombPeriodic(const GridInfo& gInfoOrig, const CoulombParams& params);
30 protected:
32  std::shared_ptr<Ewald> createEwald(matrix3<> R, size_t nAtoms) const;
33 };
34 
35 #endif // JDFTX_CORE_COULOMBPERIODIC_H
Simulation grid descriptor.
Definition: GridInfo.h:45
ScalarFieldTilde apply(ScalarFieldTilde &&) const
std::shared_ptr< ScalarFieldTildeData > ScalarFieldTilde
A smart reference-counting pointer to ScalarFieldTildeData.
Definition: ScalarField.h:45
Definition: Coulomb.h:29
Abstract base class for the (optionally truncated) Coulomb interaction.
Definition: Coulomb.h:101
std::shared_ptr< Ewald > createEwald(matrix3<> R, size_t nAtoms) const
Untruncated Coulomb interaction.
Definition: CoulombPeriodic.h:26