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 __LOCALDAMPING_IGP_H 00014 #define __LOCALDAMPING_IGP_H 00015 00016 // -- project includes -- 00017 #include "Model/IGParam.h" 00018 #include "Foundation/vec3.h" 00019 // -- STL includes -- 00020 #include <string> 00021 00022 using std::string; 00023 00027 class CLocalDampingIGP : public AIGParam 00028 { 00029 protected: 00030 string m_type; // type of damping (rot/lin) 00031 double m_visc; 00032 double m_dt; 00033 00034 public: 00035 CLocalDampingIGP(); 00036 CLocalDampingIGP(const string& type, 00037 const string &name, 00038 double viscosity, 00039 double dt 00040 ); 00041 00042 virtual void packInto(CVarMPIBuffer*) const; 00043 void setType(const string& type){m_type=type;} 00044 void setVisc(double v){m_visc=v;} 00045 double getVisc()const{return m_visc;} 00046 void setTimeStep(double t){m_dt=t;} 00047 void setTimeStepSize(double t){setTimeStep(t);} 00048 double getTimeStep()const{return m_dt;} 00049 00050 virtual std::string getTypeString() const {return m_type;} 00051 }; 00052 00053 CLocalDampingIGP* extractLocalDampingIGP(AMPIBuffer*); 00054 00055 #endif //__LOCALDAMPING_IGP_H