forked from srtee/lammps-USER-CONP2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pppm_conp.h
81 lines (65 loc) · 2.08 KB
/
pppm_conp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, [email protected]
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------
Version: Mar/2021
Shern Ren Tee (UQ AIBN), [email protected]
------------------------------------------------------------------------- */
#ifdef KSPACE_CLASS
KSpaceStyle(pppm/conp,PPPMCONP)
#else
#ifndef LMP_PPPM_CONP_H
#define LMP_PPPM_CONP_H
#include "pppm.h"
#include "kspacemodule.h"
namespace LAMMPS_NS {
class PPPMCONP : public PPPM, public KSpaceModule {
public:
PPPMCONP(class LAMMPS *);
~PPPMCONP();
void conp_setup(bool inflag) {lowmemflag = inflag;}
void conp_post_neighbor(bool, bool);
void a_cal(double*);
void a_read();
void b_cal(double*);
void conp_pre_force() {elyte_mapped = false;}
void update_charge() {ele_make_rho();}
double compute_particle_potential(int);
void compute_group_potential(int, double*);
double return_qsum(){return qsum;};
protected:
void aaa_map_rho();
void elyte_map_rho_pois();
void setup_allocate();
void ele_allocate(int);
void elyte_allocate(int);
void setup_deallocate();
void ele_deallocate();
void elyte_deallocate();
class KSpaceModule* my_ewald;
bool first_postneighbor;
bool first_bcal;
bool reuseflag;
void elyte_particle_map();
void elyte_make_rho();
void elyte_poisson();
FFT_SCALAR ***ele2rho;
FFT_SCALAR ***elyte_density_brick;
FFT_SCALAR ***ele_density_brick;
int jmax;
int* j2i;
bool elyte_mapped;
void ele_make_rho();
void particle_map();
void make_rho();
};
}
#endif
#endif