Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
cfd_dem_simulation_parameters.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2021-2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_cfd_dem_simulation_parameters_h
5#define lethe_cfd_dem_simulation_parameters_h
6
7#include <core/manifolds.h>
8#include <core/parameters.h>
10
12
14
15
16template <int dim>
18{
19public:
22
23 std::shared_ptr<Parameters::VoidFractionParameters<dim>> void_fraction;
25
26 void
27 declare(ParameterHandler &prm,
28 Parameters::SizeOfSubsections size_of_subsections)
29 {
30 cfd_parameters.declare(prm, size_of_subsections);
31 dem_parameters.declare(prm, size_of_subsections);
32
33 void_fraction = std::make_shared<Parameters::VoidFractionParameters<dim>>();
34 void_fraction->declare_parameters(prm);
36 }
37
38 void
39 parse(ParameterHandler &prm)
40 {
41 cfd_parameters.parse(prm);
42 dem_parameters.parse(prm);
43
44 void_fraction->parse_parameters(prm);
45 cfd_dem.parse_parameters(prm);
46 }
47};
48
49#endif
SimulationParameters< dim > cfd_parameters
void declare(ParameterHandler &prm, Parameters::SizeOfSubsections size_of_subsections)
std::shared_ptr< Parameters::VoidFractionParameters< dim > > void_fraction
DEMSolverParameters< dim > dem_parameters
Handles all the parameters declared in the parameter handler file.
Parameter structures for CFD-DEM coupled simulations.
Parameters for the CFD-DEM coupled solver.
static void declare_parameters(ParameterHandler &prm)
Declare the parameters in the parameter handler.