OpenLB 1.7
Loading...
Searching...
No Matches
forceFromExtField3D.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Marie-Luise Maier
3 * E-mail contact: info@openlb.net
4 * The most recent release of OpenLB can be downloaded at
5 * <http://www.openlb.net/>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef ForceFromExtField3D_H
24#define ForceFromExtField3D_H
25
27#include "force3D.h"
28
29namespace olb {
30
31template<typename T, template<typename U> class PARTICLETYPE>
32class ParticleSystem3D;
33
34template<typename T, template<typename U> class PARTICLETYPE, typename DESCRIPTOR>
35class ForceFromExtField3D: public Force3D<T, PARTICLETYPE> {
36
37public:
38 // todo rename in ForceFromFunction3D or create new force
40// SuperLattice<T, DESCRIPTOR>& sLattice,
41 //SuperLatticeField3D<T, DESCRIPTOR>& sLatticeForceField,
42 AnalyticalFfromSuperF3D<T>& analyticalExternalField,
43 T scale = T(1.) );
44 ~ForceFromExtField3D() override {};
45 void applyForce(typename std::deque<PARTICLETYPE<T> >::iterator p, int pInt,
46 ParticleSystem3D<T, PARTICLETYPE>& psSys) override;
47private:
48// SuperLattice<T, DESCRIPTOR>& _sLattice;
49// SuperLatticeField3D<T, DESCRIPTOR>& _sLatticeForceField;
50 AnalyticalFfromSuperF3D<T>& _analyticalExternalField;
51 T _scale;
52};
53
54}
55
56#endif
Converts super functors to analytical functors.
Prototype for all particle forces.
Definition force3D.h:43
void applyForce(typename std::deque< PARTICLETYPE< T > >::iterator p, int pInt, ParticleSystem3D< T, PARTICLETYPE > &psSys) override
ForceFromExtField3D(AnalyticalFfromSuperF3D< T > &analyticalExternalField, T scale=T(1.))
Top level namespace for all of OpenLB.