Massive.h
00001 #ifndef gridripper_phys_scalar_Massive_h
00002 #define gridripper_phys_scalar_Massive_h
00003
00004 #include "ScalarPotential.h"
00005 #include <gridripper/lang/IllegalArgumentException.h>
00006
00007 namespace gridripper {
00008
00009 class Parameters;
00010
00011 namespace phys { namespace scalar {
00012
00013 using namespace std;
00014
00022 class Massive: public ScalarPotential
00023 {
00024 private:
00025 GReal_t massSq;
00026
00027 public:
00033 Massive(const string& str, const Parameters& p)
00034 throw(IllegalArgumentException&);
00035
00040 Massive(GReal_t m) {
00041 massSq = m*m;
00042 }
00043
00050 GReal_t eval_V(GReal_t psi, GReal_t T) {
00051 return 0.5*massSq*psi*psi;
00052 }
00053
00060 GReal_t eval_dVdpsi(GReal_t psi, GReal_t T) {
00061 return massSq*psi;
00062 }
00063 };
00064
00065 } } }
00066
00067 #endif