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 not contributing author is listed, this file has been contributed
36     by the core developer)
37 
38     Copyright 2012-     DCS Computing GmbH, Linz
39     Copyright 2009-2012 JKU Linz
40 ------------------------------------------------------------------------- */
41 
42 #ifdef FIX_CLASS
43 
44 FixStyle(check/timestep/gran,FixCheckTimestepGran)
45 
46 #else
47 
48 #ifndef LMP_FIX_CHECK_TIMESTEP_GRAN_H
49 #define LMP_FIX_CHECK_TIMESTEP_GRAN_H
50 
51 #include "fix.h"
52 
53 namespace LAMMPS_NS {
54 
55 class FixCheckTimestepGran : public Fix {
56  public:
57   FixCheckTimestepGran(class LAMMPS *, int, char **);
58   int setmask();
59   void init();
60   void end_of_step();
61   double compute_vector(int);
62 
63  private:
64   class Properties* properties;
65   class PairGran* pg;
66   class FixWallGran* fwg;
67   class FixPropertyGlobal* Y;
68   class FixPropertyGlobal* nu;
69   void calc_rayleigh_hertz_estims();
70   double rayleigh_time,hertz_time;
71   double fraction_rayleigh,fraction_hertz,fraction_skin;
72   double fraction_rayleigh_lim,fraction_hertz_lim;
73   double v_rel_max_simulation; //max relative velocity detected in simulation
74   double vmax_user;
75   double r_min;
76   bool warnflag,errorflag;
77   double ** Yeff;
78 };
79 
80 }
81 
82 #endif
83 #endif
84