OpenLB 1.8.1
Loading...
Searching...
No Matches
interpolatedConvection3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2024 Yuji Shimojima
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * Generic version of the collision, which modifies the particle
9 * distribution functions, by Orestis Malaspinas.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this program; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
25*/
26
27#ifndef OLB_BOUNDARY_INTERPOLATED_CONVECTION_3D_H
28#define OLB_BOUNDARY_INTERPOLATED_CONVECTION_3D_H
29
31#include "setBoundary.h"
32
33namespace olb {
34
35namespace boundary {
36
37template <concepts::BaseType T, concepts::LatticeDescriptor DESCRIPTOR>
38requires (DESCRIPTOR::d == 3)
40 using value_t = T;
41 using descriptor_t = DESCRIPTOR;
42
44
45 std::optional<DynamicsPromise<T,DESCRIPTOR>> getDynamics(DiscreteNormalType type,
47 {
48 return std::nullopt;
49 }
50
51 std::optional<PostProcessorPromise<T,DESCRIPTOR>> getPostProcessor(DiscreteNormalType type,
53 {
54 switch (type) {
58 default:
59 return std::nullopt;
60 }
61 }
62
63};
64
65} // namespace boundary
66
67} // namespace olb
68
69#endif //OLB_BOUNDARY_INTERPOLATED_CONVECTION_3D_H
Plain old scalar vector.
PostProcessorPromise< T, DESCRIPTOR > promisePostProcessorForDirectionOrientation(Vector< int, 2 > n)
Top level namespace for all of OpenLB.
DiscreteNormalType
Type associated with a discrete normal vector.
std::int64_t CellDistance
Type for in-memory distance of block-local cell indices.
std::optional< DynamicsPromise< T, DESCRIPTOR > > getDynamics(DiscreteNormalType type, DiscreteNormal< DESCRIPTOR > n)
std::optional< PostProcessorPromise< T, DESCRIPTOR > > getPostProcessor(DiscreteNormalType type, DiscreteNormal< DESCRIPTOR > n)