24#ifndef FINITE_DIFFERENCE_H
25#define FINITE_DIFFERENCE_H
37 return (u_p1 - u_m1) / T{2};
44 return (-T{3}*u_0 + T{4}*u_1 - T{1}*u_2) / T{2};
65 return T{4}/T{3}*u_1 - T{1}/T{3}*u_2;
76 return u_m1 - T{2}*u_0 + u_p1;
83 return (- u_m2 + T{16}*u_m1 - T{30}*u_0 + T{16}*u_p1 - u_p2) / T{12};
94 return (T{1}-pos)*u_0 + pos*u_1;
constexpr T boundaryZeroGradient(T u_1, T u_2)
Value at u_0 for which asymmetric gradient is zero (u_1 = u(x+1))
constexpr T centralSecondDeriv(T u_m1, T u_0, T u_p1) any_platform
Second order central second derivative (u_p1 = u(x+1))
constexpr T BSGradient(T u_0, T u_1, T u_2)
Backward second-order first derivative.
constexpr T centralGradient(T u_p1, T u_m1) any_platform
Second-order central gradient (u_p1 = u(x+1))
constexpr T linearInterpolate(T u_0, T u_1, T pos)
Linear interpolation (yields u0 at pos=0 and u1 at pos=1)
constexpr T FSGradient(T u_0, T u_1, T u_2)
Forward second-order first derivative.
constexpr T boundaryGradient(T u_0, T u_1, T u_2) any_platform
Second-order asymmetric gradient (u_1 = u(x+1))
Top level namespace for all of OpenLB.