phk.h
来自「An object-oriented C++ implementation of」· C头文件 代码 · 共 48 行
H
48 行
#ifndef pHKH
#define pHKH
#include "../davidson/defaulttd.h"
#include "../davidson/potentialbase.h"
class PotentialHK: public PotentialBase
{
private:
//width and depth
ftyp a, V0;
//electric-field amplitude and frequency
ftyp e0, w;
public:
PotentialHK(const ftyp &, const ftyp &, const ftyp &,
const ftyp &);
//sets electric-field amplitude and frequency
void SetE0W(const ftyp &, const ftyp &);
//sets a and V0
void SetAV0(const ftyp &, const ftyp &);
//get V0
ftyp GetV0() const; //get a ftyp GetA() const;
//get electric-field amplitude
ftyp GetE0() const;
//get frequency
ftyp GetW() const;
//returns V(x)
ftyp operator()(const ftyp &) const;
//returns V(x,y)
ftyp operator()(const ftyp &, const ftyp &) const;
//returns V(x,y,z)
ftyp operator()(const ftyp &, const ftyp &, const ftyp &) const;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?