Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
postprocessing_cfd_dem.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2025 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_postprocessing_cfd_dem_h
5#define lethe_postprocessing_cfd_dem_h
6
7// Lethe includes
9
10/**
11 * @brief This function calculates total volume of fluid and total volume of particles in cfd-dem simulation.
12 *
13 * \f$V_{fluid} = \int \varepsilon d \Omega \f$,
14 * \f$V_{particles} = \int (1- \varepsilon) d \Omega \f$
15 * where \f$ \varepsilon \f$ is the void fraction and \f$ d \Omega \f$ is the
16 * volume of the cell.
17 *
18 * @param void_fraction_dof_handler Used to calculate the void fraction at quadrature points
19 * @param present_void_fraction_solution Void fraction solution vector
20 * @param quadrature_formula Quadrature formula.
21 * @param mapping The mapping of the simulation
22 */
23template <int dim, typename VectorType>
24std::pair<double, double>
26 const DoFHandler<dim> &void_fraction_dof_handler,
27 const VectorType &present_void_fraction_solution,
28 const Quadrature<dim> &quadrature_formula,
29 const Mapping<dim> &mapping);
30
31#endif
std::pair< double, double > calculate_fluid_and_particle_volumes(const DoFHandler< dim > &void_fraction_dof_handler, const VectorType &present_void_fraction_solution, const Quadrature< dim > &quadrature_formula, const Mapping< dim > &mapping)
This function calculates total volume of fluid and total volume of particles in cfd-dem simulation.
GlobalVectorType VectorType