~esys-p-dev/esys-particle/gengeo

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
/////////////////////////////////////////////////////////////
//                                                         //
// Copyright (c) 2007-2014 by The University of Queensland //
// Centre for Geoscience Computing                         //
// http://earth.uq.edu.au/centre-geoscience-computing      //
//                                                         //
// Primary Business: Brisbane, Queensland, Australia       //
// Licensed under the Open Software License version 3.0    //
// http://www.opensource.org/licenses/osl-3.0.php          //
//                                                         //
/////////////////////////////////////////////////////////////

#ifndef __HGRAINGENERATOR2D_H
#define __HGRAINGENERATOR2D_H

// --- Project includes ---
#include "AVolume2D.h"
#include "MNTable2D.h"
#include "AGenerator2D.h"

/*!
  \class HGrainGenerator2D

  class the generate hexagonal grains on a regular base lattice
*/
class HGrainGenerator2D : public AGenerator2D
{
 protected:
  double m_rad;

 public:
  HGrainGenerator2D();
  HGrainGenerator2D(double);
  virtual ~HGrainGenerator2D();

  virtual void generatePacking (AVolume2D*,MNTable2D*,int,int);

  friend ostream& operator << (ostream&,const HGrainGenerator2D&);
};


#endif // __HGRAINGENERATOR2D_H