aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.H
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-12-19 12:01:30 +0100
committerGravatar GitHub <noreply@github.com> 2019-12-19 12:01:30 +0100
commit95bf72520c3a78d93f22965fe4848f7cd443ed4c (patch)
treefb83394162ef20b11e97dad43720bf4f1fc7c636 /Source/Particles/MultiParticleContainer.H
parentf047e4beaab1e2a31bd4a0992fa7a63b0ba0cf8c (diff)
parent7d1a572483d5f1b314020b5282c92d48afa26f9d (diff)
downloadWarpX-95bf72520c3a78d93f22965fe4848f7cd443ed4c.tar.gz
WarpX-95bf72520c3a78d93f22965fe4848f7cd443ed4c.tar.zst
WarpX-95bf72520c3a78d93f22965fe4848f7cd443ed4c.zip
Merge branch 'dev' into add_harmonic_beam
Diffstat (limited to 'Source/Particles/MultiParticleContainer.H')
-rw-r--r--Source/Particles/MultiParticleContainer.H9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H
index 72064ce8c..d7ddc7a72 100644
--- a/Source/Particles/MultiParticleContainer.H
+++ b/Source/Particles/MultiParticleContainer.H
@@ -16,6 +16,8 @@
#include <QuantumSyncEngineWrapper.H>
#endif
+#include "CollisionType.H"
+
#include <memory>
#include <map>
#include <string>
@@ -142,6 +144,8 @@ public:
void doFieldIonization ();
+ void doCoulombCollisions ();
+
void Checkpoint (const std::string& dir) const;
void WritePlotFile (const std::string& dir) const;
@@ -214,6 +218,10 @@ protected:
std::vector<std::string> lasers_names;
+ std::vector<std::string> collision_names;
+
+ amrex::Vector<std::unique_ptr<CollisionType> > allcollisions;
+
//! instead of depositing (current, charge) on the finest patch level, deposit to the coarsest grid
std::vector<bool> m_deposit_on_main_grid;
@@ -295,5 +303,6 @@ private:
// runtime parameters
int nlasers = 0;
int nspecies = 1; // physical particles only. nspecies+nlasers == allcontainers.size().
+ int ncollisions = 0;
};
#endif /*WARPX_ParticleContainer_H_*/