WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Particles
Resampling
LevelingThinning.H
Go to the documentation of this file.
1
/* Copyright 2019-2020 Neil Zaim
2
*
3
* This file is part of WarpX.
4
*
5
* License: BSD-3-Clause-LBNL
6
*/
7
#ifndef WARPX_LEVELING_THINNING_H_
8
#define WARPX_LEVELING_THINNING_H_
9
10
#include "
Resampling.H
"
11
12
#include "
Particles/WarpXParticleContainer_fwd.H
"
13
14
#include <
AMReX_Geometry.H
>
15
#include <
AMReX_REAL.H
>
16
17
#include <string>
18
27
class
LevelingThinning
:
public
ResamplingAlgorithm
{
28
public
:
29
33
LevelingThinning
() =
default
;
34
40
explicit
LevelingThinning
(
const
std::string& species_name);
41
46
void
BackwardCompatibility
(
const
std::string& species_name );
47
56
void
operator()
(
57
const
amrex::Geometry
& geom_lev,
WarpXParIter
& pti,
58
int
lev,
WarpXParticleContainer
* pc)
const
final
;
59
60
private
:
61
amrex::Real
m_target_ratio
=
amrex::Real
(1.5);
62
int
m_min_ppc
= 1;
63
};
64
65
66
#endif
//WARPX_LEVELING_THINNING_H_
AMReX_Geometry.H
AMReX_REAL.H
Resampling.H
WarpXParticleContainer_fwd.H
LevelingThinning::LevelingThinning
LevelingThinning()=default
Default constructor of the LevelingThinning class.
LevelingThinning::m_min_ppc
int m_min_ppc
Definition
LevelingThinning.H:62
LevelingThinning::BackwardCompatibility
void BackwardCompatibility(const std::string &species_name)
Definition
LevelingThinning.cpp:56
LevelingThinning::m_target_ratio
amrex::Real m_target_ratio
Definition
LevelingThinning.H:61
LevelingThinning::operator()
void operator()(const amrex::Geometry &geom_lev, WarpXParIter &pti, int lev, WarpXParticleContainer *pc) const final
A method that performs leveling thinning for the considered species.
Definition
LevelingThinning.cpp:67
WarpXParIter
Definition
WarpXParticleContainer.H:112
WarpXParticleContainer
Definition
WarpXParticleContainer.H:195
amrex::Geometry
amrex::Real
amrex_real Real
ResamplingAlgorithm::ResamplingAlgorithm
ResamplingAlgorithm()=default
Generated by
1.17.0