4#ifndef lethe_ray_tracing_h
5#define lethe_ray_tracing_h
15#include <deal.II/base/timer.h>
49 std::shared_ptr<Insertion<dim, DEMProperties::PropertiesIndex>>
76 const ConditionalOStream &
pcout);
120 template <
typename NeighborListType>
123 NeighborListType &cell_list,
124 ankerl::unordered_dense::map<
125 types::particle_index,
126 std::tuple<
double, Point<dim>, Particles::ParticleIterator<dim>>>
127 &photon_intersection_points_map);
211 std::shared_ptr<Insertion<dim, DEMProperties::PropertiesIndex>>
Manage the actions to be performed in the DEM solver and on the DEM part of the coupling CFD-DEM solv...
Handles all the parameters declared in the parameter handler file.
Manages the load balancing (repartitioning), of the domain according to the computational load of the...
Handles all the parameters declared in the parameter handler file.
void load_balance()
Check if a load balancing is required according to the load balancing method and perform it if necess...
DEMActionManager * action_manager
The action manager that manages the actions triggered by events.
const DEMSolverParameters< dim > dem_parameters
DEM parameters needed for some functions related to the DEM particles.
typename neighbor_list_types::ghost ghost_neighbor_list
const unsigned int this_mpi_process
The rank of the current MPI process.
ghost_neighbor_list cells_ghost_neighbor_list
Ghost neighbor list.
parallel::distributed::Triangulation< dim > triangulation
The distributed triangulation used for the DEM simulation.
void finish_simulation(const std::vector< Point< 3 > > &intersection_points)
Execute the last post-processing at the end of the simulation and output test results if necessary.
const unsigned int n_mpi_processes
The number of MPI processes used for the parallel simulation.
Particles::ParticleHandler< dim, dim > photon_handler
The photon handler that manages the photons.
TimerOutput computing_timer
The timer that keeps track of the time spent in some functions. Currently, the only function for whic...
LagrangianLoadBalancing< dim, DEMProperties::PropertiesIndex > load_balancing
The load balancing handler.
void setup_parameters()
Set the parameters for the ray tracing.
MPI_Comm mpi_communicator
The MPI communicator used for the parallel simulation.
void setup_background_dofs()
Set up the background degree of freedom used for parallel grid output or mapping of periodic dofs whe...
std::shared_ptr< Insertion< dim, DEMProperties::PropertiesIndex > > set_particle_insertion_type()
Set the insertion method. Supported insertion method are list and file.
ConditionalOStream pcout
The output stream used for the parallel simulation, only used by the process 0.
DoFHandler< dim > background_dh
The background degree of freedom handler uses for parallel grid processing.
MappingQGeneric< dim > mapping
The polynomial mapping. The mapping is first order in DEM simulations.
Particles::ParticleHandler< dim, dim > particle_handler
The particle handler that manages the particles.
void write_output_results(const std::vector< Point< dim > > &points)
Generate the output file of the particle ray tracing in parallel.
RayTracingSolver(RayTracingSolverParameters< dim > ¶meters, DEMSolverParameters< dim > &dem_parameters)
std::shared_ptr< Insertion< dim, DEMProperties::PropertiesIndex > > particle_insertion_object
The particle insertion object.
std::shared_ptr< SimulationControl > simulation_control
The simulation control (DEM Transient).
local_neighbor_list cells_local_neighbor_list
Local neighbor list.
void find_intersection(NeighborListType &cell_list, ankerl::unordered_dense::map< types::particle_index, std::tuple< double, Point< dim >, Particles::ParticleIterator< dim > > > &photon_intersection_points_map)
Execute the ray tracing algorithm to find intersection points between photons and particles.
double displacement_distance
The reference displacement distance used to move the photons during each pseudo time step.
typename neighbor_list_types::local local_neighbor_list
void insert_particles_and_photons()
Insert particles and photons at the beginning of a ray tracing simulation.
void solve()
Calls all the necessary functions to set parameters, solve the intersection points between the photon...
const RayTracingSolverParameters< dim > parameters
The parameters of the Ray Tracing simulation.
static void print_insertion_info(const unsigned int &inserted_photon, const ConditionalOStream &pcout)
Print information about the photons that have been inserted during an insertion time step.
DEM particle property definitions and output name management.
std::vector< std::vector< typename Triangulation< dim >::active_cell_iterator > > cells_neighbor_list
Container that shows the local/ghost neighbor cells of all local cells in the triangulation....
typename dem_data_structures< dim >::cells_neighbor_list base_type