ESyS-Particle  2.3.4
RandomAssembly2D.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-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 // //
12 
13 #ifndef __RANDOMASSEMBLY2D_H
14 #define __RANDOMASSEMBLY2D_H
15 
16 //-- project includes --
20 #include "Geometry/Sphere2d.h"
21 #include "Geometry/Line.h"
22 
23 //-- STL includes --
24 #include <vector>
25 
26 using std::vector;
27 
37 {
38  protected:
39  vector<Line> Borders;
40  double m_rmin,m_rmax;
42  bool m_circ_x;
43 
44 
45  virtual Vec3 getAPoint()=0;
46 
47  bool isInSpace(const Vec3&);
48  bool findAFit(SimpleParticle&, const vector<SimpleParticle>&, const Line&);
49  bool findAFit(SimpleParticle&, const vector<SimpleParticle>&);
50  virtual bool checkAFit(const SimpleParticle&);
51  virtual Line *getClosestPlane(const SimpleParticle&);
52  void fillSpace(int);
53  virtual int getNParts() const=0;
54 
55  public:
56  virtual void generate(int,unsigned int)=0;
57  virtual void insertParticle(const SimpleParticle)=0;
58  virtual void tagParticleClosestTo(const Vec3&,int)=0;
59  virtual void tagEdgeY(int,int,double)=0;
60 };
61 
62 #endif // __RANDOMASSEMBLY2D_H
SimpleParticle::getRad
double getRad() const
Definition: SimpleParticle.hpp:70
ARandomAssembly2D::m_rmax
double m_rmax
min/max particle radius
Definition: RandomAssembly2D.h:40
BasicInteraction.h
ARandomAssembly::m_small_value
static double m_small_value
Definition: ARandomAssembly.h:45
Console::Info
Console & Info()
set verbose level of next message to "inf"
esys::lsm::SimpleParticleData::getID
Id getID() const
Definition: SimpleParticleData.hpp:109
ARandomAssembly2D::tagEdgeY
virtual void tagEdgeY(int, int, double)=0
ARandomAssembly2D::getAPoint
virtual Vec3 getAPoint()=0
ARandomAssembly2D::m_rmin
double m_rmin
Definition: RandomAssembly2D.h:40
ARandomAssembly2D::m_xmax
double m_xmax
Definition: RandomAssembly2D.h:41
Sphere2D::FillIn
static bool FillIn(const Vec3 &, const Vec3 &, const Vec3 &, double, double, double, Vec3 &, double &)
Definition: Sphere2d.cpp:29
ARandomAssembly2D
Abstract base class for random assemblies, to be used for initialization of random lattices.
Definition: RandomAssembly2D.h:37
SimpleParticle::getPos
const Vec3 & getPos() const
Definition: SimpleParticle.hpp:30
RandomAssembly2D.h
ARandomAssembly2D::m_ymin
double m_ymin
Definition: RandomAssembly2D.h:41
ARandomAssembly::getNeighborList
vector< SimpleParticle > getNeighborList(const SimpleParticle &)
Definition: ARandomAssembly.cpp:46
ARandomAssembly2D::getNParts
virtual int getNParts() const =0
console.h
ARandomAssembly
Abstract base class for random assemblies, to be used for initialization of random lattices.
Definition: ARandomAssembly.h:42
ARandomAssembly2D::isInSpace
bool isInSpace(const Vec3 &)
SimpleParticle
Definition: SimpleParticle.h:25
ARandomAssembly2D::insertParticle
virtual void insertParticle(const SimpleParticle)=0
ARandomAssembly2D::fillSpace
void fillSpace(int)
Definition: RandomAssembly2D.cpp:169
Line::GetO
Vec3 GetO() const
Definition: Line.h:36
Vec3::X
VEC3_INLINE double & X()
Definition: vec3.h:119
ARandomAssembly::getClosestNeighbors
vector< SimpleParticle > getClosestNeighbors(const SimpleParticle &, int)
Definition: ARandomAssembly.cpp:61
Line.h
SimpleParticle.h
ARandomAssembly2D::findAFit
bool findAFit(SimpleParticle &, const vector< SimpleParticle > &, const Line &)
Definition: RandomAssembly2D.cpp:71
Sphere2d.h
Line::sep
virtual double sep(const Vec3 &)
Definition: Line.cpp:30
ARandomAssembly2D::checkAFit
virtual bool checkAFit(const SimpleParticle &)
Definition: RandomAssembly2D.cpp:124
ARandomAssembly.h
Sphere2D::FillInWP
static bool FillInWP(const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, double, double, Vec3 &, double &)
Definition: Sphere2d.cpp:83
ARandomAssembly::m_random
double m_random(double, double)
Definition: ARandomAssembly.cpp:36
Vec3::Y
VEC3_INLINE double & Y()
Definition: vec3.h:120
Line
Class representing a line.
Definition: Line.h:26
ARandomAssembly2D::m_ymax
double m_ymax
x,y borders of the lattice
Definition: RandomAssembly2D.h:41
Line::GetU
Vec3 GetU() const
Definition: Line.h:35
Vec3
Definition: vec3.h:47
esys::lsm::bpu::iter
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
vec3.h
ARandomAssembly2D::generate
virtual void generate(int, unsigned int)=0
SimpleParticle::moveTo
void moveTo(const Vec3 &v)
Definition: SimpleParticle.hpp:40
ARandomAssembly2D::m_xmin
double m_xmin
Definition: RandomAssembly2D.h:41
ARandomAssembly2D::tagParticleClosestTo
virtual void tagParticleClosestTo(const Vec3 &, int)=0
console
Console console
Definition: console.cpp:25
ARandomAssembly2D::getClosestPlane
virtual Line * getClosestPlane(const SimpleParticle &)
Definition: RandomAssembly2D.cpp:40
ARandomAssembly2D::Borders
vector< Line > Borders
Definition: RandomAssembly2D.h:39
ARandomAssembly2D::m_circ_x
bool m_circ_x
Definition: RandomAssembly2D.h:42