ABLATE Source Documentation  0.12.34
boxInitializer.hpp
1 #ifndef ABLATELIBRARY_BOXINITIALIZER_HPP
2 #define ABLATELIBRARY_BOXINITIALIZER_HPP
3 #include "initializer.hpp"
4 
5 namespace ablate::particles::initializers {
9 class BoxInitializer : public Initializer {
10  private:
11  const std::vector<double> lowerBound;
12  const std::vector<double> upperBound;
13  const int particlesPerDim;
14 
15  public:
22  explicit BoxInitializer(std::vector<double> lowerBound = {0, 0, 0}, std::vector<double> upperBound = {1.0, 1.0, 1.0}, int particlesPerDim = 1);
23  ~BoxInitializer() override = default;
24 
30  void Initialize(ablate::domain::SubDomain& flow, DM particleDM) override;
31 };
32 } // namespace ablate::particles::initializers
33 
34 #endif // ABLATELIBRARY_BOXINITIALIZER_HPP
Definition: subDomain.hpp:19
Definition: boxInitializer.hpp:9
void Initialize(ablate::domain::SubDomain &flow, DM particleDM) override
Definition: boxInitializer.cpp:9
BoxInitializer(std::vector< double > lowerBound={0, 0, 0}, std::vector< double > upperBound={1.0, 1.0, 1.0}, int particlesPerDim=1)
Definition: boxInitializer.cpp:6