Block-Structured AMR Software Framework
AMReX_TracerParticles.H
Go to the documentation of this file.
1 #ifndef AMREX_TRACERPARTICLES_H_
2 #define AMREX_TRACERPARTICLES_H_
3 #include <AMReX_Config.H>
4 
5 #include <AMReX_Particles.H>
6 
7 namespace amrex {
8 
10  : public ParticleContainer<AMREX_SPACEDIM>
11 {
12 public:
13 
15  : ParticleContainer<AMREX_SPACEDIM>(gdb)
16  {}
17 
19  const DistributionMapping & dmap,
20  const BoxArray & ba)
21  : ParticleContainer<AMREX_SPACEDIM>(geom,dmap,ba)
22  {}
23 
25  ~TracerParticleContainer () override = default;
26 
29 
31  TracerParticleContainer& operator= ( TracerParticleContainer && ) noexcept = default;
32 
33  void AdvectWithUmac (MultiFab* umac, int level, Real dt);
34 
35  void AdvectWithUcc (const MultiFab& ucc, int level, Real dt);
36 
37  void Timestamp (const std::string& basename, const MultiFab& mf, int lev, Real time,
38  const std::vector<int>& indices);
39 };
40 
41 using TracerParIter = ParIter<AMREX_SPACEDIM>;
42 
43 }
44 
45 #endif
A collection of Boxes stored in an Array.
Definition: AMReX_BoxArray.H:550
Calculates the distribution of FABs to MPI processes.
Definition: AMReX_DistributionMapping.H:41
Rectangular problem domain geometry.
Definition: AMReX_Geometry.H:73
A collection (stored as an array) of FArrayBox objects.
Definition: AMReX_MultiFab.H:38
Definition: AMReX_ParGDB.H:13
Definition: AMReX_ParIter.H:113
A distributed container for Particles sorted onto the levels, grids, and tiles of a block-structured ...
Definition: AMReX_ParticleContainer.H:145
Definition: AMReX_TracerParticles.H:11
void AdvectWithUcc(const MultiFab &ucc, int level, Real dt)
Definition: AMReX_TracerParticles.cpp:120
TracerParticleContainer(TracerParticleContainer &&) noexcept=default
TracerParticleContainer(const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba)
Definition: AMReX_TracerParticles.H:18
void Timestamp(const std::string &basename, const MultiFab &mf, int lev, Real time, const std::vector< int > &indices)
Definition: AMReX_TracerParticles.cpp:197
TracerParticleContainer & operator=(const TracerParticleContainer &)=delete
~TracerParticleContainer() override=default
TracerParticleContainer(const TracerParticleContainer &)=delete
void AdvectWithUmac(MultiFab *umac, int level, Real dt)
Definition: AMReX_TracerParticles.cpp:10
TracerParticleContainer(ParGDBBase *gdb)
Definition: AMReX_TracerParticles.H:14
Definition: AMReX_Amr.cpp:49