OpenLB 1.7
Loading...
Searching...
No Matches
Namespaces | Functions
finiteDifference.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  olb
 Top level namespace for all of OpenLB.
 
namespace  olb::fd
 

Functions

template<typename T >
constexpr T olb::fd::centralGradient (T u_p1, T u_m1) any_platform
 Second-order central gradient (u_p1 = u(x+1))
 
template<typename T >
constexpr T olb::fd::boundaryGradient (T u_0, T u_1, T u_2) any_platform
 Second-order asymmetric gradient (u_1 = u(x+1))
 
template<typename T >
constexpr T olb::fd::FSGradient (T u_0, T u_1, T u_2)
 Forward second-order first derivative.
 
template<typename T >
constexpr T olb::fd::BSGradient (T u_0, T u_1, T u_2)
 Backward second-order first derivative.
 
template<typename T >
constexpr T olb::fd::boundaryZeroGradient (T u_1, T u_2)
 Value at u_0 for which asymmetric gradient is zero (u_1 = u(x+1))
 
template<typename T >
constexpr T olb::fd::centralSecondDeriv (T u_m1, T u_0, T u_p1) any_platform
 Second order central second derivative (u_p1 = u(x+1))
 
template<typename T >
constexpr T olb::fd::centralSecondDeriv (T u_m2, T u_m1, T u_0, T u_p1, T u_p2) any_platform
 Forth order central second derivative (u_p1 = u(x+1))
 
template<typename T >
constexpr T olb::fd::linearInterpolate (T u_0, T u_1, T pos)
 Linear interpolation (yields u0 at pos=0 and u1 at pos=1)