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 __TRIMESH_PIS_NE_H 00014 #define __TRIMESH_PIS_NE_H 00015 00016 // --- project includes --- 00017 #include "pis/trimesh_pis.h" 00018 00029 template<class ParticleType,class IType> 00030 class TriMesh_PIS_NE : public TriMesh_PIS<ParticleType> 00031 { 00032 protected: 00033 typename IType::ParameterType m_param; 00034 00035 set<pair<int,int> > m_tri_int_set; // for isIn 00036 set<pair<int,int> > m_edge_int_set; // for isIn 00037 set<pair<int,int> > m_corner_int_set; // for isIn 00038 vector<typename IType::TriIntType> m_triangle_interactions; 00039 vector<typename IType::EdgeIntType> m_edge_interactions; 00040 vector<typename IType::CornerIntType> m_corner_interactions; 00041 00042 public: 00043 TriMesh_PIS_NE(TriMesh*,ParallelParticleArray<ParticleType>*,typename IType::ParameterType); 00044 ~TriMesh_PIS_NE(); 00045 00046 virtual bool isIn(const vector<int>&); 00047 00051 virtual void setTimeStepSize(double dt) 00052 { 00053 } 00054 00055 virtual void calcForces(); 00056 virtual bool update(); 00057 virtual void exchange(){}; 00058 virtual void rebuild(){}; 00059 virtual void tryInsert(const vector<int>&){}; 00060 }; 00061 00062 #include "trimesh_pis_ne.hpp" 00063 00064 #endif // __TRIMESH_PIS_NE_H