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
24namespace System {
25class System;
26}
27
28namespace LB {
29
30struct LBNone {
31 void propagate() { throw NoLBActive{}; }
32 double get_agrid() const { throw NoLBActive{}; }
33 double get_tau() const { throw NoLBActive{}; }
34 double get_kT() const { throw NoLBActive{}; }
36 bool is_gpu() const { throw NoLBActive{}; }
37 std::optional<Utils::Vector3d> get_velocity_at_pos(Utils::Vector3d const &,
38 bool) const {
39 throw NoLBActive{};
40 }
41 std::optional<double> get_density_at_pos(Utils::Vector3d const &,
42 bool) const {
43 throw NoLBActive{};
44 }
46 Utils::Vector3d const &) const {
47 throw NoLBActive{};
48 }
49 void add_forces_at_pos(std::vector<Utils::Vector3d> const &,
50 std::vector<Utils::Vector3d> const &) const {
51 throw NoLBActive{};
52 }
53 std::vector<Utils::Vector3d>
54 get_velocities_at_pos(std::vector<Utils::Vector3d> const &) const {
55 throw NoLBActive{};
56 }
58 void veto_time_step(double) const { throw NoLBActive{}; }
59 void veto_kT(double) const { throw NoLBActive{}; }
60 void sanity_checks(System::System const &) const { throw NoLBActive{}; }
61 void lebc_sanity_checks(unsigned int, unsigned int) const {
62 throw NoLBActive{};
63 }
64 void veto_boxl_change() const { throw NoLBActive{}; }
65 void on_cell_structure_change() const { throw NoLBActive{}; }
66 void on_boxl_change() const { throw NoLBActive{}; }
67 void on_node_grid_change() const { throw NoLBActive{}; }
68 void on_timestep_change() const { throw NoLBActive{}; }
69 void on_temperature_change() const { throw NoLBActive{}; }
70 void on_lees_edwards_change() const { throw NoLBActive{}; }
71 void update_collision_model() const { throw NoLBActive{}; }
72};
73
74} // namespace LB
Main system class.
void on_lees_edwards_change() const
Definition LBNone.hpp:70
void veto_time_step(double) const
Definition LBNone.hpp:58
void veto_boxl_change() const
Definition LBNone.hpp:64
bool add_force_at_pos(Utils::Vector3d const &, Utils::Vector3d const &) const
Definition LBNone.hpp:45
std::optional< double > get_density_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:41
Utils::VectorXd< 9 > get_pressure_tensor() const
Definition LBNone.hpp:35
double get_kT() const
Definition LBNone.hpp:34
void on_temperature_change() const
Definition LBNone.hpp:69
bool is_gpu() const
Definition LBNone.hpp:36
Utils::Vector3d get_momentum() const
Definition LBNone.hpp:57
double get_tau() const
Definition LBNone.hpp:33
void on_boxl_change() const
Definition LBNone.hpp:66
std::optional< Utils::Vector3d > get_velocity_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:37
void add_forces_at_pos(std::vector< Utils::Vector3d > const &, std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:49
void on_node_grid_change() const
Definition LBNone.hpp:67
void lebc_sanity_checks(unsigned int, unsigned int) const
Definition LBNone.hpp:61
void propagate()
Definition LBNone.hpp:31
double get_agrid() const
Definition LBNone.hpp:32
void on_cell_structure_change() const
Definition LBNone.hpp:65
void sanity_checks(System::System const &) const
Definition LBNone.hpp:60
void on_timestep_change() const
Definition LBNone.hpp:68
void veto_kT(double) const
Definition LBNone.hpp:59
std::vector< Utils::Vector3d > get_velocities_at_pos(std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:54
void update_collision_model() const
Definition LBNone.hpp:71