Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
particle_interaction_outcomes.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2025-2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_particle_interaction_outcomes_h
5#define lethe_particle_interaction_outcomes_h
6
8
9#include <deal.II/base/tensor.h>
10
11#include <vector>
12
13using namespace dealii;
14
15/**
16 * @brief Class where the outcomes of particle-particle interactions are stored.
17 * @tparam PropertiesIndex Index of the properties used within the ParticleHandler.
18 */
19template <typename PropertiesIndex>
21{
22public:
23 // Class members
24 std::vector<Tensor<1, 3>> torque;
25 std::vector<Tensor<1, 3>> force;
26 std::vector<double> heat_transfer_rate;
27
28 /**
29 * @brief Resize the containers for particle-particle interaction outcomes.
30 * @param[in] number_of_particles Number of locally owned particles in the
31 * domain.
32 */
33 void
34 resize_interaction_containers(const unsigned int number_of_particles)
35 {
36 force.resize(number_of_particles);
37 torque.resize(number_of_particles);
39 {
40 heat_transfer_rate.resize(number_of_particles);
41 }
42 }
43};
44
45#endif
Class where the outcomes of particle-particle interactions are stored.
void resize_interaction_containers(const unsigned int number_of_particles)
Resize the containers for particle-particle interaction outcomes.
std::vector< Tensor< 1, 3 > > force
std::vector< Tensor< 1, 3 > > torque
DEM particle property definitions and output name management.
constexpr bool has_thermal_properties
Whether a properties index set carries thermal properties.