OpenLB 1.7
Loading...
Searching...
No Matches
superLatticeInteraction.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2021 Nicolas Hafen, Mathias J. Krause
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
25#ifndef SUPER_LATTICE_INTERACTION_H
26#define SUPER_LATTICE_INTERACTION_H
27
28#include "core/core.h"
31#include "particles/particles.h"
32
33// All OpenLB code is contained in this namespace.
34namespace olb {
35
36namespace particles {
37
39//TODO: remove material 1 from hardcoded version
40//TODO: also remove additional material 1 check in set setBlockParticleField()
41template<typename T, typename DESCRIPTOR, typename PARTICLETYPE>
42void setSuperParticleField( const SuperGeometry<T,DESCRIPTOR::d>& sGeometry,
43 SuperLattice<T, DESCRIPTOR>& sLattice,
44 UnitConverter<T,DESCRIPTOR> const& converter,
45 Particle<T,PARTICLETYPE>& particle,
46 const Vector<bool,DESCRIPTOR::d>& periodicity );
47
48
49template<typename T, typename DESCRIPTOR, typename PARTICLETYPE,
50 typename PARTICLECONTACTTYPE, typename WALLCONTACTTYPE, typename F>
51void setSuperParticleField( const SuperGeometry<T,DESCRIPTOR::d>& sGeometry,
52 const PhysR<T,DESCRIPTOR::d>& min,
53 const PhysR<T,DESCRIPTOR::d>& max,
54 SuperLattice<T, DESCRIPTOR>& sLattice,
55 UnitConverter<T,DESCRIPTOR> const& converter,
56 ParticleSystem<T,PARTICLETYPE>& particleSystem,
57 contact::ContactContainer<T,PARTICLECONTACTTYPE,WALLCONTACTTYPE>& particleContacts,
58 size_t iP,
59 Particle<T,PARTICLETYPE>& particle,
60 std::vector<SolidBoundary<T,DESCRIPTOR::d>>& solidBoundaries,
61 F getSetupPeriodicity,
62 int globiC = -1 );
63
64
66template<typename T, typename DESCRIPTOR>
67void resetSuperParticleField( SuperGeometry<T,DESCRIPTOR::d>& sGeometry,
68 SuperLattice<T, DESCRIPTOR>& sLattice);
69
70//TODO: HOTFIX ONLY
71template<typename T, typename DESCRIPTOR>
72void resetContactField( SuperGeometry<T,DESCRIPTOR::d>& sGeometry,
73 SuperLattice<T, DESCRIPTOR>& sLattice);
74
75} // namespace particles
76
77} // namespace olb
78
79#endif
void resetContactField(SuperGeometry< T, DESCRIPTOR::d > &sGeometry, SuperLattice< T, DESCRIPTOR > &sLattice)
void resetSuperParticleField(SuperGeometry< T, DESCRIPTOR::d > &sGeometry, SuperLattice< T, DESCRIPTOR > &sLattice)
Reset particle field.
void setSuperParticleField(const SuperGeometry< T, DESCRIPTOR::d > &sGeometry, SuperLattice< T, DESCRIPTOR > &sLattice, UnitConverter< T, DESCRIPTOR > const &converter, Particle< T, PARTICLETYPE > &particle, const Vector< bool, DESCRIPTOR::d > &periodicity)
Set particle field with peridic support.
Top level namespace for all of OpenLB.
Representation of a parallel 2D geometry – header file.