OpenLB 1.7
Loading...
Searching...
No Matches
magneticForceForMagP3D.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Marie-Luise Maier, Mathias J. Krause, Sascha Janz
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/* Alberto Di Renzo, Francesco Paolo Di Maio:
24 * "Comparison of contact-force models for the simulation of collisions in
25 * DEM-based granular ow codes",
26 * Chemical Engineering Science 59 (2004) 525 - 541
27 *
28 * validation paper for contact:
29 * H. Kruggel-Emden, E. Simsek, S. Rickelt, S. Wirtz, V. Scherer: Review and
30 * extension of normal force models for the Discrete Element Method, Powder
31 * Technology 171 (2007) 157-173
32 */
33
34#ifndef MagneticForceForMagP3D_H
35#define MagneticForceForMagP3D_H
36
37#include "utilities/omath.h"
40#include "force3D.h"
41
42namespace olb {
43
44template<typename T, template<typename U> class PARTICLETYPE>
45class ParticleSystem3D;
46
47template<typename T, template<typename U> class PARTICLETYPE, typename DESCRIPTOR>
48class MagneticForceForMagP3D: public Force3D<T, PARTICLETYPE> {
49
50public:
51
52 MagneticForceForMagP3D(AnalyticalF<3,T, T>& getMagForce, AnalyticalF<3,T, T>& getMagField, T scale = T(1.));
54 void applyForce(typename std::deque<PARTICLETYPE<T> >::iterator p, int pInt,
55 ParticleSystem3D<T, PARTICLETYPE>& psSys) override;
56private:
57 AnalyticalF<3,T, T>& _getMagForce;
58 AnalyticalF<3,T, T>& _getMagField;
59 T _scale;
60};
61
62}
63
64#endif
AnalyticalF are applications from DD to XD, where X is set by the constructor.
Prototype for all particle forces.
Definition force3D.h:43
MagneticForceForMagP3D(AnalyticalF< 3, T, T > &getMagForce, AnalyticalF< 3, T, T > &getMagField, T scale=T(1.))
void applyForce(typename std::deque< PARTICLETYPE< T > >::iterator p, int pInt, ParticleSystem3D< T, PARTICLETYPE > &psSys) override
Top level namespace for all of OpenLB.