| 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 __CIRCMNTABLEXY2D_H |
| 14 |
#define __CIRCMNTABLEXY2D_H |
| 15 |
|
| 16 |
// --- Project includes --- |
| 17 |
#include "CircMNTable2D.h" |
| 18 |
|
| 19 |
/*! |
| 20 |
\class CircMNTableXY2D |
| 21 |
\brief circular 2D Multi-group Neighbour table |
| 22 |
|
| 23 |
Neighbour table supporting multiple tagged groups of particles and circular boundary |
| 24 |
conditions in both x- and y- direction |
| 25 |
*/ |
| 26 |
class CircMNTableXY2D : public CircMNTable2D |
| 27 |
{ |
| 28 |
protected: |
| 29 |
Vector3 m_shift_vec_y; |
| 30 |
|
| 31 |
virtual void set_y_circ(); |
| 32 |
virtual int getIndex(const Vector3&) const; |
| 33 |
|
| 34 |
public: |
| 35 |
CircMNTableXY2D(); |
| 36 |
CircMNTableXY2D(const Vector3&,const Vector3&,double,unsigned int); |
| 37 |
virtual ~CircMNTableXY2D(); |
| 38 |
|
| 39 |
virtual bool insert(const Sphere&,unsigned int); |
| 40 |
virtual bool insertChecked(const Sphere&,unsigned int,double tol=s_small_value); |
| 41 |
virtual bool checkInsertable(const Sphere&,unsigned int); |
| 42 |
virtual void generateBonds(int,double,int); |
| 43 |
|
| 44 |
// output |
| 45 |
friend ostream& operator << (ostream&,const CircMNTableXY2D&); |
| 46 |
}; |
| 47 |
|
| 48 |
#endif // __CIRCMNTABLEXY2D_H |