OpenLB 1.8.1
Loading...
Searching...
No Matches
freeSurfacePostProcessor2D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2020 Claudius Holeksa, Robin Trunk
4 * 2024-2025 Danial Khazaeipoul
5 * E-mail contact: info@openlb.net
6 * The most recent release of OpenLB can be downloaded at
7 * <http://www.openlb.net/>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23*/
24
25#ifndef FREE_SURFACE_POST_PROCESSOR_2D_H
26#define FREE_SURFACE_POST_PROCESSOR_2D_H
27
29#include "core/postProcessing.h"
30#include "core/blockLattice.h"
31#include "core/superLattice.h"
32
33namespace olb {
34
42template<typename T, typename DESCRIPTOR>
44public:
46
47 int getPriority() const {
48 return 1;
49 }
50
51 template <typename CELL>
52 void apply(CELL& cell) any_platform;
53
54};
55
62template<typename T, typename DESCRIPTOR>
64public:
71 >;
72
74
75 int getPriority() const {
76 return 2;
77 }
78
79 template <typename CELL, typename PARAMETERS>
80 void apply(CELL& cell, PARAMETERS& params) any_platform;
81
82};
83
84/*
85 * Free Surface Processor 4
86 * ToFluid
87 * Converts cells to interface from gas if a neighbouring cell was converted to a fluid cell
88 */
89template<typename T, typename DESCRIPTOR>
91public:
93
94 int getPriority() const {
95 return 3;
96 }
97
98 template <typename CELL>
99 void apply(CELL& cell) any_platform;
100
101};
102
108template<typename T, typename DESCRIPTOR>
110public:
112
113 int getPriority() const {
114 return 4;
115 }
116
117 template <typename CELL>
118 void apply(CELL& cell) any_platform;
119
120};
121
127template<typename T, typename DESCRIPTOR>
129public:
131
132 int getPriority() const {
133 return 5;
134 }
135
136 template <typename CELL>
137 void apply(CELL& cell) any_platform;
138
139};
140
145template<typename T, typename DESCRIPTOR>
147public:
149
150 int getPriority() const {
151 return 6;
152 }
153
154 template <typename CELL>
155 void apply(CELL& cell) any_platform;
156
157};
158
159/*
160* Setup helper
161*/
162template<typename T, typename DESCRIPTOR>
164public:
165private:
167
168 // SuperPostProcessors
169 // Corresponding to the local block processors
170public:
172
173 void addPostProcessor();
174};
175
176}
177#endif
FreeSurface2DSetup(SuperLattice< T, DESCRIPTOR > &sLattice)
Free Surface Processor 7 Finishes up left over cell conversions and prepares the state for the next s...
void apply(CELL &cell) any_platform
Free Surface Processor 7: Finalize Conversion.
Free Surface Processor 2-3 Interface Reconstruction Replaces incoming DFs by calculating equilibrium ...
void apply(CELL &cell, PARAMETERS &params) any_platform
Free Surface Processor 2-3: Interface Reconstruction.
Free Surface Processor 6 Calculates mass excess from the cell type conversions and distributes them t...
void apply(CELL &cell) any_platform
Free Surface Processor 6: Mass Excess.
Free Surface Processor 1 Mass Flow Cleans up leftover flags from the previous simulation step.
void apply(CELL &cell) any_platform
Free Surface Processor 1: Mass Flow.
Free Surface Processor 5 ToGas Converts cells to interface from fluid if a neighbouring cell was conv...
void apply(CELL &cell) any_platform
Free Surface Processor 5: ToGas.
Super class maintaining block lattices for a cuboid decomposition.
Top level namespace for all of OpenLB.
OperatorScope
Block-wide operator application scopes.
@ PerCell
Per-cell application, i.e. OPERATOR::apply is passed a CELL concept implementation.
@ PerCellWithParameters
Per-cell application with parameters, i.e. OPERATOR::apply is passed a CELL concept implementation an...
#define any_platform
Define preprocessor macros for device-side functions, constant storage.
Definition platform.h:77
Interface for post-processing steps – header file.
Plain wrapper for list of types.
Definition meta.h:276