OpenLB 1.7
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 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef FREE_SURFACE_POST_PROCESSOR_2D_H
25#define FREE_SURFACE_POST_PROCESSOR_2D_H
26
28#include "core/postProcessing.h"
29#include "core/blockLattice.h"
30#include "core/superLattice.h"
31
32#include <array>
33#include <memory>
34
35/* \file
36 * PostProcessor classes organising the interface tracking and mass distibution for a
37 * free surface model.
38 *
39 * Description how PostProcessors are applied.
40 */
41
42namespace olb {
43
75
76/*
77 * Free Surface Processor 4
78 * ToFluid
79 * Converts cells to interface from gas if a neighbouring cell was converted to a fluid cell
80 */
81template<typename T, typename DESCRIPTOR>
83public:
85
86 int getPriority() const {
87 return 4;
88 }
89
90 template <typename CELL>
91 void apply(CELL& cell) any_platform;
92
93};
94
100template<typename T, typename DESCRIPTOR>
102public:
104
105 int getPriority() const {
106 return 5;
107 }
108
109 template <typename CELL>
110 void apply(CELL& cell) any_platform;
111
112};
113
119template<typename T, typename DESCRIPTOR>
121public:
123
124 int getPriority() const {
125 return 6;
126 }
127
128 template <typename CELL>
129 void apply(CELL& cell) any_platform;
130
131};
132
137template<typename T, typename DESCRIPTOR>
139public:
141
142 int getPriority() const {
143 return 7;
144 }
145
146 template <typename CELL>
147 void apply(CELL& cell) any_platform;
148
149};
150
151
153
154/*
155* Setup helper
156*/
157template<typename T, typename DESCRIPTOR>
159public:
160private:
162
163 // SuperPostProcessors
164 // Corresponding to the local block processors
165public:
167
168 void addPostProcessor();
169};
170}
171
172#endif
Generator class for the PostProcessors tracking the interface.
FreeSurface2DSetup(SuperLattice< T, DESCRIPTOR > &sLattice)
Free Surface Processor 7 Finishes up left over cell conversions and prepares the state for the next s...
Free Surface Processor 6 Calculates mass excess from the cell type conversions and distributes them t...
Free Surface Processor 1-3 Mass Flow Cleans up leftover flags from the previous simulation step.
meta::list< FreeSurface::DROP_ISOLATED_CELLS, FreeSurface::TRANSITION, FreeSurface::LONELY_THRESHOLD, FreeSurface::HAS_SURFACE_TENSION, FreeSurface::SURFACE_TENSION_PARAMETER, FreeSurface::FORCE_CONVERSION_FACTOR, FreeSurface::LATTICE_SIZE > parameters
void apply(CELL &cell, PARAMETERS &parameters) any_platform
Free Surface Processor 5 ToGas Converts cells to interface from fluid if a neighbouring cell was conv...
Super class maintaining block lattices for a cuboid decomposition.
Top level namespace for all of OpenLB.
OperatorScope
Block-wide operator application scopes.
Definition operator.h:54
@ 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:78
Interface for post-processing steps – header file.
Plain wrapper for list of types.
Definition meta.h:276