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 #ifndef __MESH2D_PIS_NE_H 00013 #define __MESH2D_PIS_NE_H 00014 00015 // --- project includes --- 00016 #include "pis/mesh2d_pis.h" 00017 00028 template<class ParticleType,class IType> 00029 class Mesh2D_PIS_NE : public Mesh2D_PIS<ParticleType> 00030 { 00031 protected: 00032 typename IType::ParameterType m_param; 00033 00034 set<pair<int,int> > m_edge_int_set; // for isIn 00035 set<pair<int,int> > m_corner_int_set; // for isIn 00036 vector<typename IType::EdgeIntType> m_edge_interactions; 00037 vector<typename IType::CornerIntType> m_corner_interactions; 00038 00039 public: 00040 Mesh2D_PIS_NE(Mesh2D*,ParallelParticleArray<ParticleType>*,typename IType::ParameterType); 00041 ~Mesh2D_PIS_NE(); 00042 00043 virtual bool isIn(const vector<int>&); 00044 00048 virtual void setTimeStepSize(double dt) 00049 { 00050 } 00051 00052 virtual void calcForces(); 00053 virtual bool update(); 00054 virtual void exchange(){}; 00055 virtual void rebuild(){}; 00056 virtual void tryInsert(const vector<int>&){}; 00057 }; 00058 00059 #include "mesh2d_pis_ne.hpp" 00060 00061 #endif // __MESH2D_PIS_NE_H