ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
walberla/initialize.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2023 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "config/config.hpp"
21
22#ifdef WALBERLA
23
24#include "LatticeWalberla.hpp"
25
26#include "LBFluid.hpp"
27#include "LBFluidNode.hpp"
28#include "LBFluidSlice.hpp"
29
30#include "EKContainer.hpp"
31#include "EKFFT.hpp"
32#include "EKNone.hpp"
33
34#include "EKSpecies.hpp"
35#include "EKSpeciesNode.hpp"
36#include "EKSpeciesSlice.hpp"
37
38#include "EKReactant.hpp"
39#include "EKReaction.hpp"
40#include "EKReactions.hpp"
41
43
44#include <utils/Factory.hpp>
45
46#ifdef WALBERLA_STATIC_ASSERT
47#error "waLberla headers should not be visible to the ESPResSo script interface"
48#endif
49
51
53 om->register_new<LatticeWalberla>("walberla::LatticeWalberla");
54
55 om->register_new<LBFluidCPU>("walberla::LBFluidCPU");
56#ifdef CUDA
57 om->register_new<LBFluidGPU>("walberla::LBFluidGPU");
58#endif // CUDA
59 om->register_new<LBFluidNode>("walberla::LBFluidNode");
60 om->register_new<LBFluidSlice>("walberla::LBFluidSlice");
61 om->register_new<LBVTKHandle>("walberla::LBVTKHandle");
62
63 om->register_new<EKContainer>("walberla::EKContainer");
64 om->register_new<EKSpecies>("walberla::EKSpecies");
65 om->register_new<EKSpeciesNode>("walberla::EKSpeciesNode");
66 om->register_new<EKSpeciesSlice>("walberla::EKSpeciesSlice");
67#ifdef WALBERLA_FFT
68 om->register_new<EKFFT>("walberla::EKFFT");
69#endif // WALBERLA_FFT
70 om->register_new<EKNone>("walberla::EKNone");
71 om->register_new<EKVTKHandle>("walberla::EKVTKHandle");
72
73 om->register_new<EKReactant>("walberla::EKReactant");
74 om->register_new<EKBulkReaction>("walberla::EKBulkReaction");
75 om->register_new<EKIndexedReaction>("walberla::EKIndexedReaction");
76 om->register_new<EKReactions>("walberla::EKReactions");
77}
78
79} // namespace ScriptInterface::walberla
80
81#endif // WALBERLA
Factory template.
Definition Factory.hpp:78
void register_new(const std::string &name)
Register a new type with the default construction function.
Definition Factory.hpp:113
This file contains the defaults for ESPResSo.
void initialize(Utils::Factory< ObjectHandle > *om)