![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <deal.II/base/conditional_ostream.h>#include <deal.II/distributed/tria_base.h>Go to the source code of this file.
Functions | |
| template<int dim> | |
| void | report_cell_size_to_particle_diameter_ratio (const parallel::DistributedTriangulationBase< dim > &triangulation, const double maximum_particle_diameter, const ConditionalOStream &pcout, const MPI_Comm &mpi_communicator) |
| void report_cell_size_to_particle_diameter_ratio | ( | const parallel::DistributedTriangulationBase< dim > & | triangulation, |
| const double | maximum_particle_diameter, | ||
| const ConditionalOStream & | pcout, | ||
| const MPI_Comm & | mpi_communicator ) |
Reports the ratio between the minimum cell size and the maximum particle diameter.
This function loops over all locally owned cells in a distributed mesh to find the minimum vertex-to-vertex distance (cell size), then compares it to the maximum particle diameter. It prints out the results using a ConditionalOStream and issues a warning if the ratio is too low.
| dim | The spatial dimension of the triangulation. |
| triangulation | A reference to the distributed triangulation (mesh) object. |
| maximum_particle_diameter | The largest particle diameter in the simulation. |
| pcout | A ConditionalOStream used for printing output. In parallel simulations, this stream ensures that only one processor (usually the master) prints messages to avoid cluttered output from all MPI ranks. |
| mpi_communicator | The MPI communicator used for the parallel simulation. This is required to compute the global minimum cell size across all MPI processes. |
Definition at line 35 of file utilities.h.