GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Interaction.hpp
Go to the documentation of this file.
1 //
2 // Author(s) : - Jean-luc CHARLES I2M-DuMAS/ENSAM Talence France
3 // <jean-luc.charles@ensam.eu>
4 // - Damien ANDRE SPCTS/ENS Ceramique industrielle, Limoges France
5 // <damien.andre@unilim.fr>
6 // - Jeremie GIRARDOT I2M-DuMAS/ENSAM Talence France
7 // <jeremie.girardot@ensam.eu>
8 // - Cedric Hubert LAMIH/UVHC Valenciennes France
9 // <cedric.hubert@univ-valenciennes.fr>
10 // - Ivan IORDANOFF I2M-DuMAS-MPI/ENSAM Talence France
11 // <ivan.iordanoff@ensam.eu>
12 //
13 // Copyright (C) 2008-2016 JL. CHARLES, D. ANDRE, I. IORDANOFF, J. GIRARDOT
14 //
15 //
16 //
17 //
18 //
19 // This program is free software: you can redistribute it and/or modify
20 // it under the terms of the GNU General Public License as published by
21 // the Free Software Foundation, either version 3 of the License, or
22 // (at your option) any later version.
23 //
24 // This program is distributed in the hope that it will be useful,
25 // but WITHOUT ANY WARRANTY; without even the implied warranty of
26 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 // GNU General Public License for more details.
28 //
29 // You should have received a copy of the GNU General Public License
30 // along with this program. If not, see <http://www.gnu.org/licenses/>.
31 
32 
33 
34 #ifndef GranOO_SPH_Interaction_hpp
35 #define GranOO_SPH_Interaction_hpp
36 
37 
38 #include "GranOO3/Geom/Vector.hpp"
39 
40 namespace GranOO3
41 {
42  namespace SPH
43  {
44 
45  class Particle;
46 
47  struct Interaction
48  {
49  Interaction(Particle* part, const Geom::Vector& dist);
50 
51  // public data
54  };
55 
56 
57 
58  inline
60  : neighbour(part),
61  distance(dist) {
62  }
63 
64  }
65 }
66 
67 
68 
69 
70 
71 
72 #endif
Definition: Vector.hpp:75
Definition: Particle.hpp:49
Definition: Common.hpp:198
Definition: Interaction.hpp:48
Interaction(Particle *part, const Geom::Vector &dist)
Definition: Interaction.hpp:59
Particle * neighbour
Definition: Interaction.hpp:52
const Geom::Vector distance
Definition: Interaction.hpp:53