Chombo + EB + MF  3.2
ParticleBC.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _PARTICLEBC_H_
12 #define _PARTICLEBC_H_
13 
14 #include "ParticleData.H"
15 #include "DataIterator.H"
16 #include "REAL.H"
17 #include "NamespaceHeader.H"
18 
20 {
21 public:
22 
23  /// enforces periodic boundary conditions on the particles in
24  /// a_particleData. Particles that are outside the range given
25  /// by a_leftEdge and a_rightEdge will have their positions
26  /// periodiocally shifted until that is no longer true
27  template <class P>
28  static void enforcePeriodic(ParticleData<P>& a_particleData,
29  const RealVect& a_leftEdge,
30  const RealVect& a_rightEdge);
31 };
32 
33 #include "NamespaceFooter.H"
34 
35 // implementation
36 #include "ParticleBCI.H"
37 
38 #endif // include guard
static void enforcePeriodic(ParticleData< P > &a_particleData, const RealVect &a_leftEdge, const RealVect &a_rightEdge)
Definition: ParticleBCI.H:18
Definition: ParticleBC.H:19
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Definition: ParticleData.H:67