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
29
#include <
script_interface/ScriptInterface.hpp
>
30
#include <
script_interface/auto_parameters/AutoParameters.hpp
>
31
32
#include <
walberla_bridge/electrokinetics/PoissonSolver.hpp
>
33
34
#include <memory>
35
#include <unordered_map>
36
37
namespace
ScriptInterface::walberla
{
38
39
class
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
47
class
EKPoissonSolver
48
:
public
LatticeModel
<::walberla::PoissonSolver, EKPoissonVTKHandle> {
49
public
:
50
virtual
std::shared_ptr<::walberla::PoissonSolver>
51
get_instance
()
const
noexcept
= 0;
52
53
::
LatticeModel
::units_map
54
get_lattice_to_md_units_conversion
()
const override
{
55
return
{
56
{
"potential"
, 1.},
57
};
58
}
59
};
60
61
}
// namespace ScriptInterface::walberla
62
63
#endif
// ESPRESSO_WALBERLA
AutoParameters.hpp
PoissonSolver.hpp
ScriptInterface.hpp
ScriptInterface::walberla::EKPoissonSolver
Definition
EKPoissonSolver.hpp:48
ScriptInterface::walberla::EKPoissonSolver::get_instance
virtual std::shared_ptr<::walberla::PoissonSolver > get_instance() const noexcept=0
ScriptInterface::walberla::EKPoissonSolver::get_lattice_to_md_units_conversion
::LatticeModel::units_map get_lattice_to_md_units_conversion() const override
Definition
EKPoissonSolver.hpp:54
ScriptInterface::walberla::EKPoissonVTKHandle
Definition
EKPoissonSolver.hpp:39
ScriptInterface::walberla::EKPoissonVTKHandle::get_obs_map
std::unordered_map< std::string, int > const & get_obs_map() const override
Definition
EKPoissonSolver.hpp:42
ScriptInterface::walberla::LatticeModel
Definition
script_interface/walberla/LatticeModel.hpp:38
ScriptInterface::walberla::VTKHandleBase
Definition
script_interface/walberla/VTKHandle.hpp:46
stream
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
Definition
common_cuda.cu:34
config.hpp
ScriptInterface::walberla
Definition
script_interface/walberla/EKContainer.hpp:49
LatticeModel.hpp
VTKHandle.hpp
src
script_interface
walberla
EKPoissonSolver.hpp
Generated on Tue Dec 9 2025 02:28:56 for ESPResSo by
1.9.8