Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
dem_properties.cc
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2020-2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
5
6#include <type_traits>
7
8namespace DEM
9{
10 template <int dim, typename PropertiesIndex>
11 std::vector<std::pair<std::string, int>>
13 {
14 std::vector<std::pair<std::string, int>> properties(
15 PropertiesIndex::n_properties);
16
17 properties[PropertiesIndex::type] = std::make_pair("type", 1);
18 properties[PropertiesIndex::dp] = std::make_pair("diameter", 1);
19 properties[PropertiesIndex::v_x] = std::make_pair("velocity", 3);
20 properties[PropertiesIndex::v_y] = std::make_pair("velocity", 1);
21 properties[PropertiesIndex::v_z] = std::make_pair("velocity", 1);
22 properties[PropertiesIndex::omega_x] = std::make_pair("omega", 3);
23 properties[PropertiesIndex::omega_y] = std::make_pair("omega", 1);
24 properties[PropertiesIndex::omega_z] = std::make_pair("omega", 1);
25 properties[PropertiesIndex::mass] = std::make_pair("mass", 1);
26
28 {
29 properties[PropertiesIndex::fem_force_two_way_coupling_x] =
30 std::make_pair("fem_force", 3);
31 properties[PropertiesIndex::fem_force_two_way_coupling_y] =
32 std::make_pair("fem_force", 1);
33 properties[PropertiesIndex::fem_force_two_way_coupling_z] =
34 std::make_pair("fem_force", 1);
35 properties[PropertiesIndex::fem_force_one_way_coupling_x] =
36 std::make_pair("fem_force_particle_only", 3);
37 properties[PropertiesIndex::fem_force_one_way_coupling_y] =
38 std::make_pair("fem_force_particle_only", 1);
39 properties[PropertiesIndex::fem_force_one_way_coupling_z] =
40 std::make_pair("fem_force_particle_only", 1);
41 properties[PropertiesIndex::fem_drag_x] = std::make_pair("fem_drag", 3);
42 properties[PropertiesIndex::fem_drag_y] = std::make_pair("fem_drag", 1);
43 properties[PropertiesIndex::fem_drag_z] = std::make_pair("fem_drag", 1);
44 properties[PropertiesIndex::fem_torque_x] =
45 std::make_pair("fem_torque", 3);
46 properties[PropertiesIndex::fem_torque_y] =
47 std::make_pair("fem_torque", 1);
48 properties[PropertiesIndex::fem_torque_z] =
49 std::make_pair("fem_torque", 1);
50 properties[PropertiesIndex::volumetric_contribution] =
51 std::make_pair("volumetric_contribution", 1);
52 properties[PropertiesIndex::momentum_transfer_coefficient] =
53 std::make_pair("momentum_transfer_coefficient", 1);
54 }
55
57 {
58 properties[PropertiesIndex::T] = std::make_pair("temperature", 1);
59 properties[PropertiesIndex::specific_heat] =
60 std::make_pair("specific_heat", 1);
61 }
62 return properties;
63 }
64
68 template class ParticleProperties<2,
73 template class ParticleProperties<3,
75
76} // namespace DEM
Controls the name of output variables for the vtu.
static std::vector< std::pair< std::string, int > > get_properties_name()
Return the names of each DEM property. Used to properly generate output files.
DEM particle property definitions and output name management.
PropertiesIndex
Particle property indices for CFD-DEM multiphysics simulations.
This namespace defines all the data containers and required operations on these containers for the DE...
constexpr bool has_thermal_properties
Whether a properties index set carries thermal properties.
constexpr bool has_fluid_coupling_properties
Whether a properties index set carries fluid coupling properties.