ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
ek_kernels.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
36
41
42namespace walberla {
43namespace detail {
44template <typename FloatType = double> struct KernelTrait {
45 using ContinuityKernel = pystencils::ContinuityKernel_double_precision;
46 using DiffusiveFluxKernel = pystencils::DiffusiveFluxKernel_double_precision;
47 using DiffusiveFluxKernelThermalized =
48 pystencils::DiffusiveFluxKernelThermalized_double_precision;
49 using AdvectiveFluxKernel = pystencils::AdvectiveFluxKernel_double_precision;
50 using FrictionCouplingKernel =
51 pystencils::FrictionCouplingKernel_double_precision;
52 using DiffusiveFluxKernelElectrostatic =
53 pystencils::DiffusiveFluxKernelWithElectrostatic_double_precision;
54 using DiffusiveFluxKernelElectrostaticThermalized = pystencils::
55 DiffusiveFluxKernelWithElectrostaticThermalized_double_precision;
56
57 using Dirichlet = pystencils::Dirichlet_double_precision;
58 using FixedFlux = pystencils::FixedFlux_double_precision;
59};
60template <> struct KernelTrait<float> {
61 using ContinuityKernel = pystencils::ContinuityKernel_single_precision;
62 using DiffusiveFluxKernel = pystencils::DiffusiveFluxKernel_single_precision;
63 using DiffusiveFluxKernelThermalized =
64 pystencils::DiffusiveFluxKernelThermalized_single_precision;
65 using AdvectiveFluxKernel = pystencils::AdvectiveFluxKernel_single_precision;
66 using FrictionCouplingKernel =
67 pystencils::FrictionCouplingKernel_single_precision;
68 using DiffusiveFluxKernelElectrostatic =
69 pystencils::DiffusiveFluxKernelWithElectrostatic_single_precision;
70 using DiffusiveFluxKernelElectrostaticThermalized = pystencils::
71 DiffusiveFluxKernelWithElectrostaticThermalized_single_precision;
72
73 using Dirichlet = pystencils::Dirichlet_single_precision;
74 using FixedFlux = pystencils::FixedFlux_single_precision;
75};
76} // namespace detail
77} // namespace walberla