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 "system/Leaf.hpp"
23
24#include "utils.hpp"
25
26#include <functional>
27#include <optional>
28#include <vector>
29
30namespace System {
31class System;
32}
33
34namespace LB {
35
36struct LBNone : public System::Leaf<LBNone> {
37 void propagate() { throw NoLBActive{}; }
38 void ghost_communication() { throw NoLBActive{}; }
41 double get_agrid() const { throw NoLBActive{}; }
42 double get_tau() const { throw NoLBActive{}; }
43 double get_kT() const { throw NoLBActive{}; }
45 bool is_gpu() const { throw NoLBActive{}; }
46 std::function<bool(Utils::Vector3d const &)>
48 throw NoLBActive{};
49 }
50 std::optional<Utils::Vector3d> get_velocity_at_pos(Utils::Vector3d const &,
51 bool) const {
52 throw NoLBActive{};
53 }
54 std::optional<double> get_density_at_pos(Utils::Vector3d const &,
55 bool) const {
56 throw NoLBActive{};
57 }
59 Utils::Vector3d const &) const {
60 throw NoLBActive{};
61 }
62 void add_forces_at_pos(std::vector<Utils::Vector3d> const &,
63 std::vector<Utils::Vector3d> const &) const {
64 throw NoLBActive{};
65 }
66 std::vector<double>
67 get_densities_at_pos(std::vector<Utils::Vector3d> const &) const {
68 throw NoLBActive{};
69 }
70 std::vector<Utils::Vector3d>
71 get_velocities_at_pos(std::vector<Utils::Vector3d> const &) const {
72 throw NoLBActive{};
73 }
75 void veto_time_step(double) const { throw NoLBActive{}; }
76 void veto_kT(double) const { throw NoLBActive{}; }
77 void sanity_checks(System::System const &) const { throw NoLBActive{}; }
78 void lebc_sanity_checks(unsigned int, unsigned int) const {
79 throw NoLBActive{};
80 }
81 void veto_boxl_change() const { throw NoLBActive{}; }
82 void on_cell_structure_change() const { throw NoLBActive{}; }
83 void on_boxl_change() const { throw NoLBActive{}; }
84 void on_node_grid_change() const { throw NoLBActive{}; }
85 void on_timestep_change() const { throw NoLBActive{}; }
86 void on_temperature_change() const { throw NoLBActive{}; }
87 void on_lees_edwards_change() const { throw NoLBActive{}; }
88 void update_collision_model() const { throw NoLBActive{}; }
89};
90
91} // namespace LB
Abstract class that represents a component of the system.
Main system class.
void ghost_communication_vel()
Definition LBNone.hpp:40
void ghost_communication()
Definition LBNone.hpp:38
void on_lees_edwards_change() const
Definition LBNone.hpp:87
void veto_time_step(double) const
Definition LBNone.hpp:75
void veto_boxl_change() const
Definition LBNone.hpp:81
std::vector< double > get_densities_at_pos(std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:67
bool add_force_at_pos(Utils::Vector3d const &, Utils::Vector3d const &) const
Definition LBNone.hpp:58
std::optional< double > get_density_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:54
Utils::VectorXd< 9 > get_pressure_tensor() const
Definition LBNone.hpp:44
double get_kT() const
Definition LBNone.hpp:43
void on_temperature_change() const
Definition LBNone.hpp:86
bool is_gpu() const
Definition LBNone.hpp:45
Utils::Vector3d get_momentum() const
Definition LBNone.hpp:74
double get_tau() const
Definition LBNone.hpp:42
void on_boxl_change() const
Definition LBNone.hpp:83
std::optional< Utils::Vector3d > get_velocity_at_pos(Utils::Vector3d const &, bool) const
Definition LBNone.hpp:50
void add_forces_at_pos(std::vector< Utils::Vector3d > const &, std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:62
void on_node_grid_change() const
Definition LBNone.hpp:84
void lebc_sanity_checks(unsigned int, unsigned int) const
Definition LBNone.hpp:78
void propagate()
Definition LBNone.hpp:37
void ghost_communication_pdf()
Definition LBNone.hpp:39
double get_agrid() const
Definition LBNone.hpp:41
void on_cell_structure_change() const
Definition LBNone.hpp:82
std::function< bool(Utils::Vector3d const &)> make_lattice_position_checker(bool) const
Definition LBNone.hpp:47
void sanity_checks(System::System const &) const
Definition LBNone.hpp:77
void on_timestep_change() const
Definition LBNone.hpp:85
void veto_kT(double) const
Definition LBNone.hpp:76
std::vector< Utils::Vector3d > get_velocities_at_pos(std::vector< Utils::Vector3d > const &) const
Definition LBNone.hpp:71
void update_collision_model() const
Definition LBNone.hpp:88