MPQC  3.0.0-alpha
solvent.h
1 //
2 // solvent.h
3 //
4 // Copyright (C) 1997 Limit Point Systems, Inc.
5 //
6 // Author: Curtis Janssen <cljanss@limitpt.com>
7 // Maintainer: LPS
8 //
9 // This file is part of the SC Toolkit.
10 //
11 // The SC Toolkit is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU Library General Public License as published by
13 // the Free Software Foundation; either version 2, or (at your option)
14 // any later version.
15 //
16 // The SC Toolkit is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU Library General Public License for more details.
20 //
21 // You should have received a copy of the GNU Library General Public License
22 // along with the SC Toolkit; see the file COPYING.LIB. If not, write to
23 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 //
25 // The U.S. Government is granted a limited license as per AL 91-7.
26 //
27 
28 #ifndef _chemistry_qc_wfn_solvent_h
29 #define _chemistry_qc_wfn_solvent_h
30 
31 #include <chemistry/solvent/bem.h>
32 #include <chemistry/qc/wfn/wfn.h>
33 #include <chemistry/qc/wfn/accum.h>
34 
35 namespace sc {
36 
45 class BEMSolventH: public AccumH {
46  private:
47  double gamma_;
48  int onebody_;
49  int normalize_q_;
50  int separate_surf_charges_;
51  int y_equals_j_;
52  int integrate_nelectron_;
53 
54  Ref<Wavefunction> wfn_;
55  Ref<BEMSolvent> solvent_;
56 
57  double **charge_positions_;
58  double **normals_;
59  double *efield_dot_normals_;
60  double *charges_;
61  double *charges_n_;
62  double enucsurf_;
63  double eelecsurf_;
64  double esurfsurf_;
65  double escalar_;
66  double ecavitation_;
67  double edisprep_;
68 
69  public:
71  BEMSolventH(const Ref<KeyVal>&);
72  virtual ~BEMSolventH();
73 
75 
76  void init(const Ref<Wavefunction>&);
77  void accum(const RefSymmSCMatrix& h);
78  void done();
79  void print_summary();
80 
81  double e();
82 };
83 
84 }
85 
86 #endif
87 
88 // Local Variables:
89 // mode: c++
90 // c-file-style: "CLJ"
91 // End:
sc::BEMSolventH::e
double e()
Returns the scalar contribution to the energy.
sc::BEMSolventH::save_data_state
void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
sc::BEMSolventH::done
void done()
Should be called after we are finished with this AccumH.
sc::RefSymmSCMatrix
The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization.
Definition: matrix.h:265
sc::Ref
A template class that maintains references counts.
Definition: ref.h:361
sc::BEMSolventH::print_summary
void print_summary()
Print information about the contribution.
sc::BEMSolventH::accum
void accum(const RefSymmSCMatrix &h)
Sum the contribution from this object into h.
sc::BEMSolventH
This specialization of AccumH computes the contribution to the energy and one body Hamiltonian from a...
Definition: solvent.h:45
sc::StateIn
Definition: statein.h:79
sc::BEMSolventH::init
void init(const Ref< Wavefunction > &)
Sets the current Wavefunction.
sc::AccumH
AccumH computes additions to the one body Hamiltonian.
Definition: accum.h:41
sc::StateOut
Definition: stateout.h:71
sc
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14

Generated at Sun Jan 26 2020 23:23:57 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.