ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef MODEL_ABCDAMPING_H 00014 #define MODEL_ABCDAMPING_H 00015 00016 // -- project includes -- 00017 #include "Model/Damping.h" 00018 #include "Model/ABCDampingIGP.h" 00019 00024 template <class ParticleType> 00025 class ABCDamping : public CDamping<ParticleType> 00026 { 00027 protected: 00028 Vec3 m_pos; 00029 Vec3 m_normal; 00030 double m_c1; 00031 00032 public: 00033 typedef ABCDampingIGP ParameterType; 00034 00035 00036 typedef double (ABCDamping::* ScalarFieldFunction)() const; 00037 typedef pair<bool,double> (ABCDamping::* CheckedScalarFieldFunction)() const; 00038 typedef Vec3 (ABCDamping::* VectorFieldFunction)() const; 00039 00040 static ScalarFieldFunction getScalarFieldFunction(const string&); 00041 static CheckedScalarFieldFunction getCheckedScalarFieldFunction(const string&); 00042 static VectorFieldFunction getVectorFieldFunction(const string&); 00043 00044 ABCDamping(ParticleType*,ABCDampingIGP*); 00045 virtual ~ABCDamping(); 00046 }; 00047 00048 #include "Model/ABCDamping.hpp" 00049 00050 #endif // MODEL_ABCDAMPING_H