GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
LCM.hpp
Go to the documentation of this file.
1 // This file is part of GranOO, a workbench for DEM simulation.
2 //
3 // Author(s) : - Damien Andre IRCER/UNILIM, Limoges France
4 // <damien.andre@unilim.fr>
5 // - Jean-luc Charles Arts et Metiers ParisTech, CNRS, I2M, Bordeaux France
6 // <jean-luc.charles@ensam.eu>
7 // - Jeremie Girardot Arts et Metiers ParisTech, CNRS, I2M, Bordeaux France
8 // <jeremie.girardot@ensam.eu>
9 // - Cedric Hubert LAMIH/UPHF, Valenciennes France
10 // <cedric.hubert@uphf.fr>
11 // - Ivan Iordanoff Arts et Metiers ParisTech, CNRS, I2M, Bordeaux France
12 // <ivan.iordanoff@ensam.eu>
13 //
14 // Copyright (C) 2008-2019 D. Andre, JL. Charles, J. Girardot, C. Hubert, I. Iordanoff
15 //
16 // This program is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 // This program is distributed in the hope that it will be useful,
22 // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 // GNU General Public License for more details.
25 //
26 // You should have received a copy of the GNU General Public License
27 // along with this program. If not, see <http://www.gnu.org/licenses/>.
28 
29 
30 #ifndef _libDEM_ContactDetection_LCM_hpp_
31 #define _libDEM_ContactDetection_LCM_hpp_
32 
36 
37 namespace GranOO3
38 {
39  namespace DEM
40  {
41 
42  class ContactDetection_LCM : public ContactDetection<DEM::DiscreteElement>
43  {
44 
45  GRANOO_OBJECT_FACTORY(ContactDetection_LCM);
46 
47  public:
48  static std::string class_ID() {return "LCM";}
49 
50  public:
51  //CONSTRUCTORS & DESTRUCTORS
53  virtual ~ContactDetection_LCM();
54 
55  //USEFULL
56  virtual void detect_contact();
57  virtual void parse_xml();
58 
61 
62  GRANOO_ACCESS_REF(K, double, _k);
63 
64  private:
67 
68  private:
69  double _k;
74  double _radius_max;
76  std::vector<std::vector<std::vector<std::vector<DiscreteElement *> > > > _the_box;
77  };
78 
79  }
80 }
81 
82 
83 #endif
A class for managing contact with discrete elements (obsolete and not documented)
Definition: LCM.hpp:43
bool _domain_dimension_updated
Definition: LCM.hpp:75
virtual ~ContactDetection_LCM()
Definition: LCM.cpp:94
virtual void parse_xml()
Definition: LCM.cpp:98
double _k
Definition: LCM.hpp:69
double _radius_max
Definition: LCM.hpp:74
ContactDetection_LCM()
Definition: LCM.cpp:79
Geom::Vector _domain_dimension
Definition: LCM.hpp:71
void update_domain_dimension()
Definition: LCM.cpp:107
std::vector< std::vector< std::vector< std::vector< DiscreteElement * > > > > _the_box
Definition: LCM.hpp:76
virtual void detect_contact()
Definition: LCM.cpp:147
ContactDetection_LCM & operator=(const ContactDetection_LCM &)=delete
bool is_inside_domain(DEM::DiscreteElement &) const
static std::string class_ID()
Definition: LCM.hpp:48
ContactDetection_LCM(const ContactDetection_LCM &)=delete
Geom::Point _point_max
Definition: LCM.hpp:73
Geom::Point _point_min
Definition: LCM.hpp:72
unsigned int _update_domain_dimension_each_iteration
Definition: LCM.hpp:70
A class for managing contact with discrete elements (obsolete and not documented)
Definition: ContactDetection.hpp:54
the discrete element is just a spherical Element with additional dedicated features
Definition: DiscreteElement.hpp:47
Definition: Point.hpp:62
Definition: Vector.hpp:75
Definition: Common.hpp:198