ESyS-Particle  2.3.2
ABCDamping.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 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.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef MODEL_ABCDAMPING_H
14 #define MODEL_ABCDAMPING_H
15 
16 // -- project includes --
17 #include "Model/Damping.h"
18 #include "Model/ABCDampingIGP.h"
19 
24  template <class ParticleType>
25  class ABCDamping : public CDamping<ParticleType>
26 {
27  protected:
30  double m_c1;
31 
32  public:
34 
35 
36  typedef double (ABCDamping::* ScalarFieldFunction)() const;
37  typedef pair<bool,double> (ABCDamping::* CheckedScalarFieldFunction)() const;
38  typedef Vec3 (ABCDamping::* VectorFieldFunction)() const;
39 
40  static ScalarFieldFunction getScalarFieldFunction(const string&);
42  static VectorFieldFunction getVectorFieldFunction(const string&);
43 
44  ABCDamping(ParticleType*,ABCDampingIGP*);
45  virtual ~ABCDamping();
46 };
47 
48 #include "Model/ABCDamping.hpp"
49 
50 #endif // MODEL_ABCDAMPING_H