1 /* ----------------------------------------------------------------------
2     This is the
3 
4     ██╗     ██╗ ██████╗  ██████╗  ██████╗ ██╗  ██╗████████╗███████╗
5     ██║     ██║██╔════╝ ██╔════╝ ██╔════╝ ██║  ██║╚══██╔══╝██╔════╝
6     ██║     ██║██║  ███╗██║  ███╗██║  ███╗███████║   ██║   ███████╗
7     ██║     ██║██║   ██║██║   ██║██║   ██║██╔══██║   ██║   ╚════██║
8     ███████╗██║╚██████╔╝╚██████╔╝╚██████╔╝██║  ██║   ██║   ███████║
9     ╚══════╝╚═╝ ╚═════╝  ╚═════╝  ╚═════╝ ╚═╝  ╚═╝   ╚═╝   ╚══════╝®
10 
11     DEM simulation engine, released by
12     DCS Computing Gmbh, Linz, Austria
13     http://www.dcs-computing.com, office@dcs-computing.com
14 
15     LIGGGHTS® is part of CFDEM®project:
16     http://www.liggghts.com | http://www.cfdem.com
17 
18     Core developer and main author:
19     Christoph Kloss, christoph.kloss@dcs-computing.com
20 
21     LIGGGHTS® is open-source, distributed under the terms of the GNU Public
22     License, version 2 or later. It is distributed in the hope that it will
23     be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
24     of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have
25     received a copy of the GNU General Public License along with LIGGGHTS®.
26     If not, see http://www.gnu.org/licenses . See also top-level README
27     and LICENSE files.
28 
29     LIGGGHTS® and CFDEM® are registered trade marks of DCS Computing GmbH,
30     the producer of the LIGGGHTS® software and the CFDEM®coupling software
31     See http://www.cfdem.com/terms-trademark-policy for details.
32 
33 -------------------------------------------------------------------------
34     Contributing author and copyright for this file:
35     (if no contributing author is listed, this file has been contributed
36     by the core developer)
37 
38     Copyright 2015-     DCS Computing GmbH, Linz
39 ------------------------------------------------------------------------- */
40 
41 #ifndef LMP_PROPERTIES_H
42 #define LMP_PROPERTIES_H
43 
44 #include "lammps.h"
45 #include "pointers.h"
46 
47 namespace LAMMPS_NS {
48 
49 class Properties: protected Pointers
50 {
51  public:
52 
53   Properties(LAMMPS *lmp);
54   ~Properties();
55 
56   int max_type();
57   double min_radius();
58   double max_radius();
59   void* find_property(const char *name, const char *type, int &len1, int &len2);
ms_data()60   inline class Multisphere *ms_data() { return ms_data_;}
61 
allow_soft_particles()62   bool allow_soft_particles()
63   { return allow_soft_particles_; }
64 
do_allow_soft_particles()65   void do_allow_soft_particles()
66   { allow_soft_particles_ = true; }
do_not_allow_soft_particles()67   void do_not_allow_soft_particles()
68   { allow_soft_particles_ = false; }
69 
allow_hard_particles()70   bool allow_hard_particles()
71   { return allow_hard_particles_; }
72 
do_allow_hard_particles()73   void do_allow_hard_particles()
74   { allow_hard_particles_ = true; }
do_not_allow_hard_particles()75   void do_not_allow_hard_particles()
76   { allow_hard_particles_ = false; }
77 
78  private:
79 
80   // multisphere
81   class FixMultisphere *ms_;
82   class Multisphere *ms_data_;
83 
84   int mintype_,maxtype_;
85 
86   bool allow_soft_particles_;
87   bool allow_hard_particles_;
88 }; //end class
89 
90 }
91 
92 #endif
93