⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 patom.h

📁 An object-oriented C++ implementation of Davidson method for finding a few selected extreme eigenpai
💻 H
字号:

#ifndef pAtomH
#define pAtomH


#include "../davidson/defaulttd.h"
#include "../davidson/potentialbase.h"

class PotentialAtom: public PotentialBase
{
    private:

    	//radius of atomic nucleus  and depth
    	ftyp a, V0;

        //returns value of potential Coulomb (1D, 2D, 3D)
        ftyp VCoulomb(const ftyp &) const; //1D
        ftyp VCoulomb(const ftyp &, const ftyp &) const;  //2D
        ftyp VCoulomb(const ftyp &, const ftyp &, const ftyp &) const; //3D

    public:

    	PotentialAtom(const ftyp &, const ftyp &);

        //sets a and V0
        void SetAV0(const ftyp &, const ftyp &);

        //get V0
        ftyp GetV0() const;        //get a        ftyp GetA() 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -