OpenLB 1.7
Loading...
Searching...
No Matches
fringe3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2015 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#ifndef FRINGE_3D_H
25#define FRINGE_3D_H
26
27#include<vector> // for generic i/o
28#include<cmath> // for lpnorm
29
30#include "analyticalF.h"
31#include "io/ostreamManager.h"
32
87namespace olb {
88
89template <typename T, typename S>
90class Fringe3D : public AnalyticalF3D<T,S> {
91private:
93 AnalyticalF3D<T,S>& _wantedVelocity;
95 T _start;
97 T _end;
99 int _direction;
101 T _lambdaMax;
103 T _rise;
105 T _fall;
106
107public:
108 Fringe3D(AnalyticalF3D<T,S>& wantedVelocity, T start, T end, int direction, T lambdaMax=.005, T rise=.4, T fall=.2);
109
114 bool operator()(T output[12], const S input[3]);
115
116private:
118 T s(const T& x) const;
120 T lambda(const T& x) const;
121};
122
123} // end namespace olb
124
125#endif
126
127
AnalyticalF are applications from DD to XD, where X is set by the constructor.
bool operator()(T output[12], const S input[3])
Returns coefficients (a1, a2, a2, B11, B12, B13, B21, B22, B23, B31, B32, B33) for a linear velocity ...
Definition fringe3D.hh:44
Fringe3D(AnalyticalF3D< T, S > &wantedVelocity, T start, T end, int direction, T lambdaMax=.005, T rise=.4, T fall=.2)
Definition fringe3D.hh:35
Top level namespace for all of OpenLB.