lenjonesmat.h

来自「Finite element program for mechanical pr」· C头文件 代码 · 共 40 行

H
40
字号
#ifndef LENJONESMAT_H#define LENJONESMAT_H#include "iotools.h"#include "alias.h"struct matrix;struct vector;struct atsel;/**   class lenjonesmat defines Lennard-Jones 6-12 interatomic potential      JK, 19.6.2005*/class lenjonesmat{ public:  lenjonesmat (void);  ~lenjonesmat (void);  void read (XFILE *in);  double compute_force (double r);  double equilib_distance ();    double first_derivative (double r);  double second_derivative (double r);    ///  constants of potential  double eps;  double sig;    ///  minimum accaptable distance between atoms  double mindist;  ///  equilibrium distance between two atoms and for given constants of potential  double eqdist;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?