Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
output_force_torque_calculation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2021-2022, 2024 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_output_force_torque_calculation_h
5#define lethe_output_force_torque_calculation_h
6
8
9#include <deal.II/base/mpi.h>
10#include <deal.II/base/table_handler.h>
11
12/**
13 * @brief write_forces_torques_output_locally
14 * Writes the results of force and torque calculations in the terminal at the
15 * frequency requested in the prm.
16 */
17void
19 std::map<unsigned int, Tensor<1, 3>> force_on_walls,
20 std::map<unsigned int, Tensor<1, 3>> torque_on_walls);
21
22/**
23 * @brief write_forces_torques_output_results
24 * Writes the results of force and torque calculations in a file, and it depends
25 * on the verbosity, in the terminal
26 */
27void
29 const std::string &filename,
30 const unsigned int output_frequency,
31 const std::vector<unsigned int> &boundary_index,
32 const double time_step,
33 DEM::dem_data_structures<3>::vector_on_boundary &forces_boundary_information,
35 &torques_boundary_information);
36#endif
void write_forces_torques_output_locally(std::map< unsigned int, Tensor< 1, 3 > > force_on_walls, std::map< unsigned int, Tensor< 1, 3 > > torque_on_walls)
write_forces_torques_output_locally Writes the results of force and torque calculations in the termin...
void write_forces_torques_output_results(const std::string &filename, const unsigned int output_frequency, const std::vector< unsigned int > &boundary_index, const double time_step, DEM::dem_data_structures< 3 >::vector_on_boundary &forces_boundary_information, DEM::dem_data_structures< 3 >::vector_on_boundary &torques_boundary_information)
write_forces_torques_output_results Writes the results of force and torque calculations in a file,...
ankerl::unordered_dense::map< unsigned int, std::map< types::boundary_id, Tensor< 1, 3 > > > vector_on_boundary