ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
EKPoissonSolver.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022-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#pragma once
21
22#include <config/config.hpp>
23
24#ifdef ESPRESSO_WALBERLA
25
26#include "LatticeModel.hpp"
27#include "VTKHandle.hpp"
28
31
33
34#include <memory>
35#include <unordered_map>
36
38
39class EKPoissonVTKHandle : public VTKHandleBase<::walberla::PoissonSolver> {
40 static std::unordered_map<std::string, int> const obs_map;
41
42 std::unordered_map<std::string, int> const &get_obs_map() const override {
43 return obs_map;
44 }
45};
46
48 : public LatticeModel<::walberla::PoissonSolver, EKPoissonVTKHandle> {
49public:
50 virtual std::shared_ptr<::walberla::PoissonSolver>
52
53 ::LatticeModel::units_map
55 return {
56 {"potential", 1.},
57 };
58 }
59};
60
61} // namespace ScriptInterface::walberla
62
63#endif // ESPRESSO_WALBERLA
virtual std::shared_ptr<::walberla::PoissonSolver > get_instance() const noexcept=0
::LatticeModel::units_map get_lattice_to_md_units_conversion() const override
std::unordered_map< std::string, int > const & get_obs_map() const override
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.