TBTK
Need a break? Support the development by playing Polarity Puzzles
NuclearPotentialOperator.h
1 /* Copyright 2018 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
17 
24 #ifndef COM_DAFER45_TBTK_NUCLEAR_POTENTIAL_OPERATOR
25 #define COM_DAFER45_TBTK_NUCLEAR_POTENTIAL_OPERATOR
26 
27 #include "TBTK/AbstractOperator.h"
28 #include "TBTK/Atom.h"
29 
30 namespace TBTK{
31 
32 class NuclearPotentialOperator : public AbstractOperator{
33 public:
35  NuclearPotentialOperator(
36  const Atom &nucleus,
37  const Vector3d &position
38  );
39 
43  const Atom& getNucleus() const;
44 
48  const Vector3d& getPosition() const;
49 private:
51  Atom nucleus;
52 
54  Vector3d position;
55 };
56 
57 inline NuclearPotentialOperator::NuclearPotentialOperator(
58  const Atom &nucleus,
59  const Vector3d &position
60 ) :
61  AbstractOperator(OperatorID::NuclearPotential),
62  nucleus(nucleus),
63  position(position)
64 {
65 }
66 
67 inline const Atom& NuclearPotentialOperator::getNucleus() const{
68  return nucleus;
69 }
70 
71 inline const Vector3d& NuclearPotentialOperator::getPosition() const{
72  return position;
73 }
74 
75 }; //End of namespace TBTK
76 
77 #endif
78 
Definition: Boolean.h:32
Atom.h.