ConfinementPotential.h 1.39 KB
Newer Older
1 2
////////////////////////////////////////////////////////////////////////////////
//
Francois Gygi committed
3 4 5 6
// Copyright (c) 2008 The Regents of the University of California
//
// This file is part of Qbox
//
Francois Gygi committed
7 8
// Qbox is distributed under the terms of the GNU General Public License
// as published by the Free Software Foundation, either version 2 of
Francois Gygi committed
9 10 11 12 13 14
// the License, or (at your option) any later version.
// See the file COPYING in the root directory of this distribution
// or <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
//
15 16 17 18 19 20 21 22
// ConfinementPotential.h
//
////////////////////////////////////////////////////////////////////////////////

#ifndef CONFINEMENTPOTENTIAL_H
#define CONFINEMENTPOTENTIAL_H

#include <valarray>
23
class Basis;
24 25 26 27

class ConfinementPotential
{
  private:
28

29 30
  double ecuts_, facs_, sigmas_;
  const Basis& basis_;
31
  std::valarray<double> fstress_, dfstress_;
32 33

  public:
34

35 36 37
  double facs(void) const { return facs_; }
  double sigmas(void) const { return sigmas_; }
  double ecuts(void) const { return ecuts_; }
38

39 40
  const std::valarray<double>& fstress(void) const { return fstress_; }
  const std::valarray<double>& dfstress(void) const { return dfstress_; }
41

42
  void update(void);
43

44 45
  const Basis& basis() const { return basis_; }

46
  ConfinementPotential(double ecuts, double facs, double sigmas,
47
    const Basis& basis);
Francois Gygi committed
48
  ~ConfinementPotential() {}
49 50
};
#endif