Debian Codegraph @

src/CircMNTable3D.h

raw
1 /////////////////////////////////////////////////////////////
2 // //
3 // Copyright (c) 2007-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
11 /////////////////////////////////////////////////////////////
12
13 #ifndef __CIRCMNTABLE3D_H
14 #define __CIRCMNTABLE3D_H
15
16 // --- Project includes ---
17 #include "MNTable3D.h"
18
19 /*!
20 \class CircMNTable3D
21 \brief circular Multi-group Neighbour table
22
23 Neighbour table supporting multiple tagged groups of particles and circular boundary
24 conditions (x only at the moment)
25 */
26 class CircMNTable3D : public MNTable3D
27 {
28 protected:
29 Vector3 m_shift_x;
30
31 virtual void set_x_circ();
32 virtual int getIndex(const Vector3&) const;
33 int getXIndex(const Vector3&) const;
34 int getYIndex(const Vector3&) const;
35 int getZIndex(const Vector3&) const;
36 int getFullIndex(const Vector3&) const;
37
38
39 public:
40 CircMNTable3D();
41 CircMNTable3D(const Vector3&,const Vector3&,double,unsigned int);
42 ~CircMNTable3D();
43
44 virtual bool insert(const Sphere&,unsigned int);
45 virtual bool checkInsertable(const Sphere&,unsigned int);
46 virtual bool insertChecked(const Sphere&,unsigned int,double=s_small_value);
47 virtual void generateBonds(int,double,int);
48 virtual void generateClusterBonds(int,double,int,int);
49 };
50
51 #endif // __CIRCMNTABLE3D_H