21 #ifndef _aspect_particle_manager_h 22 #define _aspect_particle_manager_h 26 #include <deal.II/particles/particle.h> 27 #include <deal.II/particles/particle_accessor.h> 28 #include <deal.II/particles/particle_iterator.h> 29 #include <deal.II/particles/particle_handler.h> 30 #include <deal.II/particles/property_pool.h> 32 #include <deal.II/matrix_free/fe_point_evaluation.h> 43 #include <deal.II/base/timer.h> 44 #include <deal.II/base/array_view.h> 46 #include <boost/serialization/unique_ptr.hpp> 51 struct SimulatorSignals;
56 using namespace ::Particles;
118 get_property_manager() const;
125 const Particles::ParticleHandler<dim> &
126 get_particle_handler() const;
139 Particles::ParticleHandler<dim> &
140 get_particle_handler();
160 void copy_particle_handler (const Particles::ParticleHandler<dim> &from_particle_handler,
161 Particles::ParticleHandler<dim> &to_particle_handler) const;
168 void backup_particles ();
176 void restore_particles ();
182 void setup_initial_state ();
190 get_interpolator() const;
195 void generate_particles();
199 void initialize_particles();
208 void advance_timestep();
221 types::particle_index n_global_particles() const;
241 #if DEAL_II_VERSION_GTE(9,6,0) 243 cell_weight(
const typename parallel::distributed::Triangulation<dim>::cell_iterator &cell,
244 const CellStatus status);
247 cell_weight(
const typename parallel::distributed::Triangulation<dim>::cell_iterator &cell,
248 const typename parallel::distributed::Triangulation<dim>::CellStatus status);
254 void update_particles();
259 template <
class Archive>
260 void serialize (Archive &ar,
const unsigned int version);
267 save (std::ostringstream &os)
const;
274 load (std::istringstream &is);
291 parse_parameters (ParameterHandler &prm,
const unsigned int particle_manager);
299 remove_particles = 0x1,
302 remove_and_add_particles = remove_particles | add_particles
390 std::map<types::subdomain_id, unsigned int>
391 get_subdomain_id_to_neighbor_map()
const;
399 apply_particle_per_cell_bounds();
405 void advect_particles();
411 local_initialize_particles(
const typename ParticleHandler<dim>::particle_iterator &begin_particle,
412 const typename ParticleHandler<dim>::particle_iterator &end_particle);
427 const std::vector<EvaluationFlags::EvaluationFlags> &evaluation_flags,
439 local_advect_particles(
const typename DoFHandler<dim>::active_cell_iterator &cell,
440 const typename ParticleHandler<dim>::particle_iterator &begin_particle,
441 const typename ParticleHandler<dim>::particle_iterator &end_particle,
450 ParticleHandler<dim> &particle_handler,
451 const bool connect_to_checkpoint_signals =
true)
const;
457 template <
class Archive>
void serialize(Archive &ar, const unsigned int version)
unsigned int max_particles_per_cell
unsigned int min_particles_per_cell
unsigned int particle_weight
std::unique_ptr< Generator::Interface< dim > > generator
std::unique_ptr< Integrator::Interface< dim > > integrator
std::unique_ptr< Particles::ParticleHandler< dim > > particle_handler
Particles::ParticleHandler< dim > particle_handler_backup
std::unique_ptr< Property::Manager< dim > > property_manager
std::unique_ptr< Interpolator::Interface< dim > > interpolator
void declare_parameters(ParameterHandler &prm)
ParticleLoadBalancing::Kind particle_load_balancing
boost::container::small_vector< T, N > small_vector