$treeview $search $mathjax
Palabos  Version 1.1
$projectbrief
$projectbrief
$searchbox

plb::fd Namespace Reference

Classes

struct  DirectedGradients2D
struct  DirectedGradients2D< T, Descriptor, direction, orientation, true >
struct  DirectedGradients2D< T, Descriptor, direction, orientation, false >
struct  DirectedGradients3D
struct  DirectedGradients3D< T, Descriptor, direction, orientation, deriveDirection, true >
struct  DirectedGradients3D< T, Descriptor, direction, orientation, deriveDirection, false >

Functions

template<typename T >
ctl_diff (T u_p1, T u_m1)
 Second-order central gradient (u_p1 = u(x+1)).
template<typename T >
fwd_diff (T u_0, T u_1, T u_2)
 Second-order forward gradient (u_1 = u(x+1)).
template<typename T >
bwd_diff (T u_0, T u_1, T u_2)
 Second-order backward gradient (u_1 = u(x-1)).
template<typename T >
o1_fwd_diff (T u_0, T u_1)
 First-order forward gradient (u_1 = u(x+1)).
template<typename T >
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 >
linearInterpolate (T u_0, T u_1, T pos)
 Linear interpolation (yields u0 at pos=0 and u1 at pos=1).

Function Documentation

template<typename T >
T plb::fd::boundaryZeroGradient ( u_1,
u_2 
) [inline]

Value at u_0 for which asymmetric gradient is zero (u_1 = u(x+1)).

Referenced by plb::FlatAdiabaticBoundaryFunctional2D< T, Descriptor, direction, orientation >::process().

template<typename T >
T plb::fd::bwd_diff ( u_0,
u_1,
u_2 
) [inline]

Second-order backward gradient (u_1 = u(x-1)).

References fwd_diff().

template<typename T >
T plb::fd::linearInterpolate ( u_0,
u_1,
pos 
) [inline]

Linear interpolation (yields u0 at pos=0 and u1 at pos=1).

Referenced by plb::FineGridBoundaryDynamics< T, Descriptor >::completePopulations().