OpenLB 1.7
Loading...
Searching...
No Matches
superParticleSystem3D.cpp
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2016 Mathias J. Krause, Marie-Luise Maier
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
25
28#include "particle3D.h"
29#include "particle3D.hh"
32
33namespace olb {
34
35template class SuperParticleSystem3D<double, Particle3D>;
36
37template class SuperParticleSystem3D<double, MagneticParticle3D>;
38
39//template class SuperParticleSystem3D<double, HaiderLevenspielParticle3D>;
40
41template<>
42template<>
44setVelToFluidVel<descriptors::D3Q19<>>(
46{
47 for (auto pS : _pSystems) {
48 pS->setVelToFluidVel(fVel);
49 }
50};
51
52template<>
53template<>
55setVelToFluidVel<descriptors::D3Q19<>>(
57{
58 for (auto pS : _pSystems) {
59 pS->setVelToFluidVel(fVel);
60 }
61};
62
63#ifndef OLB_PRECOMPILED
64template<>
65template<>
67setVelToFluidVel<descriptors::D3Q19<descriptors::FORCE>>(
69{
70 for (auto pS : _pSystems) {
71 pS->setVelToFluidVel(fVel);
72 }
73};
74
75template<>
76template<>
78setVelToFluidVel<descriptors::D3Q19<descriptors::FORCE>>(
80{
81 for (auto pS : _pSystems) {
82 pS->setVelToFluidVel(fVel);
83 }
84};
85#endif
86
87} // namespace olb
The class superParticleSystem is the basis for particulate flows within OpenLB.
void setVelToFluidVel(SuperLatticeInterpPhysVelocity3D< T, DESCRIPTOR > &)
Set particle velocity to fluid velocity (e.g. as initial condition.
Descriptor for all types of 2D and 3D lattices.
Top level namespace for all of OpenLB.