ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
LBNone.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 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 "utils.hpp"
23
24#include <functional>
25#include <optional>
26#include <vector>
27
28namespace System {
29class System;
30}
31
32namespace LB {
33
34struct LBNone {
35 void propagate() { throw NoLBActive{}; }
36 void ghost_communication() { throw NoLBActive{}; }
39 double get_agrid() const { throw NoLBActive{}; }
40 double get_tau() const { throw NoLBActive{}; }
41 double get_kT() const { throw NoLBActive{}; }
43 bool is_gpu() const { throw NoLBActive{}; }
44 std::function<bool(Utils::Vector3d const &)>
46 throw NoLBActive{};
47 }
48 std::optional<Utils::Vector3d> get_velocity_at_pos(Utils::Vector3d const &,
49 bool) const {
50 throw NoLBActive{};
51 }
52 std::optional<double> get_density_at_pos(Utils::Vector3d const &,
53 bool) const {
54 throw NoLBActive{};
55 }
57 Utils::Vector3d const &) const {
58 throw NoLBActive{};
59 }
60 void add_forces_at_pos(std::vector<Utils::Vector3d> const &,
61 std::vector<Utils::Vector3d> const &) const {
62 throw NoLBActive{};
63 }
64 std::vector<double>
65 get_densities_at_pos(std::vector<Utils::Vector3d> const &) const {
66 throw NoLBActive{};
67 }
68 std::vector<Utils::Vector3d>
69 get_velocities_at_pos(std::vector<Utils::Vector3d> const &) const {
70 throw NoLBActive{};
71 }
73 void veto_time_step(double) const { throw NoLBActive{}; }
74 void veto_kT(double) const { throw NoLBActive{}; }
75 void sanity_checks(System::System const &) const { throw NoLBActive{}; }
76 void lebc_sanity_checks(unsigned int, unsigned int) const {
77 throw NoLBActive{};
78 }
79 void veto_boxl_change() const { throw NoLBActive{}; }
80 void on_cell_structure_change() const { throw NoLBActive{}; }
81 void on_boxl_change() const { throw NoLBActive{}; }
82 void on_node_grid_change() const { throw NoLBActive{}; }
83 void on_timestep_change() const { throw NoLBActive{}; }
84 void on_temperature_change() const { throw NoLBActive{}; }
85 void on_lees_edwards_change() const { throw NoLBActive{}; }
86 void update_collision_model() const { throw NoLBActive{}; }
87};
88
89} // namespace LB
Main system class.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
void ghost_communication_vel()
Definition LBNone.hpp:38
void ghost_communication()
Definition LBNone.hpp:36
void on_lees_edwards_change() const
Definition LBNone.hpp:85
void veto_time_step(double) const
Definition LBNone.hpp:73
void veto_boxl_change() const
Definition LBNone.hpp:79
std::vector< double > get_densities_at_pos(std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:65
bool add_force_at_pos(Utils::Vector3d const &, Utils::Vector3d const &) const
Definition LBNone.hpp:56
std::optional< double > get_density_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:52
Utils::VectorXd< 9 > get_pressure_tensor() const
Definition LBNone.hpp:42
double get_kT() const
Definition LBNone.hpp:41
void on_temperature_change() const
Definition LBNone.hpp:84
bool is_gpu() const
Definition LBNone.hpp:43
Utils::Vector3d get_momentum() const
Definition LBNone.hpp:72
double get_tau() const
Definition LBNone.hpp:40
void on_boxl_change() const
Definition LBNone.hpp:81
std::optional< Utils::Vector3d > get_velocity_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:48
void add_forces_at_pos(std::vector< Utils::Vector3d > const &, std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:60
void on_node_grid_change() const
Definition LBNone.hpp:82
void lebc_sanity_checks(unsigned int, unsigned int) const
Definition LBNone.hpp:76
void propagate()
Definition LBNone.hpp:35
void ghost_communication_pdf()
Definition LBNone.hpp:37
double get_agrid() const
Definition LBNone.hpp:39
void on_cell_structure_change() const
Definition LBNone.hpp:80
std::function< bool(Utils::Vector3d const &)> make_lattice_position_checker(bool) const
Definition LBNone.hpp:45
void sanity_checks(System::System const &) const
Definition LBNone.hpp:75
void on_timestep_change() const
Definition LBNone.hpp:83
void veto_kT(double) const
Definition LBNone.hpp:74
std::vector< Utils::Vector3d > get_velocities_at_pos(std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:69
void update_collision_model() const
Definition LBNone.hpp:86