OpenLB 1.7
Loading...
Searching...
No Matches
particleOperations3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2016 Thomas Henn, Mathias J. Krause, Davide Dapelo
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 PARTICLE_OPERATIONS_3D_H
25#define PARTICLE_OPERATIONS_3D_H
26
27#include <set>
28#include <vector>
29#include <list>
30#include <deque>
31#include <string>
32#include <iostream>
33
34namespace olb {
35
36template<typename T> class Particle3D;
37template<typename T, template<typename U> class PARTICLETYPE> class ParticleSystem3D;
38
39template<typename T, template<typename U> class PARTICLETYPE>
41protected:
43public:
44 virtual void applyParticleOperation(typename std::deque<PARTICLETYPE<T> >::iterator p, ParticleSystem3D<T, PARTICLETYPE>& pSys) =0;
45};
46
47template<typename T, template<typename U> class PARTICLETYPE>
48class RandomWalkOperation3D final : public ParticleOperation3D<T,PARTICLETYPE> {
49public:
50 RandomWalkOperation3D(T dT, T diffusivity);
51 virtual void applyParticleOperation(typename std::deque<PARTICLETYPE<T> >::iterator p, ParticleSystem3D<T, PARTICLETYPE>& pSys) override;
52private:
53 T _dT;
55};
56
57template<typename T, template<typename U> class PARTICLETYPE>
58class RandomTruncatedWalkOperation3D final : public ParticleOperation3D<T,PARTICLETYPE> {
59public:
60 RandomTruncatedWalkOperation3D(T dT, T diffusivity, T n);
61 virtual void applyParticleOperation(typename std::deque<PARTICLETYPE<T> >::iterator p, ParticleSystem3D<T, PARTICLETYPE>& pSys) override;
62private:
63 T _dT;
65};
66
67template<typename T, template<typename U> class PARTICLETYPE, typename DESCRIPTOR>
68class PassiveAdvectionOperation3D final : public ParticleOperation3D<T,PARTICLETYPE> {
69public:
71 virtual void applyParticleOperation(typename std::deque<PARTICLETYPE<T> >::iterator p, ParticleSystem3D<T, PARTICLETYPE>& pSys) override;
72private:
73 T _dT;
75};
76
77}
78
79
80#endif
81
AnalyticalRandomNormal: DD -> 1D with random image in (0,1)
AnalyticalRandomNormal: DD -> 1D with random image in (0,1) Normal distribution cut off outside [mean...
virtual void applyParticleOperation(typename std::deque< PARTICLETYPE< T > >::iterator p, ParticleSystem3D< T, PARTICLETYPE > &pSys)=0
virtual void applyParticleOperation(typename std::deque< PARTICLETYPE< T > >::iterator p, ParticleSystem3D< T, PARTICLETYPE > &pSys) override
PassiveAdvectionOperation3D(SuperLattice< T, DESCRIPTOR > &sLattice, UnitConverter< T, DESCRIPTOR > &converter)
virtual void applyParticleOperation(typename std::deque< PARTICLETYPE< T > >::iterator p, ParticleSystem3D< T, PARTICLETYPE > &pSys) override
RandomTruncatedWalkOperation3D(T dT, T diffusivity, T n)
virtual void applyParticleOperation(typename std::deque< PARTICLETYPE< T > >::iterator p, ParticleSystem3D< T, PARTICLETYPE > &pSys) override
RandomWalkOperation3D(T dT, T diffusivity)
Super class maintaining block lattices for a cuboid decomposition.
Conversion between physical and lattice units, as well as discretization.
Top level namespace for all of OpenLB.