Jet  v1.3.3
pde.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_PDE_H_
8 #define INCLUDE_JET_PDE_H_
9 
10 #include <array>
11 
12 namespace jet {
13 
25 template <typename T>
26 std::array<T, 2> upwind1(T* D0, T dx);
27 
37 template <typename T>
38 T upwind1(T* D0, T dx, bool isDirectionPositive);
39 
49 template <typename T>
50 T cd2(T* D0, T dx);
51 
63 template <typename T>
64 std::array<T, 2> eno3(T* D0, T dx);
65 
76 template <typename T>
77 T eno3(T* D0, T dx, bool isDirectionPositive);
78 
91 template <typename T>
92 std::array<T, 2> weno5(T* v, T h, T eps = 1.0e-8);
93 
103 template <typename T>
104 T weno5(T* v, T h, bool is_velocity_positive, T eps = 1.0e-8);
105 
106 } // namespace jet
107 
108 #include "detail/pde-inl.h"
109 
110 #endif // INCLUDE_JET_PDE_H_
jet::eno3
std::array< T, 2 > eno3(T *D0, T dx)
3rd-order ENO. D0[3] is the origin.
jet::weno5
std::array< T, 2 > weno5(T *v, T h, T eps=1.0e-8)
5th-order Weno. D0[3] is the origin.
jet
Definition: advection_solver2.h:18
jet::upwind1
std::array< T, 2 > upwind1(T *D0, T dx)
1-st order upwind differencing. D0[1] is the origin.
jet::cd2
T cd2(T *D0, T dx)
2nd-order central differencing. D0[1] is the origin.