Memosa-FVM  0.2
FVMParticles.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef FVMPARTICLES_H
6 #define FVMPARTICLES_H
7 
8 #include "Mesh.h"
9 #include "Array.h"
10 #include <vector>
11 #include <set>
12 
14 
15  public:
16  typedef shared_ptr< Array<int> > ArrayIntPtr;
17 
18  FVMParticles( const MeshList& meshList );
19  ~FVMParticles();
20 
21  void setParticles( int sweep );
22  void setSweepIter( int sweep) { _sweepIter = sweep; };
23 
24  const ArrayBase& getCellIDs( int mesh_id ) const { return *_cellID.at(mesh_id); }
25  int getNumOfFluidParticles ( int mesh_id ) const { return _cellID.at(mesh_id)->getLength(); }
26 
27  private:
28 
31 
32  int _nmesh;
33  vector< set<int> > _cellIDSet;
34  vector< ArrayIntPtr > _cellID;
35 };
36 
37 #endif
void setParticles(int sweep)
void setSweepIter(int sweep)
Definition: FVMParticles.h:22
vector< set< int > > _cellIDSet
Definition: FVMParticles.h:33
shared_ptr< Array< int > > ArrayIntPtr
Definition: FVMParticles.h:16
const ArrayBase & getCellIDs(int mesh_id) const
Definition: FVMParticles.h:24
int getNumOfFluidParticles(int mesh_id) const
Definition: FVMParticles.h:25
vector< ArrayIntPtr > _cellID
Definition: FVMParticles.h:34
const MeshList _meshList
Definition: FVMParticles.h:29
FVMParticles(const MeshList &meshList)
vector< Mesh * > MeshList
Definition: Mesh.h:439